Improve latency on reading data from robot. #24
-
I would like to monitor the motion of the robot as it moves. The data I need is arm status (joint angle), and general status (e-stop/is-done-moving/hold) I tried to read them using
Where each access to In general, the combined 30ms latency is not too big a issue. My main concern is the duration stack up as I fetch more items, (say I also want to record TCP values along with joint values, this would add another 10ms to latency from conversion) Are there ways to reduce this or combine reading all chunks of data in one pass so the latency/cycle time of fetching data is not getting longer with the amount of data I'm fetching? A side question, is it possible to add a timestamp when retrieving robot position data (controller time of when the joint values is captured), so the post calculation of velocity and acceleration could be a lot more accurate? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Gray-Stone For applications where latency is a concern, I recommend the MotoPlus SDK. It is more difficult to develop, but offers the best possible performance for real time control. |
Beta Was this translation helpful? Give feedback.
Hi @Gray-Stone
YMConnect is not capable of deterministic real-time response. The latency that you're experiencing is normal and cannot be improved. Additionally, there is no ability to add a controller timestamp using this interface.
For applications where latency is a concern, I recommend the MotoPlus SDK. It is more difficult to develop, but offers the best possible performance for real time control.