How to terminate the excecution of a launch file if a node is not active? [closed]

asked 2021-12-15 03:32:04 -0600

Ifx13 gravatar image

Hello everyone,

here follows a short description of my issue. I have created a launch that opens up multiple nodes. The first node that opens is responsible for publishing the data stored on my computer and is made by me. Then, the next nodes are from an already made package. My python script is terminated in case a file does not exist but the launch file continues with the execution of the following nodes. How can I prevent that?

All ideas are welcome, thanks in advance!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Ifx13
close date 2021-12-21 03:22:42.597097

Comments

1

Please refer to #q10089, and close your own question if you agree yours is a duplicate.

gvdhoorn gravatar image gvdhoorn  ( 2021-12-15 04:52:54 -0600 )edit

@gvdhoorn thanks, this is exactly what I wanted to do. I am sorry for creating a duplicate.

Ifx13 gravatar image Ifx13  ( 2021-12-21 03:22:35 -0600 )edit

No need to apologise.

gvdhoorn gravatar image gvdhoorn  ( 2021-12-21 03:29:19 -0600 )edit