3 from move_base_msgs.msg
import MoveBaseActionGoal
8 if __name__ ==
'__main__':
9 rospy.init_node(
'pub_goal_set')
10 pub = rospy.Publisher(
"/move_base/goal", MoveBaseActionGoal, queue_size = 1)
11 goals=MoveBaseActionGoal()
12 goals.header.frame_id=
'map' 14 goals.goal.target_pose.header.frame_id=
'map' 15 goals.goal.target_pose.pose.position.x=0.552559435368
16 goals.goal.target_pose.pose.position.y=-1.06640863419
17 goals.goal.target_pose.pose.position.z=0.0
18 goals.goal.target_pose.pose.orientation.x=0.0
19 goals.goal.target_pose.pose.orientation.y=0.0
20 goals.goal.target_pose.pose.orientation.z=-0.682496084898
21 goals.goal.target_pose.pose.orientation.w=0.730889248859
23 while not rospy.is_shutdown():