ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You should ask the Node for the current time instead of using a TimeProvider directly. You can specify the TimeProvider to use in the NodeConfiguration then use Node.getCurrentTime().
A ClockTopicTimeProvider will be used automatically if the /use_sim_time parameter is true when the Node starts.