07-28-2022, 11:23 PM
(This post was last modified: 07-29-2022, 09:40 PM byAlbert.Edit Reason: missed some info, added proper indent
)
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?
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:
robot_joints = robot.Joint().list()
# Get list of joint keys:
joint_keys =[]
for i in range(1,9):
joint_keys.append("AbsJnt_" + str(i))
# Read and modify axes optimization settings:
settings = project.setParam("OptimAxes")
for i in range(1,9):
settings["OptimAxes"][joint_keys[i]] = robot_joint[i]
# Update project optimization axes settings:
project.setParam("OptimAxes", settings)