Skip to content

Commit

Permalink
Clarify that the gravity should be passed as positive constant
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Feb 26, 2025
1 parent 38e24a0 commit d1f7cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def build_from_model_description(
If not specified, a soft contacts model is used.
contact_params: The parameters of the contact model.
integrator: The integrator to use for the simulation.
gravity: The gravity constant.
gravity: The gravity constant. Normally passed as a positive value.
is_urdf:
The optional flag to force the model description to be parsed as a URDF.
This is usually automatically inferred.
Expand Down Expand Up @@ -179,7 +179,7 @@ def build_from_model_description(
contact_model=contact_model,
contact_params=contact_params,
integrator=integrator,
gravity=gravity,
gravity=-gravity,
)

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

0 comments on commit d1f7cac

Please sign in to comment.