Skip to content

Convert ROS1 <> ROS2 bags

Manual ROS bag conversion using play and record can be annoying since it requires both ROS1 and ROS2 dependencies. rosbags python utility does not depend on ROS installations at all.

pip3 install rosbags

# ROS1 to ROS2
rosbags-convert ros1.bag --dst <ros2_bag_folder>

# ROS2 to ROS1
rosbags-convert <ros2_bag_folder> --dst ros1.bag

Note: Only default types are supported when converting ROS2 to ROS1 bag