Skip to content

Commit

Permalink
Fix motors for floating base
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 8, 2023
1 parent a32b505 commit 8ab569d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/high_level/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ def forward_dynamics_crb(

# Configure the slice for fixed/floating base robots
sl = np.s_[0:] if self.physics_model.is_floating_base else np.s_[6:]
sl_m = np.s_[6:]
sl_m = np.s_[6:] if self.physics_model.is_floating_base else np.s_[0:]

# Add the motor related terms to the EoM
M = M.at[sl_m, sl_m].set(M[sl_m, sl_m] + Γ.T @ IM @ Γ)
Expand Down

0 comments on commit 8ab569d

Please sign in to comment.