Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Get trajectory path length with API or/and via short python script

#3
(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!


Messages In This Thread
RE: Get trajectory path length with API or/and via short python script - byOlendo- 06-14-2022, 09:11 AM



Users browsing this thread:
1 Guest(s)