Close all ros node using c++
Hi, I am trying to shutdown all the nodes using C++, I tried ros::shutdown();
, but it looks like it only kills the node of the c++ file in which it has been call. I also tried passing the control c or rosnode kill -a commands inside the c++ file but it does not looks optimal solution to me looks like