26
27
28 log_level = LaunchConfiguration('log_level')
29 declare_log_level_arg = DeclareLaunchArgument(
30 name ='log_level', default_value='DEBUG')
31
32
33 param_file_path = os.path.join(
34 get_package_share_directory('mobilitypath_visualizer'), 'config/params.yaml')
35
36
37
38 container = ComposableNodeContainer(
39 package='carma_ros2_utils',
40 name='mobilitypath_visualizer_container',
41 namespace=GetCurrentNamespace(),
42 executable='carma_component_container_mt',
43 composable_node_descriptions=[
44
45
46 ComposableNode(
47 package='mobilitypath_visualizer',
48 plugin='mobilitypath_visualizer::MobilityPathVisualizer',
49 name='mobilitypath_visualizer_node',
50 extra_arguments=[
51 {'use_intra_process_comms': True},
52 {'--log-level' : log_level }
53 ],
54 parameters=[ param_file_path ]
55 ),
56 ]
57 )
58
59 return LaunchDescription([
60 declare_log_level_arg,
61 container
62 ])
def generate_launch_description()