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
21 Sitting, //NYI
22 Kneeling, //NYI
23 Knitting, //NYI to be implemented by Rene
28};
29
35};
36
41{
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
stance
enum values for all stances
nao state c struct
Definition: wb_nao_state.h:41
wb_nao_state()
constructor
Definition: wb_nao_state.h:63
walk left_foot_pressed_long chest_pressed right_foot_pressed int16_t pad
padding
Definition: wb_nao_state.h:59
PROPERTY(enum Robot_Stance, stance) PROPERTY(enum Robot_Walk
Currently SMRobotPosition detects if the robot has fallen over.
Robot_Stance
/file wb_nao_state.h
Definition: wb_nao_state.h:15
@ Sitting
Definition: wb_nao_state.h:21
@ NUM_OF_STANCES
Definition: wb_nao_state.h:27
@ FallenBack
Definition: wb_nao_state.h:18
@ KickingWithRightFoot
Definition: wb_nao_state.h:26
@ Kneeling
Definition: wb_nao_state.h:22
@ PickedUp
Definition: wb_nao_state.h:24
@ FallenForward
Definition: wb_nao_state.h:17
@ FallenRight
Definition: wb_nao_state.h:20
@ KickingWithLeftFoot
Definition: wb_nao_state.h:25
@ Standing
Definition: wb_nao_state.h:16
@ Knitting
Definition: wb_nao_state.h:23
@ FallenLeft
Definition: wb_nao_state.h:19
Robot_Walk
which type of walk engine is currently running
Definition: wb_nao_state.h:31
@ NUM_OF_WALKS
Definition: wb_nao_state.h:34
@ ALMotion_Walk
Definition: wb_nao_state.h:33
@ Modded_UNSW_Walk
Definition: wb_nao_state.h:32