ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

self.move_base.send_goal(self.goal)

ref: https://github.com/pirobot/ros-by-example/blob/master/rbx_vol_1/rbx1_nav/nodes/nav_test.py

self.move_base.send_goal(self.goal)python code:

self.move_base.send_goal(self.goal)

ref: https://github.com/pirobot/ros-by-example/blob/master/rbx_vol_1/rbx1_nav/nodes/nav_test.py

python code:

import rospy
import actionlib
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
...
self.move_base = actionlib.SimpleActionClient("move_base", MoveBaseAction)
...
# Set up the goal location
self.goal = MoveBaseGoal()
self.goal.target_pose.pose = Pose(Point(0.643, 4.720, 0.000), Quaternion(0.000, 0.000, 0.223, 0.975))
self.goal.target_pose.header.frame_id = 'map'
self.goal.target_pose.header.stamp = rospy.Time.now()
...
self.move_base.send_goal(self.goal)

ref: https://github.com/pirobot/ros-by-example/blob/master/rbx_vol_1/rbx1_nav/nodes/nav_test.py