这很可能是一件很简单的事情,但我被困住了。我试图在头文件中初始化一个点云库点云,这样我就可以跨函数共享它。
我正在努力:
//.h
typedef pcl::PointCloud<pcl::POINT_TYPE> PointCloud;
PointCloud::Ptr currCloud;
//..cpp
currCloud= new pcl::PointCloud<pcl::PointXYZI>;
但这给了我
no operator '=' matches these operands
如何初始化此类型?
谢谢。
发布于 2017-10-09 15:35:22
在PCL中,点类型必须在声明和定义之间匹配。
变化
typedef pcl::PointCloud<pcl::POINT_TYPE> PointCloud;
至
typedef pcl::PointCloud<pcl::PointXYZI> PointCloud;
在你的头上。
https://stackoverflow.com/questions/46650052
复制相似问题