Robotics StackExchange | Archived questions

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?

Asked by twdragon on 2021-05-25 13:56:33 UTC

Comments

Did you find a way to solve this? I'm having the same issue

Asked by thomas v on 2023-05-02 10:51:02 UTC

Answers

It seemed to be a behaviour in roslaunch internal API. I will investigate around different implementations

Asked by twdragon on 2023-05-10 05:40:14 UTC

Comments