From cd561814ca269433b3d18408d2a5b2076e5cc872 Mon Sep 17 00:00:00 2001 From: Laura Lindzey Date: Wed, 11 Dec 2013 17:24:32 -0800 Subject: [PATCH] removing unused function --- clear_table/src/clear_table/scene_handler.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/clear_table/src/clear_table/scene_handler.py b/clear_table/src/clear_table/scene_handler.py index e209f89..ea0f122 100644 --- a/clear_table/src/clear_table/scene_handler.py +++ b/clear_table/src/clear_table/scene_handler.py @@ -146,25 +146,6 @@ def detach_object(self, name): detach_object.link_name = "l_wrist_roll_link" detach_object.object.operation = detach_object.object.REMOVE self.attach_pub.publish(detach_object) - - def wait_for_object(self, obj_name): - """ On Tobias's suggestion, this function waits until the named - object appears in the collision world from moveit""" - rospy.wait_for_service('get_planning_scene') - print "waiting for object %r to be added" % obj_name - has_object = False - rr = rospy.Rate(5.0) # 5 Hz - while (not rospy.is_shutdown()) and (not has_object): - req = GetPlanningSceneRequest() - req.components.components = req.components.WORLD_OBJECT_NAMES - # TODO: should be in try/except block - resp = self.scene_client(req) - for obj in resp.scene.world.collision_objects: - if obj.id == obj_name: - print "Have object %r" % (obj_name) - has_object = True - break - rr.sleep() def clear_scene(self): ps = PlanningSceneWorld()