Skip to content
Snippets Groups Projects
Commit b9113b74 authored by Andi Gerken's avatar Andi Gerken
Browse files

Changed default orientation to "up" in tests.

parent 6fde2a3d
No related branches found
No related tags found
No related merge requests found
Pipeline #37388 passed
......@@ -184,8 +184,10 @@ def test_entity_positions_no_orientation():
# Create an entity, using radiants
f.create_entity("fish", positions=np.ones((100, 2)))
# In poses, the default orientation pointing up should be added.
assert f.entity_poses.shape == (1, 100, 4)
assert (f.entity_poses[:, :] == np.array([1, 1, 1, 0])).all()
assert (f.entity_poses[:, :] == np.array([1, 1, 0, 1])).all()
assert np.isclose(f.entity_orientations_rad, np.pi / 2).all()
# Calculate the orientation
assert f.entity_poses_calc_ori_rad.shape == (1, 99, 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment