/rosbag2csv

Convert ROS 2 bag to CSV files, one CSV file per topic

Primary LanguagePythonApache License 2.0Apache-2.0

ros2bag to csv converter

Converts a ROS2 bag file (.db3) to a CSV file. One CSV file per topic is created.

Prerequisites

Usage

(1) Source your workspace with the necessary ROS2 packages (ROS2, Messages):

$ source /opt/ros/humble/setup.bash
$ source <your_workspace>/install/setup.bash

(2) Execute the following command to convert a ROS2 bag file (.db3) to a CSV file:

$ python3 rosbag2csv.py <bagfile>