The stop_base ROS package provides a controller node for pausing and resuming robot motion by interrupting the /cmd_vel topic used by move base and other navigation components.
This node provides a simple service interface for interrupting the motion commands being passed to the robot base.
There can be multiple requesters, so the current status returned in the response message may not match the original request, but that request will remain active until it can be honored.
If more than one requester sets a PAUSED status, the robot base will remain motionless until they all request RUNNING again. If any requester sets STOPPED, no further requests will be met, the status remaining permantently STOPPED.
Requester names should be sufficiently unique to avoid multiple requesters picking the same string. A reasonable choice is the ROS node name.
$ rosrun stop_base stop_base_controller