1 |
#include <pcl/conversions.h> |
1 2 3 4 5 6 |
pcl::PCLPointCloud2 point_cloud2; pcl::PointCloud<pcl::PointXYZ> point_cloud; pcl::fromPCLPointCloud2( point_cloud2, point_cloud); pcl::toPCLPointCloud2(point_cloud, point_cloud2); |
more about pcl point cloud and conversion
Thx !!
You are welcome 🙂
Hello
try to convert from
pcl::PointCloud<pcl::PointXYZ>
topcl::PCLPointCloud2
But the conversion returns an empty point cloud.This is my code:
I can print out the cloud “cloud_inliers” which is in the
pcl::PointCloud<pcl::PointXYZ>
But the
pcl::PCLPointCloud2
returns empty fields