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_dwell_strategic_plugin Namespace Reference

Namespaces

namespace  anonymous_namespace{stop_and_dwell_strategic_plugin.cpp}
 

Classes

class  StopAndDwellStrategicPlugin
 
struct  StopAndDwellStrategicPluginConfig
 Struct to store the configuration settings for the WzStrategicPlugin class. More...
 
struct  VehicleState
 Struct representing a vehicle state for the purposes of planning. More...
 

Functions

def generate_launch_description ()
 

Function Documentation

◆ generate_launch_description()

def stop_and_dwell_strategic_plugin.generate_launch_description ( )

Definition at line 31 of file stop_and_dwell_strategic_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 stop_and_dwell_strategic_plugin_file_path = os.path.join(
39 get_package_share_directory('stop_and_dwell_strategic_plugin'), 'config/parameters.yaml')
40
41 # Launch node(s) in a carma container to allow logging to be configured
42 container = ComposableNodeContainer(
43 package='carma_ros2_utils',
44 name='stop_and_dwell_strategic_plugin_container',
45 namespace=GetCurrentNamespace(),
46 executable='carma_component_container_mt',
47 composable_node_descriptions=[
48
49 # Launch the core node(s)
50 ComposableNode(
51 package='stop_and_dwell_strategic_plugin',
52 plugin='stop_and_dwell_strategic_plugin::StopAndDwellStrategicPlugin',
53 name='stop_and_dwell_strategic_plugin_node',
54 extra_arguments=[
55 {'use_intra_process_comms': True},
56 {'--log-level' : log_level }
57 ],
58 parameters=[
59 stop_and_dwell_strategic_plugin_file_path
60 ]
61 ),
62 ]
63 )
64
65 return LaunchDescription([
66 declare_log_level_arg,
67 container
68 ])