Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Sep 12, 2024
1 parent 04de66b commit 9537c2c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/jaxsim/rbda/contacts/relaxed_rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ def _regularizers(
Compute the contact jacobian and the reference acceleration.
Args:
model (js.model.JaxSimModel): The jaxsim model.
penetration (jtp.Vector): The penetration of the collidable points.
velocity (jtp.Vector): The velocity of the collidable points.
parameters (RelaxedRigidContactsParams): The parameters of the relaxed rigid contacts model.
model: The jaxsim model.
penetration: The penetration of the collidable points.
velocity: The velocity of the collidable points.
parameters: The parameters of the relaxed rigid contacts model.
Returns:
A tuple containing the reference acceleration and the regularization matrix.
A tuple containing the reference acceleration, the regularization matrix, the stiffness, and the damping.
"""

Ω, ζ, ξ_min, ξ_max, width, mid, p, K, D, μ, *_ = jax_dataclasses.astuple(
Expand All @@ -298,8 +298,10 @@ def _imp_aref(
velocity: velocity in constraint frame
Returns:
impedance: constraint impedance
a_ref: offset acceleration in constraint frame
R: regularization matrix
K: computed stiffness
D: computed damping
"""
position = jnp.zeros(shape=(3,)).at[2].set(penetration)

Expand Down

0 comments on commit 9537c2c

Please sign in to comment.