Skip to content

Conversation

chen-harrison
Copy link
Contributor

Description

  • Demonstrate the new ros2 bag play progress bar
  • Provide instructions on how to use new -i argument to play multiple bags
  • Add an example of recording multiple bags earlier in the tutorial, so as to have an example to use with -i explanation
  • Add --topics to ros2 bag record commands to reflect the deprecation of positional topic arguments
  • Correct wording so that document is consistent with explaining that a new bag directory, not file, is made (with the given -o argument, if provided), and pathing to .mcap files now reflects that
  • Update output of commands like ros2 bag record and ros2 bag play, so as not to confuse the reader when their output differs

Fixes #5550

- These changes are meant to reflect the deprecation of positional
  topic arguments in favor of using --topics
- The bag directories are correctly explained in 3.1, but in subsequent
  sections it falls back to referring to the recordings as files.
  Adjust wording to explain that a bag directory is made
- Change commands to capture the .mcap file inside the bag directory
- Add action and service info for ros2 bag info
- Add playback controls and playback progress for ros2 bag play
- To make this progression logical, add an extra section where a
  recording is split into multiple bag files with -d arg in a bag
  directory called subset_separate
- Later, use these separate files when explaining how to play all bag
  files from a single recording (just call ros2 bag play on the bag
  directory), as well as how to play multiple select files (using new
  arg -i!)
@chen-harrison chen-harrison changed the title Add New ros2 bag Kilted Features + Updates Add new ros2 bag Kilted features + updates Jul 8, 2025
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall lgtm with a few minor comments.

@christophebedard @MichaelOrlov either of you can review this?

- Use keyboard syntax where appropriate
Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! 🚀

I want to clarify some sections to better reflect the feature and the goal behind them, but otherwise this looks good!

@christophebedard christophebedard self-assigned this Jul 24, 2025
@christophebedard christophebedard self-requested a review July 25, 2025 22:54
- For examples that involve calling ros2 bag info and ros2 bag play,
  have the example show it with playing the whole recording instead of
  individual files
- Change wording around splitting recording
- Explain the use case of splitting recording
- Add example where there are two separate record commands, each
  recording a topic
- Explain the use case for this separate recording
- Add explanation of --message-order
@chen-harrison
Copy link
Contributor Author

@christophebedard I'm pretty new to open-source still so not sure what the cadence of these things are, but letting you know these changes should be ready for review, in case you were waiting for me to notify you.

My only minor concern is that the "play multiple bags" section is a bit lengthy now based on the structure that we discussed, but let me know your thoughts. Thanks!

@christophebedard
Copy link
Member

I'm pretty new to open-source still so not sure what the cadence of these things are, but letting you know these changes should be ready for review, in case you were waiting for me to notify you.

Thank you! We're pretty busy, so a simple ping when the PR is ready for review again is helpful :)

My only minor concern is that the "play multiple bags" section is a bit lengthy now based on the structure that we discussed, but let me know your thoughts. Thanks!

I think it's good, and this way it's pretty self-contained.

Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to make sure that you have only 1 sentence per line (see CI): https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing/Contributing-To-ROS-2-Documentation.html#writing-pages

Other than that and a small fix, this looks good to me!

@christophebedard christophebedard added the backport-kilted backport to kilted at reviewers discretion; from rolling to kilted label Aug 28, 2025
- Add/remove line breaks so that each sentence lives on its own line,
  adhering to the CI guidelines
Copy link
Member

@christophebedard christophebedard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the PR and for iterating!

@christophebedard christophebedard merged commit b81dc71 into ros2:rolling Aug 29, 2025
5 checks passed
mergify bot pushed a commit that referenced this pull request Aug 29, 2025
christophebedard pushed a commit that referenced this pull request Aug 29, 2025
(cherry picked from commit b81dc71)

Co-authored-by: Harrison Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-kilted backport to kilted at reviewers discretion; from rolling to kilted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add recent ros bag play changes to CLI documentation
3 participants