Skip to content

Commit

Permalink
Fix references representation in system_velocity_dynamics
Browse files Browse the repository at this point in the history
  • Loading branch information
xela-95 committed Sep 20, 2024
1 parent df28248 commit 0e128c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jaxsim/api/ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ def system_velocity_dynamics(

# Compute the 6D forces W_f ∈ ℝ^{n_c × 6} applied to each collidable point
# along with contact-specific auxiliary states.
with data.switch_velocity_representation(VelRepr.Inertial):
with (
data.switch_velocity_representation(VelRepr.Inertial),
references.switch_velocity_representation(VelRepr.Inertial),
):
W_f_Ci, aux_data = js.contact.collidable_point_dynamics(
model=model,
data=data,
Expand Down

0 comments on commit 0e128c8

Please sign in to comment.