Relaunch the main launchfile once a specific node is finalized (ROS2)
Hello, is there a way to relaunch a whole launchfile (launch.py) once a specific node is finalized?
I have a robot simulator (webots) in which a robot navigates with ROS2 Navigation2. After the robot has done some driving in an environment, everything should be relaunched with a new environment. Approaches about lifecycles are known to me, but then I would have to add every single node of my system, right?
Or would it be a reasonable approach to call the launchfile from an external (non ROS) script?
Thank you!
Jan