disable collision checking when closing gripper using move_group [closed]

asked 2020-07-20 06:25:42 -0500

xibeisiber gravatar image

Hi all,

Since I use EffortController to control the gripper (stoping closing when effort is detected), I set the goal state of gripper to be fully closed in move_group. But due to the existence of object to be grasped (Obj_real) in octomap, the gripper.move() plan failed.

One possible way to solve this is to disable the collision checking between gripper and the octomap temporarily only for gripper.move(). But this may be unsafe, and I don't know how to do this....

Secondly, it's said if I add and attach an object (Obj_virtual) in the planning scene at the position of Obj_real, then the octomap belonging to the Obj_real will be cleared. But again I need to disable the collision checking between the gripper and Obj_virtual. It seems this can be done by attached_object.touch_links = {"linkname1","linkname2"}; or by modify the AllowedCollisionMatrix (acm) using acm.setEntry("obj_virtual","linkname1",true);. But after these settings, the gripper.move() still fails.. I'm not sure whether these settings are using when planning the move by the MoveGroupInterface..

Any suggestions about this... Thanks very much!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by xibeisiber
close date 2020-07-20 21:57:02.210447


Hi there, I have the exact same problem as you, I'm trying to modify the ACM for my gripper so that it will be able to ignore the collision with grasping object when it closes, however I suspect that the gripper.move() fails because the ACM is in the planning_scene class which is a different class from the MoveGroupInterface class, hence updating the ACM does not affect gripper.move(). Do you know how we can link planning_scene to MoveGroupInterface?

wootoodoo gravatar image wootoodoo  ( 2020-07-21 22:37:33 -0500 )edit

Please see this Q&A for reference

xibeisiber gravatar image xibeisiber  ( 2020-07-23 01:55:01 -0500 )edit