在用PCL1.8跑连续多幅点云配准的代码时。
在配准函数的非线性ICP代码中 存在报错:
// 配准 pcl::IterativeClosestPointNonLinearreg; // 非线性LM-ICP配准 reg.setTransformationEpsilon(1e-6);//设置收敛判断条件,越小精度越大,收敛也越慢 reg.setMaxCorrespondenceDistance(0.1); reg.setPointRepresentation(std::make_shared (point_representation)); reg.setInputSource(points_with_normals_src); reg.setInputTarget(points_with_normals_tgt);
改错方式:
将 std::maked_shared 改为 boost::maked_shared即可
reg.setPointRepresentation(std::make_shared(point_representation));



