Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Ferigo <[email protected]>
  • Loading branch information
flferretti and diegoferigo committed Jun 20, 2024
1 parent a9b6d2e commit 69c77b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/api/ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def system_velocity_dynamics(
# Sum the forces of all collidable points rigidly attached to a body.
# Since the contact forces W_f_Ci are expressed in the world frame,
# we don't need any coordinate transformation.
mask = parent_link_index_of_collidable_points[:, None] == jnp.arange(
mask = parent_link_index_of_collidable_points[:, jnp.newaxis] == jnp.arange(
model.number_of_links()
)

Expand Down

0 comments on commit 69c77b1

Please sign in to comment.