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

AddCurve with a list of curves using Python

#1
Hi,

I am trying to create a curve follow project based on a list of poses in python.
What is the correct way to go about this?
If I supply a list poses I get a struct error: required argument is not a float
A list of pose.pos() works but I need position as well as orientation (normal vector).

Thanks in advance
V
#2
Hi VinceR,

as stated in the documentation here : https://robodk.com/doc/en/PythonAPI/robo...k.AddCurve
the addCurve requieres the orientation as an ijk unit vector.

If you want to better understand the format, you can right-click any extracted curve in your station and "Export Curve".
That will create a .csv file you can then read with Excel.

Hope it helps.
Jeremy
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our Youtube Channel


  




Users browsing this thread:
1 Guest(s)