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

How to measure realtime delay when using multiple machines

asked 2021-09-27 03:45:59 -0600

Kim_3957 gravatar image

updated 2021-09-27 03:47:00 -0600

Hi I am currently dealing with multiple machines to control an actual vehicle using ros1.

My question is, is there any nice method to measure the latency when the control signal is sent (ex/ synchronizing rostime or referring to time of GPS)

however, if I refer to the GPS, my concern lies on commercial GPS only allows access to the time about 10~20Hz which is I think still a bit discrete.

conditions 1. Master side) 5G modem#1 - ros machine#1 - controlling device

  1. Slave side ) 5G modem#2 - ros machine#2 - vehicle interface

Any ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-27 06:52:48 -0600

BrettRD gravatar image

round-trip time is much easier and more reliable than absolute sync, get a remote node to repeat a message back.

NTP (system time) will get you closer than raw GPS messages, usually within 10ms

If you can get identical GPS hardware at both ends and a GPS pulse-per-second (PPS) kernel driver, you can realistically get within 20uS sync between system clocks

Raspberry pi supports PPS out of the box, and a lot of cheap commercial GPS modules have at least a blinkenlight on the PPS line

Without more context, I wouldn't bother going more complex than round-trip-time

edit flag offensive delete link more


Thank you for the answer. For our application, the round trip delay has no meaning. What we really want is the one-way delay which might be solved by the GPS synchronization you addressed. We will try to sync the two machines using the same GPS hardware. Thanks.

Kim_3957 gravatar image Kim_3957  ( 2021-09-27 23:01:43 -0600 )edit

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: 2021-09-27 03:45:59 -0600

Seen: 98 times

Last updated: Sep 27 '21