Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Terminate ROS program

Hi I am new in ROS. In my program, I am launching a launch file and through which my .cpp file is executing. In this .cpp, I check for a condition, if it doesn't satisfy I have to terminate the program. To terminate this I have tried ros::shutdown() but it not working enough. How should I terminate this.

Thanks a lot for your help.