Skip to content

Commit f50e0ec

Browse files
committed
Add test.
1 parent 4a6803a commit f50e0ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_lie_operations.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ def test_so3_copy(self):
100100
with np.testing.assert_raises(AssertionError):
101101
np.testing.assert_allclose(T_c.wxyz, T.wxyz)
102102

103+
def test_se3_apply(self):
104+
T = SE3.sample_uniform()
105+
v = np.random.rand(3)
106+
np.testing.assert_allclose(
107+
T.apply(v), T.as_matrix()[:3, :3] @ v + T.translation()
108+
)
109+
103110
# SE3.
104111

105112
def test_se3_from_mocap_id(self):

0 commit comments

Comments
 (0)