06-10-2019, 03:27点
The crash happens because the robot name you provide doesn't exist:
robot=RDK.Item('KUKA KR 6 R900',itemtype)
If you specify a name there has to be a name match (KUKA KR 6 R900 sixx in this case).
Alternatively, you can just provide an empty string:
robot=RDK.Item('',itemtype)
We just published a new update to avoid the RoboDK crash. However, you'll still get an error in your code so the easiest will be to just provide an empty string when you get the robot.
robot=RDK.Item('KUKA KR 6 R900',itemtype)
If you specify a name there has to be a name match (KUKA KR 6 R900 sixx in this case).
Alternatively, you can just provide an empty string:
robot=RDK.Item('',itemtype)
We just published a new update to avoid the RoboDK crash. However, you'll still get an error in your code so the easiest will be to just provide an empty string when you get the robot.
