-
Notifications
You must be signed in to change notification settings - Fork 422
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
Timer does not working when reset a cancelled timer #1012
Comments
can you provide the exact reproduction procedure? you can commit the branch into your own repository, so that we can reproduce the same issue based on that. |
@fujitatomoya I add test code to my private repository. Please refer to the here |
thanks, confirmed problem and fix.
i was too early to jump on the code scan, may bad. |
* Improve test time controller test Signed-off-by: Jorge Perez <[email protected]> * Fix linter Signed-off-by: Jorge Perez <[email protected]> * Add missing library Signed-off-by: Jorge Perez <[email protected]>
Bug report
Required Info:
Steps to reproduce issue
I tested it using changed code from https://github.com/ros2/examples/blob/master/rclcpp/minimal_timer/lambda.cpp
And change rclcpp/minimal_timer/CMakeLists.txt
Expected behavior
[INFO] [minimal_timer]: Timer Expired. Timer cancel
[INFO] [minimal_timer]: Timer was cancelled and reset
[INFO] [minimal_timer]: Timer Expired. Timer cancel
[INFO] [minimal_timer]: Timer was cancelled and reset
[INFO] [minimal_timer]: Timer Expired. Timer cancel
Actual behavior
[INFO] [minimal_timer]: Timer Expired. Timer cancel
[INFO] [minimal_timer]: Timer was cancelled and reset
[INFO] [minimal_timer]: Timer was not cancelled
[INFO] [minimal_timer]: Timer was not cancelled
[INFO] [minimal_timer]: Timer was not cancelled
Additional information
Although reset a cancelled timer, the timer callback does not called because wait_set does not reset for the timer. I think guard condition should be triggered.
The text was updated successfully, but these errors were encountered: