from launch import LaunchDescription from launch_ros.actions import Node from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration,PathJoinSubstitution from ament_index_python.packages import get_package_share_directory
defgenerate_launch_description(): # 声明启动参数 config_file_arg = DeclareLaunchArgument(# 动态加载yaml文件,启动时选择合适的yaml文件 name = 'config_file', default_value = 'default_params.yaml',# 默认值 description = 'Path to the YAML configuration file' )
from launch import LaunchDescription from launch.actions import IncludeLaunchDescription from launch.launch_description_sources import PythonLaunchDescriptionSource from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription from launch_ros.actions import Node from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration from launch.conditions import IfCondition
defgenerate_launch_description(): # 声明启动参数 start_node_arg = DeclareLaunchArgument( name='start_node', default_value='true', description='Whether to start the node' )
from launch import LaunchDescription from launch_ros.actions import Node from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration, PythonExpression from launch.conditions import IfCondition
from launch import LaunchDescription from launch_ros.actions import Node from launch.actions import GroupAction, DeclareLaunchArgument from launch.conditions import IfCondition from launch.substitutions import LaunchConfiguration
defgenerate_launch_description(): # 声明启动参数 start_group_arg = DeclareLaunchArgument( name='start_group', default_value='true', description='Whether to start the group' )