Skip to content

Commit

Permalink
Get the material deformation from the extended state in SoftContacts
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Oct 7, 2024
1 parent d0bb682 commit a8b20c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/jaxsim/rbda/contacts/soft.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ def compute_contact_forces(
W_p_C, W_ṗ_C = js.contact.collidable_point_kinematics(model=model, data=data)

# Extract the material deformation corresponding to the collidable points.
assert isinstance(data.state.contact, SoftContactsState)
m = data.state.contact.tangential_deformation
m = data.state.extended["tangential_deformation"]

# Compute the contact forces for all collidable points.
# Since we treat them as independent, we can vmap the computation.
Expand Down

0 comments on commit a8b20c9

Please sign in to comment.