24 lines
555 B
Python
24 lines
555 B
Python
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('uss'),
|
|
'config',
|
|
'uss_params.yaml'
|
|
)
|
|
|
|
return LaunchDescription([
|
|
Node(
|
|
package='uss',
|
|
executable='uss_node',
|
|
name='uss_node',
|
|
output='screen',
|
|
parameters=[config]
|
|
)
|
|
])
|