arm_navigation_msgs_utils.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 PKG = 'planning_environment'
4 
5 import roslib; roslib.load_manifest(PKG)
6 from arm_navigation_msgs.msg import CollisionOperation
7 
8 # This function returns a bunch of ordered collision operations
9 # to disable collisions with all the links not in exclude
11 
12  ret = []
13 
14  for i in all:
15  if i not in exclude:
16  coll = CollisionOperation()
17  coll.object1 = i
18  coll.object2 = coll.COLLISION_SET_OBJECTS
19  coll.operation = coll.DISABLE
20  ret.append(coll)
21  coll2 = CollisionOperation()
22  coll2.object1 = i
23  coll2.object2 = coll.COLLISION_SET_ATTACHED_OBJECTS
24  coll2.operation = coll.DISABLE
25  ret.append(coll2)
26  for j in all:
27  if j != i and j not in exclude:
28  coll3 = CollisionOperation()
29  coll3.object1 = i
30  coll3.object2 = j
31  coll3.operation = coll.DISABLE
32  ret.append(coll3)
33  return ret
def make_disable_allowed_collisions_with_exclusions(all, exclude)


arm_navigation_msgs
Author(s): Gil Jones
autogenerated on Mon Jun 10 2019 14:26:17