Go to the documentation of this file.00001
00002
00003 import roslib; roslib.load_manifest('srs_decision_making_experimental')
00004 import rospy
00005
00006
00007 import actionlib
00008
00009
00010
00011 import srs_decision_making.msg as xmsg
00012
00013 def DM_client():
00014
00015
00016 client = actionlib.SimpleActionClient('srs_decision_making_actions', xmsg.ExecutionAction)
00017
00018
00019
00020 client.wait_for_server()
00021
00022
00023 _goal=xmsg.ExecutionGoal()
00024 _goal.action="move"
00025
00026 _goal.parameter="[-0.4 1.19 0]"
00027 _goal.priority=1
00028
00029 client.send_goal(_goal)
00030
00031
00032
00033 client.wait_for_result()
00034
00035
00036 return client.get_result()
00037
00038
00039
00040
00041
00042 if __name__ == '__main__':
00043 try:
00044
00045
00046 rospy.init_node('dm_client1')
00047 result = DM_client()
00048 rospy.loginfo('result %s',result)
00049
00050 except rospy.ROSInterruptException:
00051 print "program interrupted before completion"