Update rtsp.launch.py
This commit is contained in:
parent
48b8fcf1c0
commit
c178eb97dd
|
|
@ -1,10 +1,11 @@
|
||||||
from launch import LaunchDescription
|
from launch import LaunchDescription
|
||||||
from launch.actions import ExecuteProcess
|
from launch.actions import ExecuteProcess
|
||||||
|
from ament_index_python.packages import get_package_share_directory
|
||||||
import os
|
import os
|
||||||
|
|
||||||
def generate_launch_description():
|
def generate_launch_description():
|
||||||
home_dir = os.path.expanduser("~")
|
pkg_share = get_package_share_directory('image2rtsp')
|
||||||
script_path = os.path.join(home_dir, 'ros2_ws/src/image2rtsp/python/rtsp.py')
|
script_path = os.path.join(pkg_share, '../../../../src/image2rtsp/python/rtsp.py')
|
||||||
|
|
||||||
return LaunchDescription(
|
return LaunchDescription(
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue