src/prediction/prediction_nodes/launch/prediction_nodes.launch.py
def generate_launch_description():
    """Generate launch description with a single component."""
    pkg_name = 'prediction_nodes'

    pkg_prefix = get_package_share_directory(pkg_name)

    prediction_nodes_param_file = os.path.join(pkg_prefix, 'param', 'test.param.yaml')

    pkg_param = DeclareLaunchArgument(
        pkg_name + '_param_file',
        default_value=prediction_nodes_param_file,
        description='Path to parameter file for prediction node'
    )

    prediction_node = Node(
        package=pkg_name,
        executable=pkg_name + '_node_exe',
        parameters=[LaunchConfiguration(pkg_name + '_param_file')],
    )

    return launch.LaunchDescription([pkg_param, prediction_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():
    pkg_name = 'prediction_nodes'
    pkg_prefix = get_package_share_directory(pkg_name)
    prediction_nodes_param_file = os.path.join(pkg_prefix, 'param', 'test.param.yaml')
    pkg_param = DeclareLaunchArgument(
        pkg_name + '_param_file',
        default_value=prediction_nodes_param_file,
        description='Path to parameter file for prediction node'
    )
    prediction_node = Node(
        package=pkg_name,
        executable=pkg_name + '_node_exe',
        parameters=[LaunchConfiguration(pkg_name + '_param_file')],
    )
    return launch.LaunchDescription([pkg_param, prediction_node])
def generate_launch_description ( ) : pkg_name = 'prediction_nodes' pkg_prefix = get_package_share_directory ( pkg_name ) prediction_nodes_param_file = os . path . join ( pkg_prefix , 'param' , 'test.param.yaml' ) pkg_param = DeclareLaunchArgument ( pkg_name + '_param_file' , default_value = prediction_nodes_param_file , description = 'Path to parameter file for prediction node' ) prediction_node = Node ( package = pkg_name , executable = pkg_name + '_node_exe' , parameters = [ LaunchConfiguration ( pkg_name + '_param_file' ) ] , ) return launch . LaunchDescription ( [ pkg_param , prediction_node ] )
Generate launch description with a single component.
Generate launch description with a single component .
"""Generate launch description with a single component."""