Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Filippo Luca Ferretti <[email protected]>

Co-authored-by: Alessandro Croci <[email protected]>
  • Loading branch information
diegoferigo and xela-95 committed Oct 7, 2024
1 parent 109d5b1 commit 5d775de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jaxsim/api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def build(
dtype=float,
).squeeze()

gravity = jnp.zeros(3, dtype=float).at[2].set(-standard_gravity)
gravity = jnp.zeros(3).at[2].set(-standard_gravity)

joint_positions = jnp.atleast_1d(
jnp.array(
Expand Down
2 changes: 1 addition & 1 deletion src/jaxsim/rbda/contacts/rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class RigidContacts(ContactModel):
)

terrain: jax_dataclasses.Static[Terrain] = dataclasses.field(
default_factory=FlatTerrain
default_factory=FlatTerrain.build
)

@classmethod
Expand Down

0 comments on commit 5d775de

Please sign in to comment.