Update rtsp.launch.py

This commit is contained in:
Dzmitry Maladzenkau 2023-12-05 14:46:07 +01:00 committed by GitHub
parent 48b8fcf1c0
commit c178eb97dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
from launch import LaunchDescription
from launch.actions import ExecuteProcess
from ament_index_python.packages import get_package_share_directory
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')
pkg_share = get_package_share_directory('image2rtsp')
script_path = os.path.join(pkg_share, '../../../../src/image2rtsp/python/rtsp.py')
return LaunchDescription(
[