Class NodeClock

Inheritance Relationships

Base Type

Class Documentation

class NodeClock : public rclcpp::node_interfaces::NodeClockInterface

Implementation of the NodeClock part of the Node API.

Public Functions

explicit NodeClock(rclcpp::node_interfaces::NodeBaseInterface::SharedPtr node_base, rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr node_topics, rclcpp::node_interfaces::NodeGraphInterface::SharedPtr node_graph, rclcpp::node_interfaces::NodeServicesInterface::SharedPtr node_services, rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr node_logging, rcl_clock_type_t clock_type)
virtual ~NodeClock()
virtual rclcpp::Clock::SharedPtr get_clock() override

Get a clock which will be kept up to date by the node.

virtual rclcpp::Clock::ConstSharedPtr get_clock() const override

Get a clock which will be kept up to date by the node.