Skip to content

Commit

Permalink
Merge pull request #305 from CarlottaSartore/fix_contact_transform
Browse files Browse the repository at this point in the history
Change neutral element transform matrix in contact
  • Loading branch information
flferretti authored Dec 4, 2024
2 parents d2cf220 + 8083590 commit 75f6c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/api/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def collidable_point_dynamics(
W_H_C = (
js.contact.transforms(model=model, data=data)
if data.velocity_representation is not VelRepr.Inertial
else jnp.zeros(shape=(len(indices_of_enabled_collidable_points), 4, 4))
else jnp.stack([jnp.eye(4)] * len(indices_of_enabled_collidable_points))
)

# Convert the 6D forces to the active representation.
Expand Down

0 comments on commit 75f6c49

Please sign in to comment.