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_type_t get_clock_type ()
 
JumpHandler::SharedPtr create_jump_callback (std::function< void()> pre_callback, std::function< void(const TimeJump &)> post_callback, JumpThreshold &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_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 TimeJump &)>  post_callback,
JumpThreshold 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: