measuring time from tf server to web client

asked 2016-11-03 07:30:32 -0500

Monte-Cristo gravatar image

Hello everyone I was trying to measure time that would take a tf from the server to a client web page inside a websocket communcation. A kind of a ping. I was thinking about synchronizing the server and the client clock, but a ping is also a matter of milliseconds. Any ideas please!

edit retag flag offensive close merge delete

Comments

What are you aiming for? The tf messages have stamps on them, can you use that stamp for synchronization?

huanxiner gravatar image huanxiner  ( 2016-11-03 13:33:13 -0500 )edit

I found this post wherein it's explained how to measure the diffrence between the client and the server clocks. I suppose that I can use it to calculate "travel time" of tf in a websocket. Isn't it?

Monte-Cristo gravatar image Monte-Cristo  ( 2016-11-04 11:48:43 -0500 )edit

Yes you can first solve the time difference d in that post, then estimate travel time of each communication. But the travel time will vary each time so I don't see why you would want to calculate travel time for synchronization purpose.

huanxiner gravatar image huanxiner  ( 2016-11-04 14:51:21 -0500 )edit

Actually I want to know how long would take a tf to "travel" from the server to the web page in the visualizing urdf example by synchronizing clocks will help me to figure it out. So the main purpose is to have travel time inside a websocket

Monte-Cristo gravatar image Monte-Cristo  ( 2016-11-04 19:27:32 -0500 )edit