gusimplewhiteboard
wb_nao_state.h
Go to the documentation of this file.
1
9
#ifndef wb_nao_state_h
10
#define wb_nao_state_h
11
12
#include <gu_util.h>
13
15
enum
Robot_Stance
{
16
Standing
= 0,
17
FallenForward
,
18
FallenBack
,
19
FallenLeft
,
20
FallenRight
,
21
Sitting
,
//NYI
22
Kneeling
,
//NYI
23
Knitting
,
//NYI to be implemented by Rene
24
PickedUp
,
25
KickingWithLeftFoot
,
26
KickingWithRightFoot
,
27
NUM_OF_STANCES
28
};
29
31
enum
Robot_Walk
{
32
Modded_UNSW_Walk
= 0,
33
ALMotion_Walk
,
34
NUM_OF_WALKS
35
};
36
40
struct
wb_nao_state
41
{
43
PROPERTY
(
enum
Robot_Stance
,
stance
)
45
PROPERTY
(
enum
Robot_Walk
, walk)
47
PROPERTY
(
bool
, chest_pressed_long)
49
PROPERTY
(
bool
, left_foot_pressed_long)
51
PROPERTY
(
bool
, right_foot_pressed_long)
53
PROPERTY
(
bool
, chest_pressed)
55
PROPERTY
(
bool
, left_foot_pressed)
57
PROPERTY
(
bool
, right_foot_pressed)
59
int16_t
pad
;
60
61
#ifdef __cplusplus
63
wb_nao_state
(): _stance(
Standing
), _walk(
Modded_UNSW_Walk
),_chest_pressed_long(false), _left_foot_pressed_long(false), _right_foot_pressed_long(false), _chest_pressed(0), _left_foot_pressed(0), _right_foot_pressed(0) {}
64
#endif
65
};
66
67
#endif
//_wb_nao_state_h
guWhiteboard::Motions::stance
stance
enum values for all stances
Definition:
MOTION_Interface.hpp:64
wb_nao_state
nao state c struct
Definition:
wb_nao_state.h:41
wb_nao_state::wb_nao_state
wb_nao_state()
constructor
Definition:
wb_nao_state.h:63
wb_nao_state::pad
walk left_foot_pressed_long chest_pressed right_foot_pressed int16_t pad
padding
Definition:
wb_nao_state.h:59
wb_nao_state::PROPERTY
PROPERTY(enum Robot_Stance, stance) PROPERTY(enum Robot_Walk
Currently SMRobotPosition detects if the robot has fallen over.
Robot_Stance
Robot_Stance
/file wb_nao_state.h
Definition:
wb_nao_state.h:15
Sitting
@ Sitting
Definition:
wb_nao_state.h:21
NUM_OF_STANCES
@ NUM_OF_STANCES
Definition:
wb_nao_state.h:27
FallenBack
@ FallenBack
Definition:
wb_nao_state.h:18
KickingWithRightFoot
@ KickingWithRightFoot
Definition:
wb_nao_state.h:26
Kneeling
@ Kneeling
Definition:
wb_nao_state.h:22
PickedUp
@ PickedUp
Definition:
wb_nao_state.h:24
FallenForward
@ FallenForward
Definition:
wb_nao_state.h:17
FallenRight
@ FallenRight
Definition:
wb_nao_state.h:20
KickingWithLeftFoot
@ KickingWithLeftFoot
Definition:
wb_nao_state.h:25
Standing
@ Standing
Definition:
wb_nao_state.h:16
Knitting
@ Knitting
Definition:
wb_nao_state.h:23
FallenLeft
@ FallenLeft
Definition:
wb_nao_state.h:19
Robot_Walk
Robot_Walk
which type of walk engine is currently running
Definition:
wb_nao_state.h:31
NUM_OF_WALKS
@ NUM_OF_WALKS
Definition:
wb_nao_state.h:34
ALMotion_Walk
@ ALMotion_Walk
Definition:
wb_nao_state.h:33
Modded_UNSW_Walk
@ Modded_UNSW_Walk
Definition:
wb_nao_state.h:32
typeClassDefs
wb_nao_state.h
Generated by
1.9.2