Hi,
I'm trying to perform a pick and place using python , but I'm struggling to find a possible function that can help?
My current code was:
w=1
if RDK.Collisions()==0:
tool.MoveJ([100-w,0,0]) #move gripper from joint value in a decremental form
w=w+1
print(w)
else:
TCP_On(tool) # attach tool
The problem is that if I turn on the check collision between the box and gripper hand. The robot won't move and it triggers an error "raise StoppedError(self.LAST_STATUS_MESSAGE) //robodk.robolink.StoppedError: Collision detected"
Is there a way in python to automate the notion that when the gripper starts to close, it will stop when it feels some resisitance , a point when its holding the box ? (i.e. collision).
Also is there a specific function to move the gripper arm with pose values? I'm using the joint movement and it would be better to use the pose movement (currently usetool.MoveJ())
Thanks!
I'm trying to perform a pick and place using python , but I'm struggling to find a possible function that can help?
My current code was:
w=1
if RDK.Collisions()==0:
tool.MoveJ([100-w,0,0]) #move gripper from joint value in a decremental form
w=w+1
print(w)
else:
TCP_On(tool) # attach tool
The problem is that if I turn on the check collision between the box and gripper hand. The robot won't move and it triggers an error "raise StoppedError(self.LAST_STATUS_MESSAGE) //robodk.robolink.StoppedError: Collision detected"
Is there a way in python to automate the notion that when the gripper starts to close, it will stop when it feels some resisitance , a point when its holding the box ? (i.e. collision).
Also is there a specific function to move the gripper arm with pose values? I'm using the joint movement and it would be better to use the pose movement (currently usetool.MoveJ())
Thanks!