Skip to content

Commit

Permalink
Fix ABA for models without joints
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Jun 30, 2023
1 parent b399c6a commit 30f057e
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 @@ -95,7 +95,7 @@ def loop_body_pass1(carry: Pass1Carry, i: jtp.Int) -> Tuple[Pass1Carry, None]:
i_X_λi = i_X_λi.at[i].set(i_X_λi_i)

# Propagate link velocity
vJ = S[i] * qd[ii]
vJ = S[i] * qd[ii] if qd.size != 0 else S[i] * 0

v_i = i_X_λi[i] @ v[λ[i]] + vJ
v = v.at[i].set(v_i)
Expand Down

0 comments on commit 30f057e

Please sign in to comment.