I am trying to generate a PCL point cloud. All my points are in the following container type:
std::vector<Eigen::Vector3d,Eigen::aligned_allocator<Eigen::Vector3d> >
I would like to create a pointer to a PCL point cloud:
pcl::PointCloud<pcl::PointXYZ>::Ptr pc
What would be the most efficient way to create this point cloud?
std::vector<Eigen::Vector3f,Eigen::aligned_allocator<Eigen::Vector3f> >
instead, could I simply callpc->points = container
? – Feudalize