Skip to content

Commit

Permalink
3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Jun 29, 2023
1 parent d522400 commit ffeaa37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jaxsim/simulation/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ class SimulatorData(JaxsimDataclass):
"""

# Simulation time stored in ns in order to prevent floats approximation
time_ns: jtp.Int = jnp.array(0, dtype=jnp.uint64)
time_ns: jtp.Int = dataclasses.field(
default_factory=lambda: jnp.array(0, dtype=jnp.uint64)
)

# Terrain and contact parameters
terrain: Terrain = dataclasses.field(default_factory=lambda: FlatTerrain())
Expand Down

0 comments on commit ffeaa37

Please sign in to comment.