Can nodes be made to automatically restart on segmentation faults? [closed]
Is there a convenient way to tell roslaunch to automatically restart nodes if/when they segfault or otherwise die.
I realize that in an ideal world, I'd just fix the errors properly. However, parts of the code aren't mine and I'll be using them in a live demo. So I'd prefer to have them run in a 'best effort' mode. :)
One obvious option would be to launch the buggy nodes using a bash script:
while : ; do rosrun package node; done
but I was wondering if there was a more idiomatic ROS style?
Thanks.