I have a point cloud of obstacles, because I used vectors of vector in my binary tree, I'd like to insert the values in std::vector of 3 elements into a pcl::PointCloud::Ptr object to do clustering.
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]);