|
|
@@ -79,8 +79,7 @@ bool ICPSVDRegistration::ScanMatch(
|
|
|
pcl::transformPointCloud(*input_source_, *transformed_input_source, predict_pose);
|
|
|
|
|
|
// init estimation:
|
|
|
- transformation_.setIdentity();
|
|
|
-
|
|
|
+ transformation_ = Eigen::Matrix4f::Identity();
|
|
|
//
|
|
|
// TODO: first option -- implement all computing logic on your own
|
|
|
//
|
|
|
@@ -137,7 +136,7 @@ bool ICPSVDRegistration::ScanMatch(
|
|
|
|
|
|
if(curr_iter>=max_iter_)
|
|
|
{
|
|
|
- transformation_.setIdentity();
|
|
|
+ transformation_ = Eigen::Matrix4f::Identity();
|
|
|
return false;
|
|
|
}
|
|
|
|