ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Time objects can have different clocks, see the optional argument: https://github.com/ros2/rclcpp/blob/b1af28047c26da0fe5723e3ea95ed1143bc224e5/rclcpp/include/rclcpp/time.hpp#L35 and with that clock there may be different time sources, such as simulated time or system time. It's only valid to compare times on the same epoch.
To read more see the design article: http://design.ros2.org/articles/clock_and_time.html