Robotics StackExchange | Archived questions

Enable Header for ros2 bag saved topic's data

Hi I have a ros2 bag which I've recorded from a simulation. I have stored a topic from this bag (after playing it in other terminal) into a csv file. However, when I open the csv, it contains just raw data, but the header is not available.

The command I have used is:

ros2 topic echo --csv /api/external/get/command/selected/vehicle > selected_vehicle.csv

In the image below I needed to entry the header manually

image description

I would like to know if does it exist some flag or workaround to get the header along the raw data?

Asked by Vini71 on 2023-01-21 22:44:50 UTC

Comments

Answers