ros2 component stable version
This commit is contained in:
1 parent
083693732c
commit
59baa89f5d
12 files changed
+170
-145
No files matched your search
@@ -1,20 +0,0 @@
|
||||
import os
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
from launch import LaunchDescription
|
||||
from launch_ros.actions import Node
|
||||
|
||||
def generate_launch_description():
|
||||
config = os.path.join(
|
||||
get_package_share_directory('image2rtsp'),
|
||||
'config',
|
||||
'parameters.yaml'
|
||||
)
|
||||
|
||||
return LaunchDescription([
|
||||
Node(
|
||||
package='image2rtsp',
|
||||
executable='image2rtsp',
|
||||
name='image2rtsp',
|
||||
parameters=[config]
|
||||
)
|
||||
])
|
||||
@@ -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(
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user