根据错误提示信息,可以看出参数列表不匹配。根据PCL文档,pcl::visualization::PCLVisualizer::addSphere函数的参数列表应为:

bool addSphere(const pcl::PointXYZ &center, 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);

这样就可以解决该问题。

pclPointXYZ point5 = cloud-points57;		vieweraddSpherepclPointXYZpoint5 00023 1 0 0 point5;这句话显示报错没有与参数列表匹配的重载函数pcl::visualizationPCLVisualizer::addSphere实例该如何解决

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

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