查看导航状态
rostopic echo move_base/status
发导航命令到某点
1 | rostopic pub /move_base_simple/goal geometry_msgs/PoseStamped "header: |
停止导航
一句话:rostopic pub /move_base/cancel actionlib_msgs/GoalID -- {}
,即向话题/move_base/cancel
发空消息1
2
3
4ros::Publisher cancle_pub_ = nh_.advertise("move_base/cancel",1);
actionlib_msgs::GoalID first_goal;
cancle_pub_.publish(first_goal);