00001
00002 import roslib
00003 roslib.load_manifest('srs_assisted_detection')
00004
00005
00006 import rospy
00007
00008 from cob_object_detection_msgs.msg import *
00009 from srs_assisted_detection.srv import *
00010 from std_msgs.msg import *
00011
00012 from geometry_msgs.msg import *
00013
00014 from array import array
00015
00016
00017 def user_msg():
00018 rospy.wait_for_service('assisted_answer')
00019 s=String()
00020 s.data='test'
00021 try:
00022 add_two_ints = rospy.ServiceProxy('assisted_answer', UiAnswer)
00023 rospy.loginfo("client")
00024 a=array('i',[2,3,4,5])
00025 resp1 = add_two_ints(a,0,s)
00026 rospy.loginfo(resp1)
00027 except rospy.ServiceException, e:
00028 print "Service call failed: %s"%e
00029
00030
00031 if __name__ == "__main__":
00032 user_msg()