gusimplewhiteboard
wb_switch_subsumption.h
Go to the documentation of this file.
1
8
#ifndef wb_switch_subsumption_h
9
#define wb_switch_subsumption_h
10
11
#include <gu_util.h>
12
16
#define SUBSUMPTION_LEVELS 6
// number of subsumption levels
17
#define SUMPSUMSION_LEVELS SUBSUMPTION_LEVELS
// XXX: typo in machines
18
19
enum
TotoMotionCommand
20
{
TOTO_NO_COMMAND
,
// no command do not subsumme
21
TOTO_STOP
,
22
TOTO_BACKWARDS
,
23
TOTO_MOVE_FORWARD
,
24
TOTO_TURN_LEFT
,
25
TOTO_TURN_RIGHT
26
};
27
28
struct
wb_toto_doing_motion
29
{
30
PROPERTY(
enum
TotoMotionCommand
, motionCommand)
31
};
32
33
34
struct
wb_switch_subsumption
35
{
36
ARRAY_PROPERTY
(
enum
TotoMotionCommand
, theMotions,
SUBSUMPTION_LEVELS
)
37
38
#ifdef __cplusplus
40
wb_switch_subsumption
()
41
{ memset(
this
, 0,
sizeof
(*
this
));
42
}
43
44
#endif
45
46
};
47
#endif
//wb_switch_subsumption_h
wb_switch_subsumption
Definition:
wb_switch_subsumption.h:35
wb_switch_subsumption::ARRAY_PROPERTY
ARRAY_PROPERTY(enum TotoMotionCommand, theMotions, 6) wb_switch_subsumption()
struct constructor
Definition:
wb_switch_subsumption.h:36
wb_toto_doing_motion
Definition:
wb_switch_subsumption.h:29
TotoMotionCommand
TotoMotionCommand
Definition:
wb_switch_subsumption.h:20
TOTO_TURN_LEFT
@ TOTO_TURN_LEFT
Definition:
wb_switch_subsumption.h:24
TOTO_STOP
@ TOTO_STOP
Definition:
wb_switch_subsumption.h:21
TOTO_NO_COMMAND
@ TOTO_NO_COMMAND
Definition:
wb_switch_subsumption.h:20
TOTO_MOVE_FORWARD
@ TOTO_MOVE_FORWARD
Definition:
wb_switch_subsumption.h:23
TOTO_BACKWARDS
@ TOTO_BACKWARDS
Definition:
wb_switch_subsumption.h:22
TOTO_TURN_RIGHT
@ TOTO_TURN_RIGHT
Definition:
wb_switch_subsumption.h:25
SUBSUMPTION_LEVELS
#define SUBSUMPTION_LEVELS
/file wb_switch_subsumption.h
Definition:
wb_switch_subsumption.h:16
typeClassDefs
wb_switch_subsumption.h
Generated by
1.9.2