rclcpp  master
C++ ROS Client Library API
Public Member Functions | List of all members
rclcpp::Clock Class Reference

#include <clock.hpp>

Public Member Functions

 Clock (rcl_clock_type_t clock_type=RCL_SYSTEM_TIME)
 
 ~Clock ()
 
Time now ()
 
bool ros_time_is_active ()
 
rcl_clock_tget_clock_handle ()
 
rcl_clock_type_t get_clock_type ()
 
JumpHandler::SharedPtr create_jump_callback (std::function< void()> pre_callback, std::function< void(const rcl_time_jump_t &)> post_callback, const rcl_jump_threshold_t &threshold)
 

Constructor & Destructor Documentation

◆ Clock()

rclcpp::Clock::Clock ( rcl_clock_type_t  clock_type = RCL_SYSTEM_TIME)
explicit

◆ ~Clock()

rclcpp::Clock::~Clock ( )

Member Function Documentation

◆ now()

Time rclcpp::Clock::now ( )

◆ ros_time_is_active()

bool rclcpp::Clock::ros_time_is_active ( )

◆ get_clock_handle()

rcl_clock_t* rclcpp::Clock::get_clock_handle ( )

◆ get_clock_type()

rcl_clock_type_t rclcpp::Clock::get_clock_type ( )

◆ create_jump_callback()

JumpHandler::SharedPtr rclcpp::Clock::create_jump_callback ( std::function< void()>  pre_callback,
std::function< void(const rcl_time_jump_t &)>  post_callback,
const rcl_jump_threshold_t threshold 
)

These callback functions must remain valid as long as the returned shared pointer is valid.


The documentation for this class was generated from the following file: