test_putdown_pose_service.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 
00003 import roslib; roslib.load_manifest('tidyup_arm_services')
00004 import rospy
00005 import sys, traceback
00006 from tidyup_msgs import msg
00007 from tidyup_msgs import srv
00008 from tidyup_arm_services.simple_arm_tasks import SimpleArmTasks
00009 from tidyup_arm_services.planning_scene_sync import PlanningSceneSync
00010 
00011 if __name__ == '__main__':
00012   try:
00013     rospy.init_node('test_putdown_service')#, anonymous=True)
00014     pss = PlanningSceneSync()
00015 #    if len(sys.argv) != 4:
00016 #      print 'usage: test_putdown_pose_service <object> <arm> <support_surface>'
00017 #    arm_tasks = SimpleArmTasks()
00018 #    
00019 #    # TEST
00020 #    rospy.loginfo('starting test.')
00021 #    request = srv.GetPutdownPoseRequest()
00022 #    request.putdown_object = sys.argv[1]
00023 #    request.arm = sys.argv[2]
00024 #    request.static_object = sys.argv[3]
00025 #    
00026 #    serviceProxy = rospy.ServiceProxy('/tidyup/request_putdown_pose', srv.GetPutdownPose)
00027 #    serviceProxy.wait_for_service()
00028 #    rospy.loginfo('found service putdown service: {0}.'.format(serviceProxy.resolved_name))
00029 #    
00030 #    response = serviceProxy.call(request)
00031 #    rospy.loginfo('response: {0}'.format(response))
00032     rospy.loginfo('done.')
00033     rospy.spin()
00034     
00035   except:
00036     traceback.print_exc(file=sys.stdout)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


tidyup_arm_services
Author(s): Andreas Hertle, Christian Dornhege
autogenerated on Wed Dec 26 2012 15:48:37