-
Notifications
You must be signed in to change notification settings - Fork 163
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
Add timer on reset callback #995
Add timer on reset callback #995
Conversation
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
73918e1
to
174f2f3
Compare
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
@wjwwood @clalancette It would be very nice to merge this and #995 soon. We are trying to use https://github.com/irobot-ros/events-executor/, but it requires these pull requests, and manually rebuilding rcl and rclcpp with the pull requests merged is not sufficient because the rclcpp pull request includes ABI changes that require a rebuild of all packages using |
Another ping on this one due to the breaking ABI changes and the need to build nearly everything from source as a consequence if the events executor is used in a single node. Also I think you mean ros2/rclcpp#1979 @timonegk right? |
As the maintainers were updated recently also a frindly ping at @audrow and @ivanpauno |
Could you explain that in more detail? |
There are two situations in which a wait-set based executor can be awaken when something changes related to the timer, by means of triggering its guard condition:
Before these same situations, the |
I think we trigger the guard condition because the timeout used in
IMO, that sounds better. |
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
Yes, no need to add an extra callback for it. |
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
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.
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.
Looks good to me with green CI!
@wjwwood this PR is created after discussions originated from this PR: #966
Instead of adding an
on_trigger
callback to the rcl guard conditions, we add here anon_reset
callback to the rcl timers.The issue which originated this need, is wake up an events based executor when a timer is reset (which could also be caused by a time jump).
FYI @alsora