Skip to content

Commit

Permalink
Fix ABA for viscous friction
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 8, 2023
1 parent 52a0c77 commit 408c9e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/physics/algos/aba.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def aba(
IM = jnp.array(
[jnp.eye(6) * m for m in [*model._joint_motor_inertia.values()]] * model.NB
)
K̅ᵥ = Γ.T * jnp.array([*model._joint_motor_viscous_friction.values()]) / Γ
K̅ᵥ = Γ.T @ jnp.array([*model._joint_motor_viscous_friction.values()]) @ Γ
m_S = jnp.concatenate([S[:1], S[1:] * Γ[:, None, None]], axis=0)

# Initialize buffers
Expand Down

0 comments on commit 408c9e1

Please sign in to comment.