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.
lightbar_manager Namespace Reference

Classes

struct  Config
 Config struct. More...
 
struct  INDICATOR_NOT_MAPPED
 
struct  INVALID_LIGHTBAR_MANAGER_PRIORITY
 
class  LIGHTBAR_MANAGER_ERROR
 
class  LightBarManager
 
class  LightBarManagerStateMachine
 
class  LightBarManagerWorker
 

Enumerations

enum  LightBarIndicator {
  GREEN_SOLID , GREEN_FLASH , YELLOW_SIDES , YELLOW_DIM ,
  YELLOW_FLASH , YELLOW_ARROW_LEFT , YELLOW_ARROW_RIGHT , YELLOW_ARROW_OUT
}
 
enum  LightBarEvent { GUIDANCE_ENGAGED , GUIDANCE_DISENGAGED , GUIDANCE_DISCONNECTED , GUIDANCE_CONNECTED }
 
enum  LightBarState { DISENGAGED , ENGAGED , ACTIVE }
 
enum  IndicatorStatus { OFF , ON }
 
enum  IndicatorControlEvent { CONTROL_LOST , CONTROL_GAINED }
 
enum  LightBarCDAType { TYPE_A , TYPE_B , TYPE_C , TYPE_D }
 

Functions

def generate_launch_description ()
 

Enumeration Type Documentation

◆ IndicatorControlEvent

Enumerator
CONTROL_LOST 
CONTROL_GAINED 

Definition at line 35 of file lightbar_manager_sm.hpp.

◆ IndicatorStatus

◆ LightBarCDAType

◆ LightBarEvent

Enumerator
GUIDANCE_ENGAGED 
GUIDANCE_DISENGAGED 
GUIDANCE_DISCONNECTED 
GUIDANCE_CONNECTED 

Definition at line 32 of file lightbar_manager_sm.hpp.

◆ LightBarIndicator

Enumerator
GREEN_SOLID 
GREEN_FLASH 
YELLOW_SIDES 
YELLOW_DIM 
YELLOW_FLASH 
YELLOW_ARROW_LEFT 
YELLOW_ARROW_RIGHT 
YELLOW_ARROW_OUT 

Definition at line 31 of file lightbar_manager_sm.hpp.

◆ LightBarState

Enumerator
DISENGAGED 
ENGAGED 
ACTIVE 

Definition at line 33 of file lightbar_manager_sm.hpp.

Function Documentation

◆ generate_launch_description()

def lightbar_manager.generate_launch_description ( )

Definition at line 31 of file lightbar_manager.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 lightbar_manager_param_file = os.path.join(
39 get_package_share_directory('lightbar_manager'), 'config/params.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='lightbar_manager_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='lightbar_manager',
52 plugin='lightbar_manager::LightBarManager',
53 name='lightbar_manager',
54 extra_arguments=[
55 {'use_intra_process_comms': True},
56 {'--log-level' : log_level }
57 ],
58 parameters=[ lightbar_manager_param_file ]
59 ),
60 ]
61 )
62
63 return LaunchDescription([
64 declare_log_level_arg,
65 container
66 ])