【发布时间】:2017-10-09 15:31:28
【问题描述】:
这很可能是一件简单的事情,但我被卡住了。我正在尝试在头文件中初始化点云库点云,以便我可以跨函数共享它。
我正在尝试:
//.h
typedef pcl::PointCloud<pcl::POINT_TYPE> PointCloud;
PointCloud::Ptr currCloud;
//.cpp
currCloud= new pcl::PointCloud<pcl::PointXYZI>;
但这给了我
no operator '=' matches these operands
如何初始化这个类型?
谢谢。
【问题讨论】:
标签: c++ pointers point-cloud-library