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

Python Exception: Invalid item provided: The item identifier provided is not

#1
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:
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
#2
Is the target an item of type target or a reference?

You should move to targets, not coordinate systems.

Can you share the corresponding RoboDK file?
#3
That was the problem. You are rigth. Thanks
#4
Great, thank you for letting us know.
  




Users browsing this thread:
3 Guest(s)