Skip to content
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

fix: Expose timers used by rclcpp::Waitables #2699

Draft
wants to merge 3 commits into
base: rolling
Choose a base branch
from

Conversation

jmachowinski
Copy link
Contributor

This change was needed, as an events based executors needs to be aware of the timers, in order generate the timer ready events.

@alsora @wjwwood This PR is the followup to the discussion two weeks back in the client workgroup.

@jmachowinski
Copy link
Contributor Author

Added a fix for the expire timer not working for action servers.
Note, this is an alternative to #2661 for rolling.

Janosch Machowinski added 2 commits December 6, 2024 14:39
This change was needed, as an events based executors needs to be
aware of the timers, in order generate the timer ready events.

Signed-off-by: Janosch Machowinski <[email protected]>
This should fix a bug, were the internal expire timer of
the action server was not triggered.

Signed-off-by: Janosch Machowinski <[email protected]>
@jmachowinski jmachowinski force-pushed the expose_timers_of_waitables branch from 335fbe4 to c172276 Compare December 6, 2024 13:39
@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/next-client-library-wg-meeting-friday-6th-december-2024-8am-pt/40954/2

Copy link
Collaborator

@alsora alsora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good.
Would you mind adding a couple of unit-tests that exercise the new method?
It would be ideal to have:

  • a test for the action server to verify that it returns 1 timer
  • a test with the events executor where we verify that the timer is correctly handled

@jmachowinski jmachowinski force-pushed the expose_timers_of_waitables branch from f6651f9 to 35694c8 Compare December 11, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants