ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Are you sure you want to stop once subscribed? You do NOT have a message then.
This whole thing also goes against usual ROS usage patterns. For one time things a service call might be better suited. It might be a good idea to state what you want to actually achieve with this.
If you want to stop a node there are some possibilities.
rosnode kill <node>
kills the node with name <node>
.