Rosbag2 to pcd converter/exporter

I needed to convert a topic of rosbag2 file to a folder of pcds. I’ve searched but somehow missed this great ros2bag_tools tool. And created this small single purpose package :smiley:

If you need to convert a ros2 bag file to pcds, you can use this package, it’s pretty basic.
Assumes the point cloud in the bag has at least the regular float x,y,z,intensity fields.

If I’d found it first, I would’ve probably just forked ros2bag_tools and edited exporter/pcd.py to fit my naming scheme.

Related post: ros2bag_tools: A set of usesful tools for ros2 bags

3 Likes

Hi, thanks for the great work. I was trying to test it in my local environment but it seems to only work for .mcap ros2 bag but not for .db3 bags. Would this be an easy fix ? Thanks in advance.