Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

Add option to repeat latched messages at the start of bag splits - #1850

Merged
dirk-thomas merged 5 commits into
ros:noetic-develfrom
locusrobotics:add-repeat-latched
May 15, 2020
Merged

dirk-thomas merged 5 commits into
ros:noetic-develfrom
locusrobotics:add-repeat-latched

Conversation

@tappan-at-git

Copy link
Copy Markdown
Contributor

Split bagfiles lose all latched data. Many long-running ROS applications will include some kind of latched data that's only published once on launch (e.g. maps, static transforms), but prefer split bagfiles for ease of use, meaning they will have a difficult time actually using latched data without playing back the entire series of bagfiles.

This PR adds the --repeat-latched option to rosbag record. When this option is enabled, rosbag::Recorder remembers up to one message for each <topic, publisher> pair and prepends each latched message to each new bag file.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants