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

"use-ros-time" - Drive rosbag2 playback via /clock time source #694

Open
emersonknapp opened this issue Mar 26, 2021 · 6 comments
Open

"use-ros-time" - Drive rosbag2 playback via /clock time source #694

emersonknapp opened this issue Mar 26, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@emersonknapp
Copy link
Collaborator

emersonknapp commented Mar 26, 2021

Description

Allow rosbag2 to listen to the /clock topic as its time source. This would allow for rosbag2 to play in sync with Gazebo, or to synchronize multiple bag playbacks with each other (one publishes /clock, the rest subscribe)

This should probably be invoked by ros2 bag play --use-ros-time

Related Issues

Related to #99
Designed by #675

Implementation Notes / Suggestions

See #675

Testing Notes / Suggestions

Run a bag playback with a separate clock publisher, and see that messages are published when expected.

@emersonknapp emersonknapp added the enhancement New feature or request label Mar 26, 2021
@emersonknapp emersonknapp self-assigned this Apr 9, 2021
@emersonknapp emersonknapp changed the title play - drive rosbag2 playback via external /clock time source play - drive rosbag2 playback via external /clock time source ("use-sim-time") Jun 11, 2021
@emersonknapp emersonknapp changed the title play - drive rosbag2 playback via external /clock time source ("use-sim-time") Drive rosbag2 playback via external /clock time source ("use-sim-time") Jun 11, 2021
@emersonknapp emersonknapp changed the title Drive rosbag2 playback via external /clock time source ("use-sim-time") "use-sim-time" - Drive rosbag2 playback via external /clock time source Nov 1, 2021
@emersonknapp emersonknapp changed the title "use-sim-time" - Drive rosbag2 playback via external /clock time source "use-ros-time" - Drive rosbag2 playback via external /clock time source Dec 8, 2021
@emersonknapp emersonknapp changed the title "use-ros-time" - Drive rosbag2 playback via external /clock time source "use-ros-time" - Drive rosbag2 playback via /clock time source Dec 8, 2021
@emersonknapp emersonknapp removed their assignment Aug 4, 2022
@emersonknapp
Copy link
Collaborator Author

Closing as completed

@giovannirizzetto
Copy link

Hello,

this rosbag2 feature would be very important in a project I am working on. I have not understood if it is going to be available or not, seems to me it was abandoned, right?

Thanks a lot for your assistance

@emersonknapp
Copy link
Collaborator Author

Hmmm - I remember being quite sure 2 weeks ago that this had been completed somehow - but I'm looking at the code now and not seeing any evidence of this. Maybe I was distracted at the time?

@emersonknapp emersonknapp reopened this Aug 3, 2023
@emersonknapp
Copy link
Collaborator Author

I don't think this would be too hard to implement. https://github.com/ros2/rosbag2/pull/928/files was definitely close to it. I'm not sure now why we closed it.

@giovannirizzetto
Copy link

Yes, I agree, it seems that it was very close to being done and merged but then it was just closed and that feature is currently absent.

Thanks for reopening it, I will monitor this issue and when it's done I'll pull your modifications.

@emersonknapp
Copy link
Collaborator Author

Well, unfortunately I don't think anybody has bandwidth allotted for this feature at the moment. If you wanted to grab the branch from #928 and take over finishing the implementation that would be great, and I'd be happy to try and give it a timely review.

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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants