Time Delay from laptop to robot of each data sample

Continuing the discussion from Get current time:
Hey!! I have a question
I am using Python script to teleoperate UR5, how can I calculate the time delay from my laptop to robot?
I need to know at what time does each data sample (suppose position data) reach robot?

The results will depend a lot of what protocol you use.

1 Like

I am new to this robotics communication field, and I simply need a procedure, I exactly don’t know which protocol I am using, maybe it is UDP protocol but I am using ROS communication. UR5 and my laptop are connected to the same network ( intranet). Please guide me

I’m not sure it’s exactly what you’re asking for, but since you’re already using ROS, this thread from the UR-sponsored ROS driver project might be useful: