I am using the code [here][1] which have sensor_msgs::pointcloud. Can someone help me how to convert it to sensor_msgs::pointcloud2 [1]: https://github.com/Vidicon/2dscantoPointcloud/blob/master/src/lidar_transform.cpp
How to convert sensor_msgs::pointcloud to sensor_msgs::pointcloud2
2.7k Views Asked by user18465277 At
2
This code is quite old and you shouldn't really be using PointCloud messages now. That being said, you can run the pointcloud_converter node to get your message out as a PointCloud2. Take this launch file for example: