ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I did find something that works! You have to configure your node launch XML to indicate that the nodelet which will call exit(x) is required. Then when it detects a failure, it will kill the entire launch file.
<node pkg....="" required="true"> ... </node>
then inside nodelet you can call "exit(err);" with some error in err. Well I did the following incase there's some other path:
ros::shutdown(); raise(SIGINT); raise(SIGABRT); exit(-1);
I really want it to exit.
2 | No.2 Revision |
I did find something that works! You have to configure your node launch XML to indicate that the nodelet which will call exit(x) is required. Then when it detects a failure, it will kill the entire launch file.
<node then inside nodelet you can call "exit(err);" with some error in err. Well I did the following incase there's some other path:
ros::shutdown();
raise(SIGINT);
raise(SIGABRT);
I really want it to exit. exit.