Skip to content

Commit 00412d9

Browse files
WIP-CI: test x 7
1 parent 14d8cc7 commit 00412d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ def test_DFRegistration_pure_rotation():
191191

192192
def make_assertions(df_transformation_result):
193193
assert df_transformation_result is not None, "DFRegistration should return a transformation matrix"
194-
assert abs(df_transformation_result.transformation_matrix[0][0] - 0.866) < 0.1, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
194+
assert abs(df_transformation_result.transformation_matrix[0][0] + 0.866) < 0.1, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
195195
assert abs(df_transformation_result.transformation_matrix[0][1]) < 0.1, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
196-
assert abs(df_transformation_result.transformation_matrix[0][2] + 0.5) < 0.1, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
196+
assert abs(df_transformation_result.transformation_matrix[0][2] - 0.5) < 0.1, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
197197

198198
vertices = [[-2, -1, 0], [2, -1, 0], [2, 1, 0], [-2, 1, 0]]
199199
faces = [[0, 1, 2], [0, 2, 3]]
@@ -226,9 +226,9 @@ def test_DFRegistration_bunny(create_DFPointCloudBunny):
226226

227227
def make_assertions(df_transformation_result):
228228
assert df_transformation_result is not None, "DFRegistration should return a transformation matrix"
229-
assert abs(df_transformation_result.transformation_matrix[0][3] + 0.05) < 0.02, "The translation in x should be around -0.05"
230-
assert abs(df_transformation_result.transformation_matrix[1][3] + 0.05) < 0.02, "The translation in y should be around -0.05"
231-
assert abs(df_transformation_result.transformation_matrix[2][3] - 0.05) < 0.02, "The translation in z should be around 0.05"
229+
assert abs(df_transformation_result.transformation_matrix[0][3] - 0.05) < 0.02, "The translation in x should be around -0.05"
230+
assert abs(df_transformation_result.transformation_matrix[1][3] - 0.05) < 0.02, "The translation in y should be around -0.05"
231+
assert abs(df_transformation_result.transformation_matrix[2][3] + 0.05) < 0.02, "The translation in z should be around 0.05"
232232
assert df_transformation_result.transformation_matrix[0][0] > 0.9, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
233233
assert df_transformation_result.transformation_matrix[1][2] > 0.9, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied "
234234
assert df_transformation_result.transformation_matrix[2][1] < -0.9, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"

0 commit comments

Comments
 (0)