Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

A ROS-Node is a normal program that uses the ROS-Stuff. So you can (and have to) do whatever you want in your node, but there is nothing special in ROS that shuts down your computer.

A ROS-Node is a normal program that uses the ROS-Stuff. So you can (and have to) do whatever you want in your node, but there is nothing special in ROS that shuts down your computer.

You could create a service (the ubuntu-version, not a ROS-Service) that will be launched with root-rights (you'll need them to shutdown the system), that e.g. checks a ros-param. If you set this param, the service could shutdown the machine. Otherwise, you'd have to start you node with root-rights.