|
controls
3.0.0
|
Singleton utility providing access to the shared ROS node and time functions. More...
#include <NodeUtils.h>
Static Public Member Functions | |
| static double | current_ros_time () |
| Returns the current ROS clock time in seconds. More... | |
| static double | current_system_time () |
| Returns the current system (wall-clock) time in seconds. More... | |
| static rclcpp::Time | current_ros_stamp () |
| Returns the current ROS time as an rclcpp::Time stamp. More... | |
| static rclcpp::Logger | get_logger () |
| Returns the ROS logger associated with the shared node. More... | |
Static Public Attributes | |
| static std::shared_ptr< rclcpp::Node > | node_ |
| Shared pointer to the single active ROS2 node. More... | |
Singleton utility providing access to the shared ROS node and time functions.
The node pointer must be set by the application entrypoint before any other method is called. All methods silently degrade when the node is null.
|
inlinestatic |
Returns the current ROS time as an rclcpp::Time stamp.
|
inlinestatic |
Returns the current ROS clock time in seconds.
|
inlinestatic |
Returns the current system (wall-clock) time in seconds.
|
inlinestatic |
Returns the ROS logger associated with the shared node.
|
inlinestatic |
Shared pointer to the single active ROS2 node.