ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.