ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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:

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


If anyone requires, the link for: has been changed to: since PR2 has changed hands from Willow Garage to Clear Path Robotics

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 13,121 times

Last updated: Oct 17 '11