pclPointXYZ point5 = cloud-points57; vieweraddSpherepclPointXYZpoint5 00023 1 0 0 point5;这句话显示报错没有与参数列表匹配的重载函数pcl::visualizationPCLVisualizer::addSphere实例该如何解决
根据错误提示信息,可以看出参数列表不匹配。根据PCL文档,pcl::visualization::PCLVisualizer::addSphere函数的参数列表应为:
bool addSphere(const pcl::PointXYZ ¢er, double radius, double r, double g, double b, const std::string &id = "sphere", int viewport = 0);
因此,你需要将代码修改为:
pcl::PointXYZ point5 = cloud->points[57];
viewer.addSphere(point5, 0.0023, 1, 0, 0, "sphere", 0);
这样就可以解决该问题。
原文地址: https://www.cveoy.top/t/topic/h8tD 著作权归作者所有。请勿转载和采集!