From dd61cd42ff436ec35b2e0669c5731518e3188ceb Mon Sep 17 00:00:00 2001 From: dmalad Date: Wed, 29 Nov 2023 12:06:26 +0100 Subject: [PATCH] added launch file for the python script --- launch/rtsp.launch.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 launch/rtsp.launch.py diff --git a/launch/rtsp.launch.py b/launch/rtsp.launch.py new file mode 100644 index 0000000..49a76f4 --- /dev/null +++ b/launch/rtsp.launch.py @@ -0,0 +1,15 @@ +from launch import LaunchDescription +from launch.actions import ExecuteProcess +import os + +def generate_launch_description(): + home_dir = os.path.expanduser("~") + script_path = os.path.join(home_dir, 'ros2_ws/src/image2rtsp/python/rtsp.py') + + return LaunchDescription( + [ + ExecuteProcess( + cmd=['python3', script_path], + ), + ] + )