Skip to content

Commit

Permalink
Inherit model contact params and gravity in js.model.reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Feb 14, 2025
1 parent 5b43f2b commit 9ffe65c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ def reduce(
time_step=model.time_step,
terrain=model.terrain,
contact_model=model.contact_model,
contacts_params=model.contacts_params,
gravity=model.gravity,
)

# Store the origin of the model, in case downstream logic needs it.
Expand Down

0 comments on commit 9ffe65c

Please sign in to comment.