gusimplewhiteboard
wb_switch_subsumption_traffic_lights.h
Go to the documentation of this file.
1
8
#ifndef wb_switch_subsumption_traffic_lights_h
9
#define wb_switch_subsumption_traffic_lights_h
10
11
#include <gu_util.h>
12
16
#define TL_SUBSUMPTION_LEVELS 9
// number of subsumption levels
17
// this is the number of layers in the subsumbtion array
18
19
enum
TrafficLightConfigurationValues
20
{
LIGHT_NO_COMMAND
,
// no command do not subsumme
21
LIGHT_NS_GREEN
,
// switch the ligh NS light to GREEN other NS OFF; EW others same
22
LIGHT_EW_GREEN
,
// switch the ligh EW light to GREEN other EW OFF; all NS others same
23
LIGHT_NS_AMBER
,
// switch the ligh NS light to AMBER other NS OFF; all EW others same
24
LIGHT_EW_AMBER
,
// switch the ligh EW light to AMBER other EW OFF; all NS others same
25
LIGHT_NS_RED
,
// switch the ligh NS light to RED other NS OFF; all EW others same
26
LIGHT_EW_RED
,
// switch the ligh EW light to RED other EW OFF; all NS others same
27
LIGHT_ALL_OFF
,
// switch all lights off
28
LIGHT_NS_OFF
,
// switch all the lights of NS OFF; all EW others same
29
LIGHT_EW_OFF
,
// switch the lights of EW OFF; all NS others same
30
LIGHT_BOTH_AMBER
// switch NS and EW to AMBER, leave the others same
31
};
32
33
struct
wb_traffic_light_configuration
34
{
35
PROPERTY(
enum
TrafficLightConfigurationValues
, lightConfiguration)
36
};
37
38
39
struct
wb_switch_subsumption_traffic_lights
40
{
41
ARRAY_PROPERTY
(
enum
TrafficLightConfigurationValues
, theConfigurations,
TL_SUBSUMPTION_LEVELS
)
42
43
#ifdef __cplusplus
45
wb_switch_subsumption_traffic_lights
()
46
{ memset(
this
, 0,
sizeof
(*
this
));
47
}
48
49
#endif
50
51
};
52
#endif
//wb_switch_subsumption_traffic_lights_h
wb_switch_subsumption_traffic_lights
Definition:
wb_switch_subsumption_traffic_lights.h:40
wb_switch_subsumption_traffic_lights::ARRAY_PROPERTY
ARRAY_PROPERTY(enum TrafficLightConfigurationValues, theConfigurations, 9) wb_switch_subsumption_traffic_lights()
struct constructor
Definition:
wb_switch_subsumption_traffic_lights.h:41
wb_traffic_light_configuration
Definition:
wb_switch_subsumption_traffic_lights.h:34
TL_SUBSUMPTION_LEVELS
#define TL_SUBSUMPTION_LEVELS
/file wb_switch_subsumption_traffic_lights.h
Definition:
wb_switch_subsumption_traffic_lights.h:16
TrafficLightConfigurationValues
TrafficLightConfigurationValues
Definition:
wb_switch_subsumption_traffic_lights.h:20
LIGHT_BOTH_AMBER
@ LIGHT_BOTH_AMBER
Definition:
wb_switch_subsumption_traffic_lights.h:30
LIGHT_EW_GREEN
@ LIGHT_EW_GREEN
Definition:
wb_switch_subsumption_traffic_lights.h:22
LIGHT_EW_OFF
@ LIGHT_EW_OFF
Definition:
wb_switch_subsumption_traffic_lights.h:29
LIGHT_ALL_OFF
@ LIGHT_ALL_OFF
Definition:
wb_switch_subsumption_traffic_lights.h:27
LIGHT_NS_GREEN
@ LIGHT_NS_GREEN
Definition:
wb_switch_subsumption_traffic_lights.h:21
LIGHT_NS_OFF
@ LIGHT_NS_OFF
Definition:
wb_switch_subsumption_traffic_lights.h:28
LIGHT_NO_COMMAND
@ LIGHT_NO_COMMAND
Definition:
wb_switch_subsumption_traffic_lights.h:20
LIGHT_EW_AMBER
@ LIGHT_EW_AMBER
Definition:
wb_switch_subsumption_traffic_lights.h:24
LIGHT_NS_AMBER
@ LIGHT_NS_AMBER
Definition:
wb_switch_subsumption_traffic_lights.h:23
LIGHT_NS_RED
@ LIGHT_NS_RED
Definition:
wb_switch_subsumption_traffic_lights.h:25
LIGHT_EW_RED
@ LIGHT_EW_RED
Definition:
wb_switch_subsumption_traffic_lights.h:26
typeClassDefs
wb_switch_subsumption_traffic_lights.h
Generated by
1.9.2