Main Content

rosshutdown

ROS关闭系统

Syntax

Description

example

rosshutdownshuts down the global node and, if it is running, the ROS master. When you finish working with the ROS network, userosshutdownto shut down the global ROS entities created byrosinit. If the global node and ROS master are not running, this function has no effect.

Note

After callingrosshutdown, any ROS entities (objects) that depend on the global node like subscribers created withrossubscriber, are deleted and become unstable.

Prior to callingrosshutdown, callclearon these objects for a clean removal of ROS entities.

Examples

collapse all

rosinit
Launching ROS Core... Done in 0.85539 seconds. Initializing ROS master on http://172.30.239.26:52944. Initializing global node /matlab_global_node_42107 with NodeURI http://dcc815108glnxa64:35713/ and MasterURI http://localhost:52944.

When you are finished, shut down the ROS network.

rosshutdown
Shutting down global node /matlab_global_node_42107 with NodeURI http://dcc815108glnxa64:35713/ and MasterURI http://localhost:52944. Shutting down ROS master on http://172.30.239.26:52944.

Version History

Introduced in R2019b

See Also