15 #ifndef RCLCPP__CLOCK_HPP_ 16 #define RCLCPP__CLOCK_HPP_ 112 JumpHandler::SharedPtr
122 get_triggered_callback_handlers(
const TimeJump & jump);
126 static void invoke_prejump_callbacks(
130 static void invoke_postjump_callbacks(
145 #endif // RCLCPP__CLOCK_HPP_ Definition: time_source.hpp:36
std::function< void()> pre_callback
Definition: clock.hpp:78
The time type switched to SYSTEM_TIME from ROS_TIME.
Definition: clock.hpp:44
Clock(rcl_clock_type_t clock_type=RCL_SYSTEM_TIME)
Definition: allocator_common.hpp:24
ClockChange_t
Definition: clock.hpp:40
ClockChange_t jump_type_
The change in clock_type if there is one.
Definition: clock.hpp:48
bool is_exceeded(const TimeJump &jump)
JumpThreshold notice_threshold
Definition: clock.hpp:80
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
uint64_t min_backward_
The minimum backwards jump to be considered exceeded.
Definition: clock.hpp:60
rcl_clock_type_t get_clock_type()
JumpHandler(std::function< void()> pre_callback, std::function< void(TimeJump)> post_callback, JumpThreshold &threshold)
bool ros_time_is_active()
std::function< void(const TimeJump &)> post_callback
Definition: clock.hpp:79
The time type before and after the jump is ROS_TIME.
Definition: clock.hpp:42
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
The time type switched to ROS_TIME from SYSTEM_TIME.
Definition: clock.hpp:43
bool on_clock_change_
Whether to trigger on any clock type change.
Definition: clock.hpp:61
The time type before and after the jump is SYSTEM_TIME.
Definition: clock.hpp:45
uint64_t min_forward_
The minimum jump forward to be considered exceeded..
Definition: clock.hpp:59
rcl_duration_t delta_
The change in time value.
Definition: clock.hpp:49
A struct to represent a timejump.
Definition: clock.hpp:38
JumpHandler::SharedPtr create_jump_callback(std::function< void()> pre_callback, std::function< void(const TimeJump &)> post_callback, JumpThreshold &threshold)
A class to store a threshold for a TimeJump.
Definition: clock.hpp:56