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

rosbag "repeat latched" messages are not latched #2350

Open
Hugal31 opened this issue Oct 2, 2023 · 0 comments · May be fixed by #2351
Open

rosbag "repeat latched" messages are not latched #2350

Hugal31 opened this issue Oct 2, 2023 · 0 comments · May be fixed by #2351

Comments

@Hugal31
Copy link

Hugal31 commented Oct 2, 2023

Description

When using rosbag record with splits and --repeat-latched, the latched messages in the subsequent bags are not marked as latched (and also lose the callerId).

This caused issue when I tried to replay a rosbag from the middle using -s.

Steps to reproduce

# Latched topic publisher, in the background
rostopic pub -l /foo std_msgs/Bool true & 
# Non latched topic at 10Hz, so the bags are not empty, in the background
rostopic pub /bar std_msgs/Bool false -r 10 & 

# Record at least 20 seconds
rosbag record /foo /bar -O foo.bag --split --duration 10 --repeat-latched

Kill the rosbag, the two publishers, and try to get /foo from the middle of foo_1.bag:

rostopic echo /foo # In another terminal
rosbag play foo_1.bag -s 5

Expected: the rostopic node displays data: True
Actual: nothing happen.

@Hugal31 Hugal31 linked a pull request Oct 2, 2023 that will close this issue
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 a pull request may close this issue.

1 participant