Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ros2 bag echo verb to dump a single topic to stdout? #1892

Open
moooeeeep opened this issue Jan 7, 2025 · 1 comment
Open

New ros2 bag echo verb to dump a single topic to stdout? #1892

moooeeeep opened this issue Jan 7, 2025 · 1 comment
Labels
backlog Not assigned and not immediately planned enhancement New feature or request help wanted Extra attention is needed

Comments

@moooeeeep
Copy link

Description

I was looking to dump a single topic's content to stdout in csv format, like rostopic echo -b <bagfile> -p <topic> used to do.

Related question: https://robotics.stackexchange.com/questions/114194/exporting-single-topic-data-to-csv-with-rosbag2-bag-files

I had the impression that this feature doesn't exist, so I wrote a small script using the Python API. I wondered if it would be useful to add this as a new verb to the cli (the actual name would be open for debate)?

Related Issues

None

Completion Criteria

  • CLI verb to dump topic from bagfile to stdout (yaml and/or csv format)
  • Required customization options, e.g., to specify storage id and output format

Implementation Notes / Suggestions

Similar to the test code of the SequentialReader, but with formatted output.

Testing Notes / Suggestions

Process known bagfiles for different sets of options and verify the captured output.

@moooeeeep moooeeeep added the enhancement New feature or request label Jan 7, 2025
@MichaelOrlov
Copy link
Contributor

Hi @moooeeeep I would imagine that this functionality would be an extension/addition to the ros2 bag convert CLI command.
Please refer to the https://github.com/ros2/rosbag2/blob/rolling/README.md#converting-bags for details about convert verb usage and possible options.

@MichaelOrlov MichaelOrlov added help wanted Extra attention is needed backlog Not assigned and not immediately planned labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Not assigned and not immediately planned enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants