roslibjs icon indicating copy to clipboard operation
roslibjs copied to clipboard

Latency Interpretation

Open chrisui opened this issue 5 years ago • 3 comments

Just wondering if anyone has cracked a good way to interpret and account for latency with roslibjs and the rosbridge?

I'm attempting to sync web_video_server with data coming through a roslibjs.RosTopic but am unsure how to calculate the latency of the two so data can be buffered and matched appropriately.

chrisui avatar Oct 24 '18 14:10 chrisui

The latency of web_video_server and rosbridge is low and if both are running on the same host the sync should be very tight for visualization purposes. If rosbridge is lagging behind you are pushing too much data and should use throttling. If you need the sync to be tighter you should use a native application e.g. rqt.

mvollrath avatar Jan 19 '19 04:01 mvollrath

Hi @mvollrath

  • Why could there be some lag between the publisher and the web bridge?
  • What kind of throttling are you referring to? To the parameter of the topic in the roslibjs code?

ManuelZ avatar Apr 05 '21 18:04 ManuelZ

Hi @mvollrath

  • Why could there be some lag between the publisher and the web bridge?

Typically this would be because the publisher and web bridge are on different hosts and have network latency between them. If they are on the same host and configured properly then no latency should be expected in that link.

  • What kind of throttling are you referring to? To the parameter of the topic in the roslibjs code?

Yes.

mvollrath avatar Apr 05 '21 18:04 mvollrath