Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RobotStateSymbols Class Reference

The Xabsl2 symbols that are defined in "robot-state-symbols.xml". More...

#include <RobotStateSymbols.h>

Inheritance diagram for RobotStateSymbols:

Inheritance graph
[legend]
Collaboration diagram for RobotStateSymbols:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RobotStateSymbols (const BehaviorControlInterfaces &interfaces)
void registerSymbols (Xabsl2Engine &engine)
 registers the symbols at an engine

void update ()
 updates the symbols

Input symbols
bool getAnyBackButtonPressedForOneSecond ()
bool getAnyBackButtonPressedShortAndReleased ()
bool getForeBackButtonPressedShortAndReleased ()
bool getMiddleBackButtonPressedShortAndReleased ()
bool getHindBackButtonPressedShortAndReleased ()
bool getForeBackButtonPressedShort ()
bool getMiddleBackButtonPressedShort ()
bool getHindBackButtonPressedShort ()
bool getHeadButtonPressedForThreeSeconds ()
bool getHeadButtonPressedShortAndReleased ()
bool getHeadButtonPressedShort ()
int getMouthState ()
bool getBallUnderHead ()
bool getSomethingInFrontOfChest ()
double getTimeSinceSomethingWasInFrontOfChest ()
double getDistanceToSIFOC ()
double getSwitchesPressedTime ()
double getCurrentSystemTime ()
double getRemainingCapacity ()

Detailed Description

The Xabsl2 symbols that are defined in "robot-state-symbols.xml".

Author:
Matthias Jüngel

Definition at line 20 of file RobotStateSymbols.h.


Constructor & Destructor Documentation

RobotStateSymbols::RobotStateSymbols const BehaviorControlInterfaces interfaces  ) 
 

Definition at line 11 of file RobotStateSymbols.cpp.


Member Function Documentation

void RobotStateSymbols::registerSymbols Xabsl2Engine engine  ) 
 

registers the symbols at an engine

Definition at line 17 of file RobotStateSymbols.cpp.

References getAnyBackButtonPressedForOneSecond(), getAnyBackButtonPressedShortAndReleased(), getBallUnderHead(), getCurrentSystemTime(), getDistanceToSIFOC(), getForeBackButtonPressedShort(), getForeBackButtonPressedShortAndReleased(), getHeadButtonPressedForThreeSeconds(), getHeadButtonPressedShort(), getHeadButtonPressedShortAndReleased(), getHindBackButtonPressedShort(), getHindBackButtonPressedShortAndReleased(), getMiddleBackButtonPressedShort(), getMiddleBackButtonPressedShortAndReleased(), getMouthState(), getRemainingCapacity(), getSomethingInFrontOfChest(), getTimeSinceSomethingWasInFrontOfChest(), Xabsl2Symbols::registerBooleanInputSymbol(), Xabsl2Symbols::registerDecimalInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbol(), and Xabsl2Symbols::registerEnumeratedInputSymbolEnumElement().

Referenced by GT2004BehaviorControl::registerSymbolsAndBasicBehaviors().

Here is the call graph for this function:

void RobotStateSymbols::update  ) 
 

updates the symbols

Definition at line 79 of file RobotStateSymbols.cpp.

bool RobotStateSymbols::getAnyBackButtonPressedForOneSecond  ) 
 

Definition at line 121 of file RobotStateSymbols.cpp.

References RobotState::getAnyBackButtonDuration(), RobotState::getAnyBackButtonPressed(), RobotState::getAnyBackButtonPressedTime(), RobotState::getAnyBackButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getAnyBackButtonPressedShortAndReleased  ) 
 

Definition at line 137 of file RobotStateSymbols.cpp.

References RobotState::getAnyBackButtonPressed(), RobotState::getAnyBackButtonPressedTime(), RobotState::getAnyBackButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getForeBackButtonPressedShortAndReleased  ) 
 

Definition at line 156 of file RobotStateSymbols.cpp.

References RobotState::getButtonPressed(), RobotState::getButtonPressedTime(), RobotState::getButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getMiddleBackButtonPressedShortAndReleased  ) 
 

