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

Add rcl_timer_call_with_info function #1113

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

jmachowinski
Copy link
Contributor

This commit is the precursor to re adding the 'TimerEvent' from ROS1.

This allows us to get the correct time of the timer callback as node->now() can
return a later timestamp than 'expected' due to race conditions.

@jmachowinski
Copy link
Contributor Author

@clalancette ping

@jmachowinski
Copy link
Contributor Author

@wjwwood @mjcarroll @fujitatomoya Ping, I would like to see this merged for jazzy

@jmachowinski jmachowinski force-pushed the timer_info_rolling branch 2 times, most recently from 205989d to c09e77a Compare February 20, 2024 12:13
Copy link
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

Two documentation nits

rcl/include/rcl/timer.h Outdated Show resolved Hide resolved
rcl/test/rcl/test_timer.cpp Outdated Show resolved Hide resolved
@jmachowinski
Copy link
Contributor Author

@mjcarroll Any more points from your side, or can we move forward with this PR ?

@mjcarroll
Copy link
Member

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Copy link
Member

@mjcarroll mjcarroll left a comment

Choose a reason for hiding this comment

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

LGTM with Green CI. Thanks for porting this feature forward from ROS 1.

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

@jmachowinski a few minor comments, can you check?

rcl/include/rcl/timer.h Outdated Show resolved Hide resolved
rcl/test/rcl/test_timer.cpp Show resolved Hide resolved
rcl/test/rcl/test_timer.cpp Show resolved Hide resolved
… the actual timer trigger times

Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Alexis Tsogias <a.tsogias@cellumation.com>
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
rcl/test/rcl/test_timer.cpp Show resolved Hide resolved
@mjcarroll
Copy link
Member

Will run this one more time once ros-perception/point_cloud_transport#72 lands

@mjcarroll
Copy link
Member

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@mjcarroll
Copy link
Member

mjcarroll commented Mar 26, 2024

Previous run was across the FastCDR update, updated to new repos file:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@mjcarroll
Copy link
Member

CI has known flaky Windows tests, this is good to go.

@mjcarroll mjcarroll merged commit 5695763 into ros2:rolling Mar 26, 2024
2 of 3 checks passed
apojomovsky pushed a commit to apojomovsky/rcl that referenced this pull request May 16, 2024
… the actual timer trigger times (ros2#1113)

Signed-off-by: Alexis Tsogias <a.tsogias@cellumation.com>
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Alexis Tsogias <a.tsogias@cellumation.com>
Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
apojomovsky pushed a commit to apojomovsky/rcl that referenced this pull request Jun 17, 2024
… the actual timer trigger times (ros2#1113)

Signed-off-by: Alexis Tsogias <a.tsogias@cellumation.com>
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Alexis Tsogias <a.tsogias@cellumation.com>
Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
apojomovsky pushed a commit to apojomovsky/rcl that referenced this pull request Jun 26, 2024
… the actual timer trigger times (ros2#1113)

Signed-off-by: Alexis Tsogias <a.tsogias@cellumation.com>
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Alexis Tsogias <a.tsogias@cellumation.com>
Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
apojomovsky pushed a commit to irobot-ros/rcl that referenced this pull request Aug 12, 2024
… the actual timer trigger times (ros2#1113)

Signed-off-by: Alexis Tsogias <a.tsogias@cellumation.com>
Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Alexis Tsogias <a.tsogias@cellumation.com>
Co-authored-by: Michael Carroll <carroll.michael@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
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.

4 participants