ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

do Ctrl-c on terminal where your node is running (not roscore terminal).

you need to call ros::shutdown() to shutdown your node.

do Ctrl-c on terminal where your node is running (not roscore terminal).

you need to call ros::shutdown() to shutdown your node.

you use ros::master::check() in code to check.

thanks to http://answers.ros.org/question/36733/check-if-roscore-is-started-in-c/?answer=36737#post-id-36737