Definition at line 175 of file RobotStateSymbols.cpp.

References RobotState::getButtonPressed(), RobotState::getButtonPressedTime(), RobotState::getButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getHindBackButtonPressedShortAndReleased  ) 
 

Definition at line 194 of file RobotStateSymbols.cpp.

References RobotState::getButtonPressed(), RobotState::getButtonPressedTime(), RobotState::getButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getForeBackButtonPressedShort  ) 
 

Definition at line 146 of file RobotStateSymbols.cpp.

References RobotState::getButtonDuration(), and RobotState::getButtonPressed().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getMiddleBackButtonPressedShort  ) 
 

Definition at line 165 of file RobotStateSymbols.cpp.

References RobotState::getButtonDuration(), and RobotState::getButtonPressed().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getHindBackButtonPressedShort  ) 
 

Definition at line 184 of file RobotStateSymbols.cpp.

References RobotState::getButtonDuration(), and RobotState::getButtonPressed().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getHeadButtonPressedForThreeSeconds  ) 
 

Definition at line 203 of file RobotStateSymbols.cpp.

References RobotState::getButtonDuration(), RobotState::getButtonPressed(), RobotState::getButtonPressedTime(), RobotState::getButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getHeadButtonPressedShortAndReleased  ) 
 

Definition at line 230 of file RobotStateSymbols.cpp.

References RobotState::getButtonPressed(), RobotState::getButtonPressedTime(), RobotState::getButtonTime(), and SystemCall::getTimeSince().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getHeadButtonPressedShort  ) 
 

Definition at line 219 of file RobotStateSymbols.cpp.

References RobotState::getButtonDuration(), and RobotState::getButtonPressed().

Referenced by registerSymbols().

Here is the call graph for this function:

int RobotStateSymbols::getMouthState  ) 
 

A function for the symbol "self.mouth-state"

Definition at line 83 of file RobotStateSymbols.cpp.

References RobotState::getMouthState().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getBallUnderHead  ) 
 

A function for the symbol "self.ball-under-head"

Definition at line 98 of file RobotStateSymbols.cpp.

References SensorData::data, and SensorDataBuffer::lastFrame().

Referenced by registerSymbols().

Here is the call graph for this function:

bool RobotStateSymbols::getSomethingInFrontOfChest  ) 
 

A function for the symbol "robot-state.something-in-front-of-chest"

Definition at line 105 of file RobotStateSymbols.cpp.

References RobotState::getSomethingInFrontOfChest().

Referenced by registerSymbols().

Here is the call graph for this function:

double RobotStateSymbols::getTimeSinceSomethingWasInFrontOfChest  ) 
 

A function for the symbol "robot-state.time-since-something-was-in-front-of-chest"

Definition at line 110 of file RobotStateSymbols.cpp.

References SystemCall::getTimeSince(), and RobotState::getTimeWhenSomethingWasInFrontOfChestLast().

Referenced by registerSymbols().

Here is the call graph for this function:

double RobotStateSymbols::getDistanceToSIFOC  ) 
 

A function for the symbol "robot-state.distance-to-sifoc"

Definition at line 115 of file RobotStateSymbols.cpp.

References RobotState::getDistanceToSIFOC().

Referenced by registerSymbols().

Here is the call graph for this function:

double RobotStateSymbols::getSwitchesPressedTime  ) 
 

A function for the symbol "self.switches.pressed-time"

double RobotStateSymbols::getCurrentSystemTime  ) 
 

A function for the symbol "robot-state.system-time"

Definition at line 88 of file RobotStateSymbols.cpp.

References SystemCall::getCurrentSystemTime().

Referenced by registerSymbols().

Here is the call graph for this function:

double RobotStateSymbols::getRemainingCapacity  ) 
 

A function for the symbol "robot-state.remaining-capacity"

Definition at line 93 of file RobotStateSymbols.cpp.

References SystemCall::getRemainingPower().

Referenced by registerSymbols().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:11:34 2004 for GT2004 by doxygen 1.3.6