Enable Header for ros2 bag saved topic's data

asked 2023-01-21 21:44:50 -0500

Vini71 gravatar image

updated 2023-01-21 21:51:11 -0500

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?

edit retag flag offensive close merge delete