-
Notifications
You must be signed in to change notification settings - Fork 260
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
Fix --topics flag for ros2 bag play being ignored for all bags after the first one. #619
Fix --topics flag for ros2 bag play being ignored for all bags after the first one. #619
Conversation
…the first one. Signed-off-by: Aleksandr Rozhdestvenskii <[email protected]>
thanks for the patch. Do you mind filling out the PR description a little bit more with details on how to reproduce this? I'd like to see whether we could come up with a regression test for this. |
@Karsten1987 Done |
Yeah, this looks good, but I would also like to see a regression test |
@emersonknapp @Karsten1987 regression test is in the branch :) |
Signed-off-by: UsatiyNyan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for the patch
Gist: https://gist.githubusercontent.com/emersonknapp/c8a36ec75da0a143fa208c2b298e9555/raw/be1708f6da83149c92388f5c3f573c84871a57c2/ros2.repos |
Could you also release this fix for foxy? |
If you open up a backport PR (cherry-pick the squashed commit from See #653 for an example |
… all bags after the first one (#619) (#654) * Fix --topics flag for ros2 bag play being ignored for all bags after the first one. (#619) Signed-off-by: Aleksandr Rozhdestvenskii <[email protected]> Signed-off-by: Emerson Knapp <[email protected]> * Add windows include guard around new test Signed-off-by: Emerson Knapp <[email protected]> Co-authored-by: Emerson Knapp <[email protected]>
How to reproduce:
We need to have some splitted log. I can't provide our own log, but I think any log with any messages recorded for 2 topics will be good.
File structure of our log looks like:
For example there are 2 topics recorded:
/topic1
and/topic2
.According to code I need to call
ros2 bag play --topics /topic1
to play messages only from/topic1
. So I've started playing in 1st terminal and start echoing messages in second one, likeros2 topic echo /topic2
In 1st terminal I got message something like
And when messages from
rosbag_1.db3
starts playing I've got messages in 2nd terminal. But in 2nd terminal I was listening for/topic2
messages!