Go to the documentation of this file.00001
00002
00003 import roslib; roslib.load_manifest('face_detector')
00004 import rospy
00005
00006
00007 import actionlib
00008
00009
00010
00011 import face_detector.msg
00012
00013 def face_detector_client():
00014
00015 client = actionlib.SimpleActionClient('face_detector_action', face_detector.msg.FaceDetectorAction)
00016
00017
00018
00019 client.wait_for_server()
00020
00021
00022 goal = face_detector.msg.FaceDetectorGoal()
00023
00024
00025 client.send_goal(goal)
00026
00027
00028 client.wait_for_result()
00029
00030
00031 return client.get_result()
00032
00033 if __name__ == '__main__':
00034 try:
00035
00036
00037 rospy.init_node('face_detector_action_client')
00038 result = face_detector_client()
00039 print "Done action"
00040 except rospy.ROSInterruptException:
00041 print "Program interrupted before completion"