ros2 / launch

Tools for launching multiple processes and for writing tests involving multiple processes.
Apache License 2.0
124 stars 139 forks source link

Cant kill composition from python script #685

Open Fricodelco opened 1 year ago

Fricodelco commented 1 year ago

I tried to launch navigation throw asyncio subprocess_shell, because i want to control the process of launch throw python script. And find out, that i cannot kill that process via os.kill, i also tried to kill child processes and its give me nothing. But when i launch ordinary nodes without lifecycle or compose everything works fine for me. So is it a bug or a feature? :) And also maybe some ideas how could i solve this problem?

Required Info:

Steps to reproduce issue

Launch any launch file contain composable nodes or lifecycle via asyncio.create_subprocess_shell and try to kill it by the PID of the process and also by the PID of composition.



#### Expected behavior
Composition dies
#### Actual behavior
Killing process stuck in transition