Skip to content

Commit

Permalink
Merge pull request #278 from xela-95/fix/rigid-reset-velocity
Browse files Browse the repository at this point in the history
Fix reset of system velocity in `model.step`
  • Loading branch information
flferretti authored Oct 31, 2024
2 parents 78c55cc + 3600ad1 commit 35cf336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2156,9 +2156,9 @@ def step(
)
)

# Reset the generalized velocity.
data_tf = data_tf.reset_base_velocity(BW_nu_post_impact[0:6])
data_tf = data_tf.reset_joint_velocities(BW_nu_post_impact[6:])
# Reset the generalized velocity.
data_tf = data_tf.reset_base_velocity(BW_nu_post_impact[0:6])
data_tf = data_tf.reset_joint_velocities(BW_nu_post_impact[6:])

# Restore the input velocity representation.
data_tf = data_tf.replace(
Expand Down

0 comments on commit 35cf336

Please sign in to comment.