rclcpp
master
C++ ROS Client Library API
|
#include <time_source.hpp>
Public Member Functions | |
TimeSource (rclcpp::Node::SharedPtr node) | |
TimeSource () | |
void | attachNode (rclcpp::Node::SharedPtr node) |
void | attachNode (rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base_interface, rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr node_topics_interface, rclcpp::node_interfaces::NodeGraphInterface::SharedPtr node_graph_interface, rclcpp::node_interfaces::NodeServicesInterface::SharedPtr node_services_interface, rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr node_logging_interface, rclcpp::node_interfaces::NodeClockInterface::SharedPtr node_clock_interface, rclcpp::node_interfaces::NodeParametersInterface::SharedPtr node_parameters_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 () | |
|
explicit |
rclcpp::TimeSource::TimeSource | ( | ) |
rclcpp::TimeSource::~TimeSource | ( | ) |
void rclcpp::TimeSource::attachNode | ( | rclcpp::Node::SharedPtr | node | ) |
void rclcpp::TimeSource::attachNode | ( | rclcpp::node_interfaces::NodeBaseInterface::SharedPtr | node_base_interface, |
rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr | node_topics_interface, | ||
rclcpp::node_interfaces::NodeGraphInterface::SharedPtr | node_graph_interface, | ||
rclcpp::node_interfaces::NodeServicesInterface::SharedPtr | node_services_interface, | ||
rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr | node_logging_interface, | ||
rclcpp::node_interfaces::NodeClockInterface::SharedPtr | node_clock_interface, | ||
rclcpp::node_interfaces::NodeParametersInterface::SharedPtr | node_parameters_interface | ||
) |
void rclcpp::TimeSource::detachNode | ( | ) |
void rclcpp::TimeSource::attachClock | ( | rclcpp::Clock::SharedPtr | clock | ) |
Attach a clock to the time source to be updated.
std::invalid_argument | if node is nullptr |
void rclcpp::TimeSource::detachClock | ( | rclcpp::Clock::SharedPtr | clock | ) |