Skip to content

Commit

Permalink
Added CI for frame velocity
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlottaSartore committed Nov 27, 2024
1 parent aa57cd0 commit 5fdbe5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_api_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ def test_frame_jacobians(
J_WL_idt = kin_dyn.jacobian_frame(frame_name=frame_name)
assert J_WL_js == pytest.approx(J_WL_idt, abs=1e-9)

for frame_name, frame_index in zip(frame_names, frame_indices, strict=True):

v_WF_idt = kin_dyn.frame_velocity(frame_name=frame_name)
v_WF_js = js.frame.velocity(model=model, data=data, frame_index=frame_index)
assert v_WF_js == pytest.approx(v_WF_idt), frame_name


def test_frame_jacobian_derivative(
jaxsim_models_types: js.model.JaxSimModel,
Expand Down

0 comments on commit 5fdbe5b

Please sign in to comment.