在 PCL 1.8.1 中,pcl::SampleConsensusInitialAlignment 的构造函数的模板参数应为 pcl::PointXYZ, pcl::PointXYZpcl::FPFHSignature33,但是你提供的模板参数为 pcl::PointXYZI, pcl::PointXYZIpcl::FPFHSignature33,导致编译错误。

要修复这个问题,你应该将模板参数改为 pcl::PointXYZ, pcl::PointXYZpcl::FPFHSignature33,如下所示:

pcl::SampleConsensusInitialAlignment<pcl::PointXYZ, pcl::PointXYZ, pcl::FPFHSignature33> sac_ia;

然后重新编译你的代码。


原文地址: https://www.cveoy.top/t/topic/pq9T 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录