Test have the right types, etc.
()
| 49 | not HAS_PINOCCHIO, reason="Aligator was compiled without Pinocchio." |
| 50 | ) |
| 51 | def 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( |
nothing calls this directly
no test coverage detected