[ROS2] use lifecycle node state transition to stop other running ros node
I have seen this post (https://answers.ros.org/question/3043... ) to use a lifecycle node to start another ros node when lifecycle node reach inactive state. I am just curious on whether this is a similar way to specify in the launch file to stop a running ros node when lifecycle ndoe reach a specific state.