Skip to content

Commit 9ff439c

Browse files
WIP-CI: test x 5
1 parent db9b967 commit 9ff439c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ def make_assertions(df_transformation_result):
208208

209209
pc_1 = mesh.sample_points_uniformly(1000)
210210
pc_2 = mesh2.sample_points_uniformly(1000)
211+
pc_1.estimate_normals()
212+
pc_2.estimate_normals()
211213

212214
pc_2.apply_transformation(r)
213215

@@ -224,9 +226,9 @@ def test_DFRegistration_bunny(create_DFPointCloudBunny):
224226

225227
def make_assertions(df_transformation_result):
226228
assert df_transformation_result is not None, "DFRegistration should return a transformation matrix"
227-
assert abs(df_transformation_result.transformation_matrix[0][3] - 0.1) < 0.02, "The translation in x should be around 0.1"
228-
assert abs(df_transformation_result.transformation_matrix[1][3] - 0.2) < 0.02, "The translation in y should be around 0.2"
229-
assert abs(df_transformation_result.transformation_matrix[2][3] + 0.1) < 0.02, "The translation in z should be around -0.1"
229+
assert abs(df_transformation_result.transformation_matrix[0][3] + 0.1) < 0.02, "The translation in x should be around 0.1"
230+
assert abs(df_transformation_result.transformation_matrix[1][3] + 0.2) < 0.02, "The translation in y should be around 0.2"
231+
assert abs(df_transformation_result.transformation_matrix[2][3] - 0.1) < 0.02, "The translation in z should be around -0.1"
230232
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"
231233
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 "
232234
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)