Skip to content

time_until_next_call returns max if timer is canceled#907

Closed
mauropasse wants to merge 1 commit intoros2:masterfrom
mauropasse:mauro/rclpy-timer
Closed

time_until_next_call returns max if timer is canceled#907
mauropasse wants to merge 1 commit intoros2:masterfrom
mauropasse:mauro/rclpy-timer

Conversation

@mauropasse
Copy link
Copy Markdown

The PR ros2/rcl#963 changes rcl_timer_get_time_until_next_call to return RCL_RET_TIMER_CANCELED if timer was canceled.
Here in rclpy we'll return std::numeric_limits<int64_t>::max() on time_until_next_call if timer was canceled.

Signed-off-by: Mauro Passerino mpasserino@irobot.com

Signed-off-by: Mauro Passerino <mpasserino@irobot.com>
Copy link
Copy Markdown
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.

it would be nicer if we have doc section aligned with rclcpp, but lgtm.

@mauropasse mauropasse closed this Mar 11, 2022
@mauropasse
Copy link
Copy Markdown
Author

#910 did the job, thanks @fujitatomoya !

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.

2 participants