Go to the documentation of this file.00001
00002
00003 import roslib; roslib.load_manifest('srs_decision_making')
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="stop"
00025 _goal.parameter=""
00026 _goal.priority=1
00027
00028 client.send_goal(_goal)
00029
00030
00031 client.wait_for_result()
00032
00033
00034 return client.get_result()
00035
00036 if __name__ == '__main__':
00037 try:
00038
00039
00040 rospy.init_node('dm_client3')
00041 result = DM_client()
00042 rospy.loginfo('result %s',result)
00043
00044 except rospy.ROSInterruptException:
00045 print "program interrupted before completion"