-
Notifications
You must be signed in to change notification settings - Fork 430
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
Test case and fix for for https://github.com/ros2/rclcpp/issues/2652 #2713
base: rolling
Are you sure you want to change the base?
Conversation
6906974
to
660ffaa
Compare
@luca-della-vedova @fmrico can you test this fix ? |
timer1_works = false; | ||
timer2_works = false; | ||
max_end_time = std::chrono::steady_clock::now() + std::chrono::milliseconds(100); | ||
while(!timer1_works && !timer2_works) { |
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.
why do we keep checking timer2_works
after calling timer2.reset();
?
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.
To be sure, the first callback does not occur any more. Also there was code before, were I tried to figure out the order in the executor, but I gave up on that after reading the documentation of unordered map.
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.
I tried on the reproduction repo and this branch indeed fixes it!
Signed-off-by: Janosch Machowinski <[email protected]>
Signed-off-by: Janosch Machowinski <[email protected]>
Signed-off-by: Janosch Machowinski <[email protected]>
660ffaa
to
e3142d0
Compare
Sure!! testing... |
I have tested this PR against:
Everything is working now: LGTM 🔥 🚀 |
Signed-off-by: Francisco Martín Rico <[email protected]>
This is a test case and fix for the bug #2652