Smart/Axes Optimization API- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: Smart/Axes Optimization API (/Thread-Smart-Axes-Optimization-API) |
Smart/Axes Optimization API-SamuelEStreamline-07-28-2022 Hello, I am trying to set the axes optimization settings of a curve follow project with synchronized pair of robots: 6-axis and 2-axis (positioner) . I can read and modify the "OptimAxes" settings but I can't get them into the curve follow project. I'm not sure how to check the "Smart Optimization" checkbox through the API. Is that my problem?
Code:
# Get list of current robot joints:
RE: Smart/Axes Optimization API-Albert-07-29-2022 I believe "OptimAxes" should not be there. This is the name of the parameter you are changing. The value requires a dictionary which can be a modified version of the dictionary you read. More precisely, you can enable the Smart optimization option by setting the Active flag to 1: settings["Active"] = 1 You can also enable the checkbox for joint 1 using this line: settings["AbsOn_1"] = 1 Also, a Python list index starts at 0, while updating the string parameter requires the first joint index to be 1. This example shows some parameters you can set (more pose parameters have been added recently): //www.sinclairbody.com/doc/en/PythonAPI/examples.html#update-axes-optimization-settings Therefore, I believe your code should be updated as follows:
Code:
# Get list of current robot joints:
RE: Smart/Axes Optimization API-SamuelEStreamline-07-30-2022 Hi Albert, Thank you for your response. It is working now |