#include <RobotState.h>
Collaboration diagram for RobotState:
Public Types | |
enum | States { undefined, standing, crashed, rollLeft, rollRight, pickedUp } |
enum | MouthStates { mouthOpen, mouthClosed } |
Public Member Functions | |
RobotState () | |
~RobotState () | |
void | setFrameNumber (unsigned long frameNumber) |
void | setState (const States s) |
States | getState () const |
void | setMouthState (const MouthStates t) |
MouthStates | getMouthState () const |
void | setSomethingInFrontOfChest (bool value) |
bool | getSomethingInFrontOfChest () const |
void | setDistanceToSIFOC (double value) |
double | getDistanceToSIFOC () const |
void | setTimeWhenSomethingWasInFrontOfChestLast (unsigned long int time) |
unsigned long int | getTimeWhenSomethingWasInFrontOfChestLast () const |
void | setButtonPressed (bool *buttonPressed) |
bool | getButtonPressed (BodyPercept::Switches button) const |
void | setButtonTime (long *buttonTime) |
long | getButtonTime (BodyPercept::Switches button) const |
void | setButtonPressedTime (long *buttonPressedTime) |
long | getButtonPressedTime (BodyPercept::Switches button) const |
void | setButtonDuration (long *buttonDuration) |
long | getButtonDuration (BodyPercept::Switches button) const |
void | setAnyBackButtonPressed (bool anyBackButtonPressed) |
bool | getAnyBackButtonPressed () const |
void | setAnyBackButtonTime (long anyBackButtonTime) |
long | getAnyBackButtonTime () const |
void | setAnyBackButtonPressedTime (long anyBackButtonPressedTime) |
long | getAnyBackButtonPressedTime () const |
void | setAnyBackButtonDuration (long anyBackButtonDuration) |
long | getAnyBackButtonDuration () const |
void | operator= (const RobotState &other) |
copies another RobotState to this one | |
void | setCollisionFrontLeft (bool c) |
bool | getCollisionFrontLeft () const |
void | setCollisionFrontRight (bool c) |
bool | getCollisionFrontRight () const |
void | setCollisionHindLeft (bool c) |
bool | getCollisionHindLeft () const |
void | setCollisionHindRight (bool c) |
bool | getCollisionHindRight () const |
void | setCollisionHead (bool c) |
bool | getCollisionHead () const |
void | setCollisionAggregate (bool c) |
bool | getCollisionAggregate () const |
void | setConsecutiveCollisionTimeFrontLeft (long c) |
long | getConsecutiveCollisionTimeFrontLeft () const |
void | setConsecutiveCollisionTimeFrontRight (long c) |
long | getConsecutiveCollisionTimeFrontRight () const |
void | setConsecutiveCollisionTimeHindLeft (long c) |
long | getConsecutiveCollisionTimeHindLeft () const |
void | setConsecutiveCollisionTimeHindRight (long c) |
long | getConsecutiveCollisionTimeHindRight () const |
void | setConsecutiveCollisionTimeHead (long c) |
long | getConsecutiveCollisionTimeHead () const |
void | setConsecutiveCollisionTimeAggregate (long c) |
long | getConsecutiveCollisionTimeAggregate () const |
void | setCollisionSide (int s) |
long | getCollisionSide () const |
Static Public Member Functions | |
const char * | getStateName (States s) |
Public Attributes | |
Vector3< double > | acceleration |
unsigned long | frameNumber |
Private Attributes | |
States | state |
current state of robot position if crashed or standing | |
MouthStates | mouthState |
current state of the mouth | |
bool | collisionFrontLeft |
collision indicator of front left leg | |
bool | collisionFrontRight |
collision indicator of front right leg | |
bool | collisionHindLeft |
collision indicator of hind left leg | |
bool | collisionHindRight |
collision indicator of hind right leg | |
bool | collisionHead |
collision indicator of head | |
bool | collisionAggregate |
collision indicator of collision occurrence | |
long | consecutiveCollisionTimeFrontLeft |
Time for last consecutive collision on front left leg. | |
long | consecutiveCollisionTimeFrontRight |
Time for last consecutive collision on front right leg. | |
long | consecutiveCollisionTimeHindLeft |
Time for last consecutive collision on hind left leg. | |
long | consecutiveCollisionTimeHindRight |
Time for last consecutive collision on hind right leg. | |
long | consecutiveCollisionTimeHead |
Time for last consecutive collision on head. | |
long | consecutiveCollisionTimeAggregate |
Time for last consecutive collision aggregate. | |
long | collisionSide |
collision occured on side | |
bool | buttonPressed [BodyPercept::numOfSwitches] |
unsigned long | buttonTime [BodyPercept::numOfSwitches] |
unsigned long | buttonPressedTime [BodyPercept::numOfSwitches] |
unsigned long | buttonDuration [BodyPercept::numOfSwitches] |
bool | anyBackButtonPressed |
unsigned long | anyBackButtonTime |
unsigned long | anyBackButtonPressedTime |
unsigned long | anyBackButtonDuration |
bool | somethingInFrontOfChest |
Indicates whether something has been measured by the body PSD or not. | |
double | distanceToSIFOC |
The distance of objects in front of the body PSD. | |
unsigned long int | timeWhenSomethingWasInFrontOfChestLast |
The last time when something has been measured by the body PSD. |
Definition at line 18 of file RobotState.h.
|
Definition at line 21 of file RobotState.h. Referenced by getState(). |
|
Definition at line 22 of file RobotState.h. Referenced by getMouthState(). |
|
|
Definition at line 35 of file RobotState.cpp. |
|
Definition at line 30 of file RobotState.h. Referenced by GT2004RobotStateDetector::execute(). |
|
Definition at line 32 of file RobotState.h. Referenced by GT2004RobotStateDetector::execute(). |
|
Definition at line 33 of file RobotState.h. References States. Referenced by GT2004BehaviorControl::postExecute(). |
|
Definition at line 35 of file RobotState.h. References mouthState. Referenced by GT2004RobotStateDetector::execute(). |
|
Definition at line 36 of file RobotState.h. References mouthState, and MouthStates. Referenced by RobotStateSymbols::getMouthState(). |
|
Definition at line 38 of file RobotState.h. References somethingInFrontOfChest. Referenced by GT2004RobotStateDetector::execute(). |
|
Definition at line 39 of file RobotState.h. References somethingInFrontOfChest. Referenced by GT2004HeadControlSymbols::getBodyPSDDetectBall(), and RobotStateSymbols::getSomethingInFrontOfChest(). |
|
Definition at line 41 of file RobotState.h. References distanceToSIFOC. Referenced by GT2004RobotStateDetector::execute(). |
|
Definition at line 42 of file RobotState.h. References distanceToSIFOC. Referenced by RobotStateSymbols::getDistanceToSIFOC(). |
|
Definition at line 44 of file RobotState.h. References timeWhenSomethingWasInFrontOfChestLast. Referenced by GT2004RobotStateDetector::execute(). |
|
Definition at line 45 of file RobotState.h. References timeWhenSomethingWasInFrontOfChestLast. Referenced by RobotStateSymbols::getTimeSinceSomethingWasInFrontOfChest(). |
|
Definition at line 47 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
|
Definition at line 59 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
|
Definition at line 71 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
|
Definition at line 83 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
|
Definition at line 95 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
Definition at line 99 of file RobotState.h. References anyBackButtonPressed. Referenced by RobotStateSymbols::getAnyBackButtonPressedForOneSecond(), and RobotStateSymbols::getAnyBackButtonPressedShortAndReleased(). |
|
Definition at line 104 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
Definition at line 108 of file RobotState.h. References anyBackButtonTime. Referenced by RobotStateSymbols::getAnyBackButtonPressedForOneSecond(), and RobotStateSymbols::getAnyBackButtonPressedShortAndReleased(). |
|
Definition at line 113 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
Definition at line 117 of file RobotState.h. References anyBackButtonPressedTime. Referenced by RobotStateSymbols::getAnyBackButtonPressedForOneSecond(), and RobotStateSymbols::getAnyBackButtonPressedShortAndReleased(). |
|
Definition at line 122 of file RobotState.h. Referenced by GT2004RobotStateDetector::setNewButtonStatus(). |
|
Definition at line 126 of file RobotState.h. References anyBackButtonDuration. Referenced by RobotStateSymbols::getAnyBackButtonPressedForOneSecond(). |
|
copies another RobotState to this one
Definition at line 39 of file RobotState.cpp. References state. |
|
Definition at line 134 of file RobotState.h. References crashed, pickedUp, rollLeft, rollRight, and standing. |
|
Definition at line 148 of file RobotState.h. References collisionFrontLeft. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 149 of file RobotState.h. References collisionFrontLeft. Referenced by ObstaclesSymbols::getCollisionFrontLeft(). |
|
Definition at line 151 of file RobotState.h. References collisionFrontRight. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 152 of file RobotState.h. References collisionFrontRight. Referenced by ObstaclesSymbols::getCollisionFrontRight(). |
|
Definition at line 154 of file RobotState.h. References collisionHindLeft. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 155 of file RobotState.h. References collisionHindLeft. Referenced by ObstaclesSymbols::getCollisionHindLeft(). |
|
Definition at line 157 of file RobotState.h. References collisionHindRight. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 158 of file RobotState.h. References collisionHindRight. Referenced by ObstaclesSymbols::getCollisionHindRight(). |
|
Definition at line 160 of file RobotState.h. References collisionHead. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 161 of file RobotState.h. References collisionHead. Referenced by ObstaclesSymbols::getCollisionHead(). |
|
Definition at line 163 of file RobotState.h. References collisionAggregate. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 164 of file RobotState.h. References collisionAggregate. Referenced by ObstaclesSymbols::getCollisionAggregate(). |
|
Definition at line 167 of file RobotState.h. References consecutiveCollisionTimeFrontLeft. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 168 of file RobotState.h. References consecutiveCollisionTimeFrontLeft. Referenced by ObstaclesSymbols::getConsecutiveCollisionTimeFrontLeft(). |
|
Definition at line 170 of file RobotState.h. References consecutiveCollisionTimeFrontRight. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 171 of file RobotState.h. References consecutiveCollisionTimeFrontRight. Referenced by ObstaclesSymbols::getConsecutiveCollisionTimeFrontRight(). |
|
Definition at line 173 of file RobotState.h. References consecutiveCollisionTimeHindLeft. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 174 of file RobotState.h. References consecutiveCollisionTimeHindLeft. Referenced by ObstaclesSymbols::getConsecutiveCollisionTimeHindLeft(). |
|
Definition at line 176 of file RobotState.h. References consecutiveCollisionTimeHindRight. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 177 of file RobotState.h. References consecutiveCollisionTimeHindRight. Referenced by ObstaclesSymbols::getConsecutiveCollisionTimeHindRight(). |
|
Definition at line 179 of file RobotState.h. References consecutiveCollisionTimeHead. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 180 of file RobotState.h. References consecutiveCollisionTimeHead. Referenced by ObstaclesSymbols::getConsecutiveCollisionTimeHead(). |
|
Definition at line 182 of file RobotState.h. References consecutiveCollisionTimeAggregate. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 183 of file RobotState.h. References consecutiveCollisionTimeAggregate. Referenced by ObstaclesSymbols::getConsecutiveCollisionTimeAggregate(). |
|
Definition at line 185 of file RobotState.h. References collisionSide. Referenced by GT2004RobotStateDetector::calculateCollisionState(). |
|
Definition at line 186 of file RobotState.h. References collisionSide. Referenced by ObstaclesSymbols::getCollisionSide(). |
|
Definition at line 24 of file RobotState.h. Referenced by GT2004RobotStateDetector::execute(), GT2004BasicBehaviorEvolveOmniParameters::execute(), and RobotState(). |
|
Definition at line 29 of file RobotState.h. Referenced by operator<<(), and operator>>(). |
|
current state of robot position if crashed or standing
Definition at line 195 of file RobotState.h. Referenced by operator=(). |
|
current state of the mouth
Definition at line 200 of file RobotState.h. Referenced by getMouthState(), and setMouthState(). |
|
collision indicator of front left leg
Definition at line 205 of file RobotState.h. Referenced by getCollisionFrontLeft(), RobotState(), and setCollisionFrontLeft(). |
|
collision indicator of front right leg
Definition at line 210 of file RobotState.h. Referenced by getCollisionFrontRight(), RobotState(), and setCollisionFrontRight(). |
|
collision indicator of hind left leg
Definition at line 215 of file RobotState.h. Referenced by getCollisionHindLeft(), RobotState(), and setCollisionHindLeft(). |
|
collision indicator of hind right leg
Definition at line 220 of file RobotState.h. Referenced by getCollisionHindRight(), RobotState(), and setCollisionHindRight(). |
|
collision indicator of head
Definition at line 225 of file RobotState.h. Referenced by getCollisionHead(), RobotState(), and setCollisionHead(). |
|
collision indicator of collision occurrence
Definition at line 230 of file RobotState.h. Referenced by getCollisionAggregate(), RobotState(), and setCollisionAggregate(). |
|
Time for last consecutive collision on front left leg.
Definition at line 235 of file RobotState.h. Referenced by getConsecutiveCollisionTimeFrontLeft(), RobotState(), and setConsecutiveCollisionTimeFrontLeft(). |
|
Time for last consecutive collision on front right leg.
Definition at line 240 of file RobotState.h. Referenced by getConsecutiveCollisionTimeFrontRight(), RobotState(), and setConsecutiveCollisionTimeFrontRight(). |
|
Time for last consecutive collision on hind left leg.
Definition at line 245 of file RobotState.h. Referenced by getConsecutiveCollisionTimeHindLeft(), RobotState(), and setConsecutiveCollisionTimeHindLeft(). |
|
Time for last consecutive collision on hind right leg.
Definition at line 250 of file RobotState.h. Referenced by getConsecutiveCollisionTimeHindRight(), RobotState(), and setConsecutiveCollisionTimeHindRight(). |
|
Time for last consecutive collision on head.
Definition at line 255 of file RobotState.h. Referenced by getConsecutiveCollisionTimeHead(), RobotState(), and setConsecutiveCollisionTimeHead(). |
|
Time for last consecutive collision aggregate.
Definition at line 260 of file RobotState.h. Referenced by getConsecutiveCollisionTimeAggregate(), RobotState(), and setConsecutiveCollisionTimeAggregate(). |
|
collision occured on side
Definition at line 265 of file RobotState.h. Referenced by getCollisionSide(), RobotState(), and setCollisionSide(). |
|
Definition at line 269 of file RobotState.h. Referenced by getButtonPressed(). |
|
Definition at line 270 of file RobotState.h. Referenced by getButtonTime(). |
|
Definition at line 271 of file RobotState.h. Referenced by getButtonPressedTime(). |
|
Definition at line 272 of file RobotState.h. Referenced by getButtonDuration(). |
|
Definition at line 273 of file RobotState.h. Referenced by getAnyBackButtonPressed(). |
|
Definition at line 274 of file RobotState.h. Referenced by getAnyBackButtonTime(). |
|
Definition at line 275 of file RobotState.h. Referenced by getAnyBackButtonPressedTime(). |
|
Definition at line 276 of file RobotState.h. Referenced by getAnyBackButtonDuration(). |
|
Indicates whether something has been measured by the body PSD or not.
Definition at line 280 of file RobotState.h. Referenced by getSomethingInFrontOfChest(), RobotState(), and setSomethingInFrontOfChest(). |
|
The distance of objects in front of the body PSD.
Definition at line 283 of file RobotState.h. Referenced by getDistanceToSIFOC(), and setDistanceToSIFOC(). |
|
The last time when something has been measured by the body PSD.
Definition at line 286 of file RobotState.h. Referenced by getTimeWhenSomethingWasInFrontOfChestLast(), RobotState(), and setTimeWhenSomethingWasInFrontOfChestLast(). |