How can I convert a point cloud saved in rosbag, in format sensor_msgs/PointCloud2, to .bin files in KITTI format?
I know that it is possible to convert to .pcd (http://wiki.ros.org/pcl_ros#pointcloud_to_pcd) so perhaps even a pcd to bin converter would be enough.
Is there any available tool to do this?
I've found this, but it needs ROS kinetic (legacy ROS version).
A python script to do it:
Where x,y,z and intensity are arrays for a single point cloud. It's not strictly needed to use pypcd. (Source)
Also this conversion tool can actually be used without ROS, using another tool for the conversion to pcd file.