Skip to content

Commit

Permalink
Modify simulation test to verify backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Oct 18, 2024
1 parent 371e1c7 commit 11527fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ def test_box_with_external_forces(
additive=False,
)

# Create the integrator.
integrator = jaxsim.integrators.fixed_step.RungeKutta4SO3.build(
dynamics=js.ode.wrap_system_dynamics_for_integration(
model=model, data=data0, system_dynamics=js.ode.system_dynamics
)
)

# Initialize the integrator.
tf = 0.5
T = jnp.arange(start=0, stop=tf * 1e9, step=model.time_step * 1e9, dtype=int)
Expand All @@ -76,6 +83,7 @@ def test_box_with_external_forces(
data, state_aux_dict = js.model.step(
model=model,
data=data,
integrator=integrator,
integrator_state=state_aux_dict,
link_forces=references.link_forces(model=model, data=data),
)
Expand Down

0 comments on commit 11527fa

Please sign in to comment.