Skip to content

Commit

Permalink
Rename aux_dict to extended_contact_state
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Jan 30, 2025
1 parent d4ae223 commit ccb1c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/api/contact_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def link_contact_forces(
"""

# Compute the contact forces for each collidable point with the active contact model.
W_f_C, aux_dict = model.contact_model.compute_contact_forces(
W_f_C, extended_contact_state = model.contact_model.compute_contact_forces(
model=model,
data=data,
**(
Expand All @@ -50,7 +50,7 @@ def link_contact_forces(
model=model, data=data, contact_forces=W_f_C
)

return W_f_L, aux_dict
return W_f_L, extended_contact_state


@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,7 @@ def step(

# Compute the 6D forces W_f ∈ ℝ^{n_L × 6} applied to links due to contact
# with the terrain.
W_f_L_terrain, aux_dict = js.contact_model.link_contact_forces(
W_f_L_terrain, extended_contact_state = js.contact_model.link_contact_forces(
model=model,
data=data,
link_forces=W_f_L_external,
Expand All @@ -2072,7 +2072,7 @@ def step(
match model.contact_model:

case jaxsim.rbda.contacts.SoftContacts():
contact_state["tangential_deformation"] = aux_dict["m_dot"]
contact_state["tangential_deformation"] = extended_contact_state["m_dot"]

case (
jaxsim.rbda.contacts.RigidContacts()
Expand Down

0 comments on commit ccb1c2e

Please sign in to comment.