Skip to content

Commit

Permalink
Fix use of joint force references in relaxed rigid contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
xela-95 authored and flferretti committed Sep 18, 2024
1 parent df45c03 commit 318ee34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jaxsim/rbda/contacts/relaxed_rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def compute_contact_forces(
link_forces:
Optional `(n_links, 6)` matrix of external forces acting on the links,
expressed in the same representation of data.
joint_force_reference:
joint_force_references:
Optional `(n_joints,)` vector of joint forces.
Returns:
Expand All @@ -226,6 +226,7 @@ def compute_contact_forces(
data=data,
velocity_representation=data.velocity_representation,
link_forces=link_forces,
joint_force_references=joint_force_references,
)

def _detect_contact(x: jtp.Array, y: jtp.Array, z: jtp.Array) -> jtp.Array:
Expand Down

0 comments on commit 318ee34

Please sign in to comment.