-
Notifications
You must be signed in to change notification settings - Fork 251
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
Rosbag2 play --clock option ignores delay #1858
Comments
this problem can be reproducible with |
rosbag2/rosbag2_transport/src/rosbag2_transport/player.cpp Lines 1072 to 1075 in b5098ef
To solve this issue I think it should be set in the rosbag2/rosbag2_transport/src/rosbag2_transport/player.cpp Lines 487 to 491 in b5098ef
I have tested this locally and it behaves correctly.
This is a problem I have also encountered in #1836.
I would start the clock in a paused state and then resume it after the delay period. @fujitatomoya I can open a PR to solve these two problems if these fixes are ok. |
That also does the job.
sounds good to me.
appreciate your effort, i am happy to review this. thanks! @MichaelOrlov please chime in if you have other thoughts on this. |
Ah yes, I see the autostart feature was added last year. |
@fujitatomoya @hayato-m126 As regards:
As more I see issues like this, I more regret that we allowed merging the "delay" option for the Rosbag2 player back in the day. I honestly would prefer to get rid of it at all rather than trying to fix the consequences and overcomplicated logic that we currently have with it.
|
@MichaelOrlov thanks for your comments.
i get what you mean, but i am not sure about the history of
agree on this. just a minor question is |
Thank you for your comment.
I have no objection. If |
Description
Even if delay option is specified, clock option ignores delay and publishes
/clock
.Also, after the time of delay elapses, clock time returns to the start time of bag.
Expected Behavior
/clock
is published after the delay time as well as the topic in the bag.Actual Behavior
/clock
is published ignoring delayTo Reproduce
/clock
--clock
and--delay
/clock
before delay time elapsesdemo
clock_ignores_delay.mp4
demo bag start Apr 5 2022 15:07:31.594430720 (1649138851.594430720)
clock 1649138851 -> 1649138861 -> 1649138851(start time)
clock_reverse_after_10sec.txt
System (please complete the following information)
Additional context
** Add any other context about the problem here **
The text was updated successfully, but these errors were encountered: