Skip to content

Commit

Permalink
Fix conversion to mixed representation
Browse files Browse the repository at this point in the history
  • Loading branch information
xela-95 committed Jul 18, 2024
1 parent 1e0bed5 commit addc9f0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/jaxsim/api/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,14 @@ def jacobian_derivative(
W_H_FW = W_H_F.at[0:3, 0:3].set(jnp.zeros((3, 3)))
FW_H_W = Transform.inverse(W_H_FW)
FW_X_W = Adjoint.from_transform(transform=FW_H_W)
W_v_WF = W_J_WL_I @ data.generalized_velocity()
W_v_WFW = W_v_WF.at[3:6].set(jnp.zeros(3))
WF_J_WF_I = jacobian(
model=model,
data=data,
frame_index=frame_index,
output_vel_repr=VelRepr.Mixed,
)
WF_v_WF = WF_J_WF_I @ data.generalized_velocity()
W_v_WFW = jnp.zeros(6).at[0:3].set(WF_v_WF[0:3])
W_vx_WFW = Cross.vx(W_v_WFW)
O_J̇_WF_I = FW_X_W @ (W_J̇_WL_I - W_vx_WFW @ W_J_WL_I)

Expand Down

0 comments on commit addc9f0

Please sign in to comment.