Skip to content

Commit

Permalink
Use kwargs when calling the soft-contacts model
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Sep 26, 2024
1 parent b3de743 commit f8a92a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jaxsim/api/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ def collidable_point_dynamics(
# Note that the material deformation rate is always returned in the mixed frame
# C[W] = (W_p_C, [W]). This is convenient for integration purpose.
W_f_Ci, (CW_ṁ,) = jax.vmap(soft_contacts.compute_contact_forces)(
W_p_Ci, W_ṗ_Ci, data.state.contact.tangential_deformation
position=W_p_Ci,
velocity=W_ṗ_Ci,
tangential_deformation=data.state.contact.tangential_deformation,
)
aux_data = dict(m_dot=CW_ṁ)

Expand Down

0 comments on commit f8a92a6

Please sign in to comment.