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

#include <time_source.hpp>

Public Member Functions

 TimeSource (rclcpp::Node::SharedPtr node)
 
 TimeSource ()
 
void attachNode (rclcpp::Node::SharedPtr node)
 
void attachNode (const rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base_interface, const rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr node_topics_interface, const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr node_graph_interface, const rclcpp::node_interfaces::NodeServicesInterface::SharedPtr node_services_interface)
 
void detachNode ()
 
void attachClock (rclcpp::Clock::SharedPtr clock)
 Attach a clock to the time source to be updated. More...
 
void detachClock (rclcpp::Clock::SharedPtr clock)
 
 ~TimeSource ()
 

Constructor & Destructor Documentation

◆ TimeSource() [1/2]

rclcpp::TimeSource::TimeSource ( rclcpp::Node::SharedPtr  node)
explicit

◆ TimeSource() [2/2]

rclcpp::TimeSource::TimeSource ( )

◆ ~TimeSource()

rclcpp::TimeSource::~TimeSource ( )

Member Function Documentation

◆ attachNode() [1/2]

void rclcpp::TimeSource::attachNode ( rclcpp::Node::SharedPtr  node)

◆ attachNode() [2/2]

void rclcpp::TimeSource::attachNode ( const rclcpp::node_interfaces::NodeBaseInterface::SharedPtr  node_base_interface,
const rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr  node_topics_interface,
const rclcpp::node_interfaces::NodeGraphInterface::SharedPtr  node_graph_interface,
const rclcpp::node_interfaces::NodeServicesInterface::SharedPtr  node_services_interface 
)

◆ detachNode()

void rclcpp::TimeSource::detachNode ( )

◆ attachClock()

void rclcpp::TimeSource::attachClock ( rclcpp::Clock::SharedPtr  clock)

Attach a clock to the time source to be updated.

Exceptions
std::invalid_argumentif node is nullptr

◆ detachClock()

void rclcpp::TimeSource::detachClock ( rclcpp::Clock::SharedPtr  clock)

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