Skip to content

Commit

Permalink
Fix cast of gc.body in api.ode
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Mar 11, 2024
1 parent 048f592 commit 3dd9039
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 @@ -142,7 +142,7 @@ def system_velocity_dynamics(
lambda nc: (
jnp.vstack(
jnp.equal(
np.array(model.physics_model.gc.body, dtype=int), nc
jnp.array(model.physics_model.gc.body, dtype=int), nc
).astype(int)
)
* W_f_Ci
Expand Down

0 comments on commit 3dd9039

Please sign in to comment.