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

Add burst-mode to Player #977

Merged
merged 1 commit into from
Mar 26, 2022
Merged

Add burst-mode to Player #977

merged 1 commit into from
Mar 26, 2022

Conversation

gbiggs
Copy link
Member

@gbiggs gbiggs commented Mar 24, 2022

This PR adds an API and a service to the Player object for burst-mode playback. Burst-mode playback will play the specified number of messages as fast as possible, ignoring the timing information stored in the bag for those messages. This is useful when, for example, you want to play a bag file into a processing pipeline that doesn't care about timing information and you want to process the data as fast as possible, rather than at the rate it was originally recorded.

A future extension of this API could change it to three methods, burst_n_messages, burst_for_s_seconds and burst_up_to, which would burst a message count, all messages for a given time period, or all messages up to a timestamp, respectively.

Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
@gbiggs gbiggs added the enhancement New feature or request label Mar 24, 2022
@gbiggs gbiggs requested a review from a team as a code owner March 24, 2022 09:02
@gbiggs gbiggs requested review from MichaelOrlov and hidmic and removed request for a team March 24, 2022 09:02
Copy link
Contributor

@MichaelOrlov MichaelOrlov left a comment

Choose a reason for hiding this comment

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

@gbiggs Thank you for clean implementation. It looks good to me.
Approved.

@gbiggs
Copy link
Member Author

gbiggs commented Mar 26, 2022

CI (--packages-up-to rosbag2_transport, --packages-select rosbag2_transport):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@gbiggs gbiggs merged commit 67bd776 into ros2:master Mar 26, 2022
@gbiggs gbiggs deleted the gbiggs/burst_mode branch March 26, 2022 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
H-Turtle
Awaiting triage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants