Skip to content

Commit

Permalink
Update src/jaxsim/api/contact.py
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Ferigo <[email protected]>
  • Loading branch information
flferretti and diegoferigo authored Mar 1, 2024
1 parent ca80ad6 commit e54c4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/api/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def estimate_model_height(model: Model.JaxSimModel) -> jtp.Float:

if model.physics_model.is_floating_base:
W_pz_C = collidable_point_positions(model=model, data=zero_data)[:, -1]
return 2 * (W_p_CoM - W_pz_C.min())
return 2 * (W_pz_CoM - W_pz_C.min())

return 2 * W_p_CoM

Expand Down

0 comments on commit e54c4ac

Please sign in to comment.