ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Correct shutdown of roslaunch.parent

asked 2021-05-25 13:56:33 -0600

twdragon gravatar image

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?

edit retag flag offensive close merge delete

Comments

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

thomas v gravatar image thomas v  ( 2023-05-02 10:51:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-10 05:40:14 -0600

twdragon gravatar image

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

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-05-25 13:56:33 -0600

Seen: 253 times

Last updated: May 10 '23