-
Notifications
You must be signed in to change notification settings - Fork 427
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
Use rcl_clock_t jump callbacks #543
Conversation
rclcpp/src/rclcpp/clock.cpp
Outdated
rclcpp::JumpHandler * handler = static_cast<rclcpp::JumpHandler *>(user_data); | ||
if (before_jump && handler->pre_callback) { | ||
handler->pre_callback(); | ||
} else if (handler->post_callback) { |
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.
The conditions in the if
and else if
look weird. If before_jump
is true
but the handler
only has a post callback it is being called here?
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.
Added test and fixed in af09c59
Relieves rclcpp::TimeSource responsibility of calling jump callbacks.
9b55985
to
af09c59
Compare
I made a mistake here. tf2_ros uses time jump callbacks and is now broken. Will fix shortly |
* Implement streaming compression/decompression Distro A, OPSEC #4584 Signed-off-by: P. J. Reed <preed@swri.org>
Relieves rclcpp::TimeSource responsibility of calling jump callbacks.
(Changed branch name to disconnect PRs)
Requires ros2/rcl#284