@@ -558,7 +558,7 @@ def __init__(self,
558
558
559
559
rospy .Service (
560
560
'{}/remove_collision_object' .format (self .name .lower ()),
561
- AddCollisionObject ,
561
+ RemoveCollisionObject ,
562
562
self .remove_collision_obj_cb
563
563
)
564
564
@@ -1973,7 +1973,7 @@ def add_collision_obj_cb(self, req: AddCollisionObjectRequest) -> AddCollisionOb
1973
1973
1974
1974
return AddCollisionObjectResponse (success = True )
1975
1975
1976
- def remove_collision_obj_cb (self , req : AddCollisionObjectRequest ) -> AddCollisionObjectResponse :
1976
+ def remove_collision_obj_cb (self , req : RemoveCollisionObjectRequest ) -> RemoveCollisionObjectResponse :
1977
1977
"""
1978
1978
This will take a given key and (if it exists) and removes said key object as a collision shape
1979
1979
NOTE: currently expects the following
@@ -1982,7 +1982,7 @@ def remove_collision_obj_cb(self, req: AddCollisionObjectRequest) -> AddCollisio
1982
1982
# Handle early termination on input error for name and type
1983
1983
if req .name == None or req .name == '' :
1984
1984
rospy .logerr (f"[REMOVE COLLISION OBJ CB] -> Remove collision object service input error: name [{ req .name } ] | type [{ req .type } ]" )
1985
- return AddCollisionObjectResponse (success = False )
1985
+ return RemoveCollisionObjectResponse (success = False )
1986
1986
1987
1987
if req .name in self .collision_dict .keys ():
1988
1988
# Stage Backend to Remove Object
@@ -2000,7 +2000,7 @@ def remove_collision_obj_cb(self, req: AddCollisionObjectRequest) -> AddCollisio
2000
2000
self .interactive_marker_server .erase (name = req .name )
2001
2001
self .interactive_marker_server .applyChanges ()
2002
2002
2003
- return AddCollisionObjectResponse (success = True )
2003
+ return RemoveCollisionObjectResponse (success = True )
2004
2004
else :
2005
2005
rospy .logerr (f"[REMOVE COLLISION OBJ CB] -> Unknown name [{ req .name } ] requested; not in collision dictionary" )
2006
2006
0 commit comments