Skip to content

Commit

Permalink
Remove unnecessary else
Browse files Browse the repository at this point in the history
Co-authored-by: Filippo Luca Ferretti <[email protected]>
  • Loading branch information
diegoferigo and flferretti committed Feb 23, 2024
1 parent 5965f1c commit e89353b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/api/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ 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[2] - W_pz_C.min())
else:
return 2 * W_p_CoM

return 2 * W_p_CoM

max_δ = (
max_penetration
Expand Down

0 comments on commit e89353b

Please sign in to comment.