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

Revision history [back]

click to hide/show revision 1
initial version

You can cancel a navigation goal by publishing on the /move_base/cancel topic:

rostopic pub /move_base/cancel actionlib_msgs/GoalID -- {}

This will cancel all the navigation goals that are given and you dont need to kill and restart move_base. You can write a node that monitors the speed/odometry or acceleration and cancel the goal within it based on your custom logic.