I am triying to move a Staubli TX2-140 robot using MoveJ with a HTM. In RoboDK I have defined a frame named "Target1". In a python script, I have the following lines:
When I execute the script, an error occurs:
Exception: Invalid item provided: The item identifier provided is not valid or it does not exist.
My python version is 3.11.1 and RoboDK version v5.6.3
Code:
target1 = RDK.Item('Target1')
target1.setPose(Mat([[ 0.054106, -0.998192, -0.026181, 873.346419],
[0.998535, 0.054084, 0.001557, -90.659168 ],
[-0.000138, -0.026227, 0.999656, -452.496054 ],
[0.000000, 0.000000, 0.000000, 1.000000 ]]))
print('Target position: ' + repr(target1.Pose()))
print("Type:",type(target1))
robot.MoveJ(target1)
When I execute the script, an error occurs:
Exception: Invalid item provided: The item identifier provided is not valid or it does not exist.
My python version is 3.11.1 and RoboDK version v5.6.3