We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 687057f commit 30e61c9Copy full SHA for 30e61c9
rclcpp/include/rclcpp/clock.hpp
@@ -60,6 +60,13 @@ class Clock
60
/**
61
* Initializes the clock instance with the given clock_type.
62
*
63
+ * WARNING Don't instantiate a clock using RCL_ROS_TIME directly,
64
+ * unless you really know what you are doing. By default no TimeSource
65
+ * is attached to a new clock. This will lead to the unexpected behavior,
66
+ * that your RCL_ROS_TIME will run always on system time. If you want
67
+ * a RCL_ROS_TIME use Node::get_clock(), or make sure to attach a
68
+ * TimeSource yourself.
69
+ *
70
* \param clock_type type of the clock.
71
* \throws anything rclcpp::exceptions::throw_from_rcl_error can throw.
72
*/
0 commit comments