Update rtsp.launch.py
This commit is contained in:
parent
48b8fcf1c0
commit
c178eb97dd
|
|
@ -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(
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in New Issue