rclcpp  master
C++ ROS Client Library API
Public Member Functions | List of all members
rclcpp::node_interfaces::NodeClockInterface Class Referenceabstract

Pure virtual interface class for the NodeClock part of the Node API. More...

#include <node_clock_interface.hpp>

Inheritance diagram for rclcpp::node_interfaces::NodeClockInterface:
Inheritance graph
[legend]

Public Member Functions

virtual ~NodeClockInterface ()=default
 
virtual rclcpp::Clock::SharedPtr get_clock ()=0
 Get a ROS clock which will be kept up to date by the node. More...
 
virtual rclcpp::Clock::ConstSharedPtr get_clock () const =0
 Get a const ROS clock which will be kept up to date by the node. More...
 

Detailed Description

Pure virtual interface class for the NodeClock part of the Node API.

Constructor & Destructor Documentation

◆ ~NodeClockInterface()

virtual rclcpp::node_interfaces::NodeClockInterface::~NodeClockInterface ( )
virtualdefault

Member Function Documentation

◆ get_clock() [1/2]

virtual rclcpp::Clock::SharedPtr rclcpp::node_interfaces::NodeClockInterface::get_clock ( )
pure virtual

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

Implemented in rclcpp::node_interfaces::NodeClock.

◆ get_clock() [2/2]

virtual rclcpp::Clock::ConstSharedPtr rclcpp::node_interfaces::NodeClockInterface::get_clock ( ) const
pure virtual

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

Implemented in rclcpp::node_interfaces::NodeClock.


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