Skip to content

Commit

Permalink
Update Coriolis test
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Feb 2, 2024
1 parent 591a60a commit b38ff1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_coriolis.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@ def test_coriolis(robot: utils_models.Robot, vel_repr: VelRepr) -> None:
h = model.free_floating_bias_forces()
nu = np.array(model.forward_dynamics_aba())

assert np.allclose(h - (C @ nu))

assert np.allclose(M_dot - (C @ C.T), np.zeros_like(M_dot), atol=1e-5)
assert h == pytest.approx(C @ nu, abs=1e-5)
assert M_dot == pytest.approx(C @ C.T, abs=1e-5)

0 comments on commit b38ff1d

Please sign in to comment.