1 2 3 4 5 6 7 |
#include <sensor_msgs/point_cloud_conversion.h> sensor_msgs::PointCloud2 point_cloud2; sensor_msgs::PointCloud point_cloud; sensor_msgs::convertPointCloudToPointCloud2(point_cloud, point_cloud2); sensor_msgs::convertPointCloud2ToPointCloud(point_cloud2, point_cloud); |