src/perception/filters/polygon_remover_nodes/launch/polygon_remover_nodes.launch.py
def generate_launch_description():
    """Generate launch description with a single component."""
    path_package = get_package_share_directory('polygon_remover_nodes')

    path_file_param = os.path.join(path_package, 'param/test_params.yaml')

    name_launch_arg = 'param_file_polygon_remover_nodes'

    launch_arg = DeclareLaunchArgument(
        name_launch_arg,
        default_value=path_file_param,
        description='Path to params file for Polygon Remover Nodes'
    )

    polygon_remover_node = Node(
        package='polygon_remover_nodes',
        executable='polygon_remover_node_exe',
        namespace='',
        output='screen',
        parameters=[
            LaunchConfiguration(name_launch_arg)
        ]
    )

    return launch.LaunchDescription([launch_arg,
                                     polygon_remover_node])
Generate launch description with a single component.
Generate launch description with a single component.
Generate launch description with a single component .
def generate_launch_description():
    path_package = get_package_share_directory('polygon_remover_nodes')
    path_file_param = os.path.join(path_package, 'param/test_params.yaml')
    name_launch_arg = 'param_file_polygon_remover_nodes'
    launch_arg = DeclareLaunchArgument(
        name_launch_arg,
        default_value=path_file_param,
        description='Path to params file for Polygon Remover Nodes'
    )
    polygon_remover_node = Node(
        package='polygon_remover_nodes',
        executable='polygon_remover_node_exe',
        namespace='',
        output='screen',
        parameters=[
            LaunchConfiguration(name_launch_arg)
        ]
    )
    return launch.LaunchDescription([launch_arg,
                                     polygon_remover_node])
def generate_launch_description ( ) : path_package = get_package_share_directory ( 'polygon_remover_nodes' ) path_file_param = os . path . join ( path_package , 'param/test_params.yaml' ) name_launch_arg = 'param_file_polygon_remover_nodes' launch_arg = DeclareLaunchArgument ( name_launch_arg , default_value = path_file_param , description = 'Path to params file for Polygon Remover Nodes' ) polygon_remover_node = Node ( package = 'polygon_remover_nodes' , executable = 'polygon_remover_node_exe' , namespace = '' , output = 'screen' , parameters = [ LaunchConfiguration ( name_launch_arg ) ] ) return launch . LaunchDescription ( [ launch_arg , polygon_remover_node ] )
Generate launch description with a single component.
Generate launch description with a single component .
"""Generate launch description with a single component."""