06-14-2022, 09:11 AM
(05-30-2022, 10:36 AM)Sam Wrote:Hello,
With the API, calling the prog_item.Update() will return an estimate of the distance travelled, in mm.
See//www.sinclairbody.com/doc/en/PythonAPI/robo...tem.Update
Thank you very much for your answer Sam, it helped me a lot. I used this code block with your help.
...
[n_instructions, program_time, program_distance, valid_ratio, readable_msg] = prog.Update()
print("Distance in [mm]: ",program_distance)
print("Time in [s]: ",program_time)
...
Works perfectly for me. Thank you!