Correct shutdown of roslaunch.parent
I tried to create a base class that utilizes roslaunch
API to start and stop specific launch files. I created the methods execute()
which creates roslaunch.parent
object and calls start()
on it. In the second method called shutdown
the shutdown()
method is called for the created parent. This behaviour allows me to switch between launch files for different working modes of the robot.
The problem is that after calling shutdown()
on the created roslaunch.parent
object, the logging orphaned subprocess preserves in the system and starts to consume 100% on the CPU core. When I used to switch between launch files multiple times, the orphaned subprocesses multiply hanging up the system.
Do you know how to deal with this problem?
Did you find a way to solve this? I'm having the same issue