@@ -84,7 +84,7 @@ TEST(SymmetricICP, TransformationEstimationSymmetricComputeTransformation) {
8484 registration::TransformationEstimationSymmetric estimation;
8585
8686 Eigen::Matrix4d transformation =
87- estimation.ComputeTransformation (source, target, corres);
87+ estimation.ComputeTransformation (source, target, corres);
8888
8989 // Should be close to identity for perfect correspondence
9090 EXPECT_TRUE (transformation.isApprox (Eigen::Matrix4d::Identity (), 1e-3 ));
@@ -98,7 +98,7 @@ TEST(SymmetricICP,
9898 registration::TransformationEstimationSymmetric estimation;
9999
100100 Eigen::Matrix4d transformation =
101- estimation.ComputeTransformation (source, target, corres);
101+ estimation.ComputeTransformation (source, target, corres);
102102
103103 EXPECT_TRUE (transformation.isApprox (Eigen::Matrix4d::Identity ()));
104104}
@@ -116,7 +116,7 @@ TEST(SymmetricICP,
116116 registration::TransformationEstimationSymmetric estimation;
117117
118118 Eigen::Matrix4d transformation =
119- estimation.ComputeTransformation (source, target, corres);
119+ estimation.ComputeTransformation (source, target, corres);
120120
121121 EXPECT_TRUE (transformation.isApprox (Eigen::Matrix4d::Identity ()));
122122}
@@ -130,18 +130,17 @@ TEST(SymmetricICP, RegistrationSymmetricICP) {
130130 source.normals_ = {{0 , 0 , 1 }, {0 , 0 , 1 }, {0 , 0 , 1 }};
131131
132132 // Target is slightly translated
133- target.points_ = {{0.05 , 0.05 , 0.05 },
134- {1.05 , 0.05 , 0.05 },
135- {0.05 , 1.05 , 0.05 }};
133+ target.points_ = {
134+ {0.05 , 0.05 , 0.05 }, {1.05 , 0.05 , 0.05 }, {0.05 , 1.05 , 0.05 }};
136135 target.normals_ = {{0 , 0 , 1 }, {0 , 0 , 1 }, {0 , 0 , 1 }};
137136
138137 registration::TransformationEstimationSymmetric estimation;
139138 registration::ICPConvergenceCriteria criteria;
140139
141140 registration::RegistrationResult result =
142- registration::RegistrationSymmetricICP (
143- source, target, 0.1 , Eigen::Matrix4d::Identity (),
144- estimation, criteria);
141+ registration::RegistrationSymmetricICP (source, target, 0.1 ,
142+ Eigen::Matrix4d::Identity (),
143+ estimation, criteria);
145144
146145 EXPECT_GT (result.correspondence_set_ .size (), 0 );
147146 EXPECT_GT (result.fitness_ , 0.0 );
@@ -164,13 +163,13 @@ TEST(SymmetricICP, RegistrationSymmetricICPConvergence) {
164163 double z = rand_gen ();
165164
166165 source.points_ .push_back ({x, y, z});
167- source.normals_ .push_back ({0 , 0 , 1 }); // Simple normal for testing
166+ source.normals_ .push_back ({0 , 0 , 1 }); // Simple normal for testing
168167 }
169168
170169 // Create target by transforming source with known transformation
171170 Eigen::Matrix4d true_transformation = Eigen::Matrix4d::Identity ();
172- true_transformation (0 , 3 ) = 0.1 ; // Small translation in x
173- true_transformation (1 , 3 ) = 0.05 ; // Small translation in y
171+ true_transformation (0 , 3 ) = 0.1 ; // Small translation in x
172+ true_transformation (1 , 3 ) = 0.05 ; // Small translation in y
174173
175174 target = source;
176175 target.Transform (true_transformation);
@@ -179,9 +178,9 @@ TEST(SymmetricICP, RegistrationSymmetricICPConvergence) {
179178 registration::ICPConvergenceCriteria criteria (1e-6 , 1e-6 , 30 );
180179
181180 registration::RegistrationResult result =
182- registration::RegistrationSymmetricICP (
183- source, target, 0.5 , Eigen::Matrix4d::Identity (),
184- estimation, criteria);
181+ registration::RegistrationSymmetricICP (source, target, 0.5 ,
182+ Eigen::Matrix4d::Identity (),
183+ estimation, criteria);
185184
186185 // Check that registration converged to reasonable result
187186 EXPECT_GT (result.fitness_ , 0.5 );
0 commit comments