32
33
34 log_level = LaunchConfiguration('log_level')
35 declare_log_level_arg = DeclareLaunchArgument(
36 name ='log_level', default_value='WARN')
37
38 plan_delegator_param_file = os.path.join(
39 get_package_share_directory('plan_delegator'), 'config/plan_delegator_params.yaml')
40
41
42
43 container = ComposableNodeContainer(
44 package='carma_ros2_utils',
45 name='plan_delegator_container',
46 namespace=GetCurrentNamespace(),
47 executable='carma_component_container_mt',
48 composable_node_descriptions=[
49
50
51 ComposableNode(
52 package='plan_delegator',
53 plugin='plan_delegator::PlanDelegator',
54 name='plan_delegator',
55 extra_arguments=[
56 {'use_intra_process_comms': True},
57 {'--log-level' : log_level }
58 ],
59 parameters=[ plan_delegator_param_file ]
60 ),
61 ]
62 )
63
64 return LaunchDescription([
65 declare_log_level_arg,
66 container
67 ])
def generate_launch_description()