MCPcopy Create free account
hub / github.com/Simple-Robotics/aligator / test_custom_ode

Function test_custom_ode

tests/python/test_continuous_dynamics.py:71–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 not HAS_PINOCCHIO, reason="Aligator was compiled without Pinocchio."
70)
71def test_custom_ode():
72 ode = MyODE()
73 itg = dynamics.IntegratorEuler(ode, 0.01)
74 x0 = ode.space.rand()
75 us = [np.zeros(0) for _ in range(10)]
76 xs = aligator.rollout(itg, x0, us)
77 print(xs.tolist())
78 assert len(xs) == 11
79
80
81@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 2

MyODEClass · 0.85
randMethod · 0.80

Tested by

no test coverage detected