PCL 1.8.1 中 SampleConsensusInitialAlignment 模板参数错误的解决方法
在 PCL 1.8.1 中,pcl::SampleConsensusInitialAlignment 的构造函数的模板参数应为 pcl::PointXYZ, pcl::PointXYZ 和 pcl::FPFHSignature33,但是你提供的模板参数为 pcl::PointXYZI, pcl::PointXYZI 和 pcl::FPFHSignature33,导致编译错误。
要修复这个问题,你应该将模板参数改为 pcl::PointXYZ, pcl::PointXYZ 和 pcl::FPFHSignature33,如下所示:
pcl::SampleConsensusInitialAlignment<pcl::PointXYZ, pcl::PointXYZ, pcl::FPFHSignature33> sac_ia;
然后重新编译你的代码。
原文地址: https://www.cveoy.top/t/topic/pq9T 著作权归作者所有。请勿转载和采集!