Skip to content

Commit b3f18a0

Browse files
WIP-CI: test x 11
1 parent 7bffa14 commit b3f18a0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ def make_assertions(df_transformation_result):
214214
pc_2.apply_transformation(r)
215215

216216

217-
df_transformation_result_o3dicp = dfb.dfb_registrations.DFRefinedRegistration.O3DICP(pc_1, pc_2)
218-
df_transformation_result_o3dgicp = dfb.dfb_registrations.DFRefinedRegistration.O3DGeneralizedICP(pc_1, pc_2)
217+
df_transformation_result_o3dicp = dfb.dfb_registrations.DFRefinedRegistration.O3DICP(pc_1, pc_2, max_correspondence_distance=1)
218+
df_transformation_result_o3dgicp = dfb.dfb_registrations.DFRefinedRegistration.O3DGeneralizedICP(pc_1, pc_2, max_correspondence_distance=1)
219219

220220
make_assertions(df_transformation_result_o3dicp)
221221
make_assertions(df_transformation_result_o3dgicp)
@@ -224,26 +224,26 @@ def test_DFRegistration_bunny(create_DFPointCloudBunny):
224224

225225
def make_assertions(df_transformation_result):
226226
assert df_transformation_result is not None, "DFRegistration should return a transformation matrix"
227-
assert abs(df_transformation_result.transformation_matrix[0][3] - 1) < 0.2, "The translation in x should be around -0.05"
228-
assert abs(df_transformation_result.transformation_matrix[1][3] - 1) < 0.2, "The translation in y should be around -0.05"
229-
assert abs(df_transformation_result.transformation_matrix[2][3] - 1) < 0.2, "The translation in z should be around 0.05"
227+
assert abs(df_transformation_result.transformatiotrix[0][3] - 0.5) < 0.2, "The translation in x should be around -0.05"
228+
assert abs(df_transformation_result.transformation_matrix[1][3] - 0.5) < 0.2, "The translation in y should be around -0.05"
229+
assert abs(df_transformation_result.transformation_matrix[2][3] - 0.5) < 0.2, "The translation in z should be around 0.05"
230230
assert abs(df_transformation_result.transformation_matrix[0][0] - 0.866) < 0.2, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
231-
assert abs(df_transformation_result.transformation_matrix[0][1]) < 0.2, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
231+
assert abs(df_transformation_result.transformn_maation_matrix[0][1]) < 0.2, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
232232
assert abs(df_transformation_result.transformation_matrix[0][2] - 0.5) < 0.2, "The rotation part of transformation matrix should be close to the transposed rotation matrix initially applied"
233233

234234
pc_1 = create_DFPointCloudBunny
235235
pc_2 = create_DFPointCloudBunny
236236

237237
transform = dfb.dfb_transformation.DFTransformation()
238-
transform.transformation_matrix = [[0.866, 0.0, 0.5, 1],
239-
[0.0, 1.0, 0.0, 1],
240-
[-0.5, 0.0, 0.866, 1],
238+
transform.transformation_matrix = [[0.866, 0.0, 0.5, 0.5],
239+
[0.0, 1.0, 0.0, 0.5],
240+
[-0.5, 0.0, 0.866, 0.5],
241241
[0.0, 0.0, 0.0, 1.0]] # 30 degree rotation around y-axis + translation
242242

243243
pc_2.apply_transformation(transform)
244244

245-
df_transformation_result_o3dicp = dfb.dfb_registrations.DFRefinedRegistration.O3DICP(pc_1, pc_2)
246-
df_transformation_result_o3dgicp = dfb.dfb_registrations.DFRefinedRegistration.O3DGeneralizedICP(pc_1, pc_2)
245+
df_transformation_result_o3dicp = dfb.dfb_registrations.DFRefinedRegistration.O3DICP(pc_1, pc_2, max_correspondence_distance=1)
246+
df_transformation_result_o3dgicp = dfb.dfb_registrations.DFRefinedRegistration.O3DGeneralizedICP(pc_1, pc_2, max_correspondence_distance=1)
247247
make_assertions(df_transformation_result_o3dicp)
248248
make_assertions(df_transformation_result_o3dgicp)
249249

0 commit comments

Comments
 (0)