RoboDK Forum
Python AddCurve(list of poses)- Printable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Python AddCurve(list of poses) (/Thread-Python-AddCurve-list-of-poses)



Python AddCurve(list of poses)-VinceR-11-24-2020

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


RE: Python AddCurve(list of poses)-Jeremy-11-25-2020

Hi VinceR,

as stated in the documentation here ://m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Robolink.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".
这将创建一个ca . csv文件n then read with Excel.

希望它可以帮助。
Jeremy