ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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.