Skip to content

Add playback progress output to rosbag2 player - #2454

Open
umiklos wants to merge 1 commit into
ros2:humblefrom
umiklos:feature/ros2bag-play-progress
Open

Add playback progress output to rosbag2 player#2454
umiklos wants to merge 1 commit into
ros2:humblefrom
umiklos:feature/ros2bag-play-progress

Conversation

@umiklos

@umiklos umiklos commented Jul 14, 2026

Copy link
Copy Markdown

Description

This PR adds ROS1-style playback progress output to ros2 bag play.

During playback, the player now prints the current bag time and the elapsed playback duration relative to the total bag duration. The progress output is also refreshed smoothly during playback so that the status line updates even when messages are sparse.

In addition to the player-side output, the playback wait behavior was adjusted so that the progress line can refresh periodically instead of only updating on message publication boundaries.

Is this user-facing behavior change?

Yes.

Users running ros2 bag play will now see playback progress in the terminal, including the current bag time and elapsed duration versus total duration, similar to the feedback available in ROS1. This makes it easier to understand where playback currently is during debugging, validation, and dataset inspection.

Did you use Generative AI?

Yes.

GitHub Copilot using GPT-5.4 was used to help draft and implement parts of the code changes, validation steps, and PR text.

Additional Information

This change is implemented in the common playback path, so it is storage-backend agnostic and is expected to apply to playback using both MCAP and SQLite3/DB3 bags.

Validated locally with:

source setup.bash
colcon build --packages-select rosbag2_cpp rosbag2_transport rosbag2_py --cmake-args -DBUILD_TESTING=OFF

@MichaelOrlov MichaelOrlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR has ABI breaking changes in the rosbag2_transport/include/rosbag2_transport/player.hpp. Unfortunately we can't merge it to Humble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants