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

Function test_abstract

tests/python/test_continuous_dynamics.py:51–65  ·  view source on GitHub ↗

Test have the right types, etc.

()

Source from the content-addressed store, hash-verified

49 not HAS_PINOCCHIO, reason="Aligator was compiled without Pinocchio."
50)
51def test_abstract():
52 """Test have the right types, etc."""
53 space = manifolds.SO3()
54 nu = 1
55 dae = dynamics.ContinuousDynamicsAbstract(space, nu)
56 dae_data = dae.createData()
57 assert isinstance(dae_data, dynamics.ContinuousDynamicsData)
58 assert hasattr(dae_data, "Jx")
59 assert hasattr(dae_data, "Ju")
60 assert hasattr(dae_data, "Jxdot")
61
62 ode = dynamics.ODEAbstract(space, nu)
63 ode_data = ode.createData()
64 assert isinstance(ode_data, dynamics.ODEData)
65 assert hasattr(ode_data, "xdot")
66
67
68@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 1

createDataMethod · 0.45

Tested by

no test coverage detected