Skip to content

Commit

Permalink
Add terrain check in unit test test_model_creation_and_reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
xela-95 committed Jun 4, 2024
1 parent 4de7fa4 commit 2f47dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_api_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def test_model_creation_and_reduction(
# Check that all non-fixed joints are in the reduced model.
assert set(reduced_joints) == set(model_reduced.joint_names())

# Check that the reduce model maintain the same terrain of the full model.
assert model_full.terrain == model_reduced.terrain

# Build the data of the reduced model.
data_reduced = js.data.JaxSimModelData.build(
model=model_reduced,
Expand Down

0 comments on commit 2f47dad

Please sign in to comment.