How can I check in a launch file if a roscore is already running?
Hi there!
I am implementing a system that has a GUI for visualization. The core system starts with a roslaunch file and the GUI with another one. Ideally the GUI should open and close when wanted.
The problem I'm facing is the following: If I run roslaunch for GUI in console A and then roslaunch for my core application in console B and close the GUI, the roslaunch in console A does not terminate (probably because roscore and rosout are attached to it and other nodes from console B need them).
So is there any way to modify GUI roslaunch to not start a roscore, or even initialize the nodes only if roscore is already active?
Thnx in advance!