Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
stop_and_wait_plugin_launch Namespace Reference

Functions

def generate_launch_description ()
 

Function Documentation

◆ generate_launch_description()

def stop_and_wait_plugin_launch.generate_launch_description ( )

Definition at line 31 of file stop_and_wait_plugin_launch.py.

32
33 # Declare the log_level launch argument
34 log_level = LaunchConfiguration('log_level')
35 declare_log_level_arg = DeclareLaunchArgument(
36 name ='log_level', default_value='WARN')
37
38 # Launch node(s) in a carma container to allow logging to be configured
39 container = ComposableNodeContainer(
40 package='carma_ros2_utils',
41 name='stop_and_wait_plugin_container',
42 namespace=GetCurrentNamespace(),
43 executable='carma_component_container_mt',
44 composable_node_descriptions=[
45
46 # Launch the core node(s)
47 ComposableNode(
48 package='stop_and_wait_plugin',
49 plugin='stop_and_wait_plugin::StopandWaitNode',
50 name='stop_and_wait_plugin_node',
51 extra_arguments=[
52 {'use_intra_process_comms': True},
53 {'--log-level' : log_level }
54 ],
55 ),
56 ]
57 )
58
59 return LaunchDescription([
60 declare_log_level_arg,
61 container
62 ])