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>
audrow
left a comment
There was a problem hiding this comment.
Looks good to me with green CI!
@wjwwood this PR is created after discussions originated from this PR: #966
Instead of adding an
on_triggercallback to the rcl guard conditions, we add here anon_resetcallback 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