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

ROS time across machines

asked 2011-10-17 06:56:41 -0600

John Hoare gravatar image

When there are several machines involved, how are timestamps created? It looks like to me that they're being generated by each machine's individual time, so if one machine is out of sync with another than all the messages will be in the past or the future. Is this actually the case or am I missing something, and how do people deal with this limitation?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
16

answered 2011-10-17 07:06:54 -0600

Chad Rockey gravatar image

You're correct, they just use the system's current time. The typical way I've seen to synchronize time across computers is to use Chrony. With Ubuntu, you should be able to just run apt-get install chrony.

Here are some resources I've found on a quick search:

http://answers.ros.org/question/2140/chrony-configuration-and-limitations

http://pr2support.willowgarage.com/wiki/PR2%20Manual/Chapter13#Clock_Synchronization

The important information is that your ROS system computers are tightly coupled in time, but loosely tied to the outside world's time.

edit flag offensive delete link more

Comments

If anyone requires, the link for: http://pr2support.willowgarage.com/wi... has been changed to: https://www.clearpathrobotics.com/ass... since PR2 has changed hands from Willow Garage to Clear Path Robotics

Den gravatar image Den  ( 2022-03-28 22:04:51 -0600 )edit
4

answered 2011-10-17 07:04:21 -0600

Wim gravatar image

You're exactly right, the timestamps are generated from each machine's individual clock. So it's very important to keep all clocks synchronized. On the PR2 robot (which contains two machines) we use Chrony.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2011-10-17 06:56:41 -0600

Seen: 14,000 times

Last updated: Oct 17 '11