00001
00002 import roslib
00003 roslib.load_manifest('srs_assisted_detection')
00004
00005 from array import *
00006
00007
00008
00009 import rospy
00010
00011 from cob_object_detection_msgs.msg import *
00012 from srs_assisted_detection.srv import *
00013 from std_msgs.msg import *
00014
00015 from geometry_msgs.msg import *
00016
00017
00018
00019 def user_msg():
00020 rospy.wait_for_service('assisted_BBmove')
00021
00022 try:
00023 add_two_ints = rospy.ServiceProxy('assisted_BBmove', BBMove)
00024 rospy.loginfo("client")
00025 pose=Pose()
00026 pose.position.x=0
00027 pose.position.y=0
00028 pose.position.z=0
00029
00030 resp1 = add_two_ints(2,4,4,pose)
00031 rospy.loginfo(resp1)
00032 except rospy.ServiceException, e:
00033 print "Service call failed: %s"%e
00034
00035
00036 if __name__ == "__main__":
00037 user_msg()