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