【发布时间】:2021-03-12 17:23:32
【问题描述】:
我有一个障碍点云,因为我在二叉树中使用了向量的向量,我想将 3 个元素的 std::vector 中的值插入到 pcl::PointCloud::Ptr 对象中聚类。
std::vector<std::vector<float> > points;
typename pcl::PointCloud<PointXYZ>::Ptr cluster(new pcl::PointCloud<PointT>);
// next line is not possible, but how do I insert the component of vector<float> into the x,y,z of struct PointXYZ
cluster->push_back(points[idx]);
【问题讨论】: