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

Function test_euler

tests/python/test_rollout.py:84–92  ·  view source on GitHub ↗
(setup_fig)

Source from the content-addressed store, hash-verified

82
83
84def test_euler(setup_fig):
85 discrete_dyn = IntegratorEuler(ode_dynamics, dt)
86 u0 = np.zeros(discrete_dyn.nu)
87 us = [u0] * nsteps
88 xs = aligator.rollout(discrete_dyn, x0, us).tolist()
89 if DISPLAY:
90 display(xs, dt)
91 e = computeMechanicalEnergy(rmodel, rdata, xs)
92 plt.plot(times_, e, label="RK2")
93
94
95def test_rk2(setup_fig):

Callers

nothing calls this directly

Calls 2

displayFunction · 0.85
computeMechanicalEnergyFunction · 0.85

Tested by

no test coverage detected