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

GT2005ConfigurationSymbols Class Reference

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

#include <GT2005ConfigurationSymbols.h>

Inheritance diagram for GT2005ConfigurationSymbols:

Inheritance graph
[legend]
Collaboration diagram for GT2005ConfigurationSymbols:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

void update ()
 updates the symbols

void computeKickoffRole ()
 computes the kickoff role

double getKickOffRoleNumber ()
double getTimeToReachKickoffPose (BehaviorTeamMessage::DynamicRole, Vector2< double >)
Input symbols
double getCurrentKickoff ()
double getOwnKickoffX ()
double getOwnKickoffY ()
double getOwnKickoffAngle ()
double getOwnKickoffXByObstacles ()
double getOwnKickoffYByObstacles ()
double getOwnKickoffAngleByObstacles ()
double getOpponentKickoffX ()
double getOpponentKickoffY ()
double getOpponentKickoffAngle ()
double getKickoffX ()
double getKickoffY ()
double getKickoffAngle ()

Public Attributes

BehaviorTeamMessage::DynamicRole kickoff_role
 kickoff role


Private Types

enum  { numOfKickoff = 2 }
 number of different kickoff variants More...


Private Attributes

double goToKickoffMaxSpeed
 the max speed with which the robot walks to its kickoff position

Vector2< double > goalie
 the goalie start position

Vector2< double > defensiveSupporter
 the defensive supporter start position

Vector2< double > offensiveSupporterOpponentKickoff
 the offensive supporter start position at opponent kickoff

Vector2< double > strikerOpponentKickoff
 the striker start position at opponent kickoff

Vector2< double > offensiveSupporterOwnKickoff [numOfKickoff]
 the offensive supporter start position at own kickoff

double offensiveSupporterOwnKickoffAngle [numOfKickoff]
 the orientation of the offensive supporter at own kickoff in degrees

Vector2< double > strikerOwnKickoff [numOfKickoff]
 the striker start position at own kickoff

double strikerOwnKickoffAngle [numOfKickoff]
 the orientation of the striker at own kickoff in degrees

int currentKickoff
 current own kickoff variant

double role
 current kickoff role

double ownKickOff
RingBufferWithSum< 10 > kickoffTimes [3]
Pose2D obstacleKickoff
 kickoff-position of striker based on obstacle-model


Detailed Description

The Xabsl2 symbols that are defined in "configuration-symbols.xml".

Author:
Max Risler

Definition at line 20 of file GT2005ConfigurationSymbols.h.


Member Enumeration Documentation

anonymous enum [private]
 

number of different kickoff variants

Enumeration values:
numOfKickoff 

Definition at line 62 of file GT2005ConfigurationSymbols.h.


Constructor & Destructor Documentation

GT2005ConfigurationSymbols::GT2005ConfigurationSymbols BehaviorControlInterfaces interfaces  ) 
 

Definition at line 13 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getPlayer(), Player::getPlayerNumber(), kickoff_role, offensiveSupporterOpponentKickoff, offensiveSupporterOwnKickoff, offensiveSupporterOwnKickoffAngle, strikerOpponentKickoff, strikerOwnKickoff, strikerOwnKickoffAngle, Vector2< double >::x, and Vector2< double >::y.

Here is the call graph for this function:


Member Function Documentation

void GT2005ConfigurationSymbols::registerSymbols Xabsl2Engine engine  ) 
 

registers the symbols at an engine

Definition at line 66 of file GT2005ConfigurationSymbols.cpp.

References getCurrentKickoff(), getKickoffAngle(), getKickOffRoleNumber(), getKickoffX(), getKickoffY(), getOpponentKickoffAngle(), getOpponentKickoffX(), getOpponentKickoffY(), getOwnKickoffAngle(), getOwnKickoffX(), getOwnKickoffY(), kickoff_role, ownKickOff, Xabsl2Symbols::registerDecimalInputFunction(), Xabsl2Symbols::registerDecimalInputFunctionParameter(), Xabsl2Symbols::registerDecimalInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbolEnumElement(), and role.

Referenced by GT2005BehaviorControl::registerSymbolsAndBasicBehaviors().

Here is the call graph for this function:

void GT2005ConfigurationSymbols::update  ) 
 

updates the symbols

Definition at line 111 of file GT2005ConfigurationSymbols.cpp.

References computeKickoffRole(), currentKickoff, DEBUG_RESPONSE, Pose2D::fromAngle(), fromDegrees(), Pose2D::getAngle(), ObstaclesModel::getDistanceInCorridor(), ObstaclesModel::getDistanceInDirection(), GameControlData::getOpponentTeam(), idText, kickoff_role, numOfKickoff, obstacleKickoff, OUTPUT, toDegrees(), Pose2D::translation, Vector2< double >::x, and Vector2< double >::y.

Referenced by GT2005BehaviorControl::execute().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getCurrentKickoff  ) 
 

A function for the symbol "current-kickoff-variant"

Definition at line 169 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff.

Referenced by registerSymbols().

double GT2005ConfigurationSymbols::getOwnKickoffX  ) 
 

A function for the symbol "own-kickoff.x"

Definition at line 190 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getOwnKickoffXByObstacles(), getPlayer(), Player::getPlayerNumber(), offensiveSupporterOwnKickoff, and Vector2< double >::x.

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getOwnKickoffY  ) 
 

A function for the symbol "own-kickoff.y"

Definition at line 207 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getOwnKickoffYByObstacles(), getPlayer(), Player::getPlayerNumber(), offensiveSupporterOwnKickoff, and Vector2< double >::y.

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getOwnKickoffAngle  ) 
 

A function for the symbol "own-kickoff.angle"

Definition at line 174 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getOwnKickoffAngleByObstacles(), getPlayer(), Player::getPlayerNumber(), and offensiveSupporterOwnKickoffAngle.

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getOwnKickoffXByObstacles  ) 
 

A function for the symbol "own-kickoff.x" by obstacle model

Definition at line 224 of file GT2005ConfigurationSymbols.cpp.

References obstacleKickoff, Pose2D::translation, and Vector2< double >::x.

Referenced by getKickoffX(), and getOwnKickoffX().

double GT2005ConfigurationSymbols::getOwnKickoffYByObstacles  ) 
 

A function for the symbol "own-kickoff.y" by obstacle model

Definition at line 229 of file GT2005ConfigurationSymbols.cpp.

References obstacleKickoff, Pose2D::translation, and Vector2< double >::y.

Referenced by getKickoffY(), and getOwnKickoffY().

double GT2005ConfigurationSymbols::getOwnKickoffAngleByObstacles  ) 
 

A function for the symbol "own-kickoff.angle" by obstacle model

Definition at line 234 of file GT2005ConfigurationSymbols.cpp.

References Pose2D::getAngle(), and obstacleKickoff.

Referenced by getKickoffAngle(), and getOwnKickoffAngle().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getOpponentKickoffX  ) 
 

A function for the symbol "opponent-kickoff.x"

Definition at line 252 of file GT2005ConfigurationSymbols.cpp.

References getPlayer(), Player::getPlayerNumber(), offensiveSupporterOpponentKickoff, strikerOpponentKickoff, and Vector2< double >::x.

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getOpponentKickoffY  ) 
 

A function for the symbol "opponent-kickoff.y"

Definition at line 268 of file GT2005ConfigurationSymbols.cpp.

References getPlayer(), Player::getPlayerNumber(), offensiveSupporterOpponentKickoff, strikerOpponentKickoff, and Vector2< double >::y.

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getOpponentKickoffAngle  ) 
 

A function for the symbol "opponent-kickoff.angle"

Definition at line 239 of file GT2005ConfigurationSymbols.cpp.

References getPlayer(), and Player::getPlayerNumber().

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getKickoffX  ) 
 

A function for the symbol "kickoff.x"

Definition at line 284 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getOwnKickoffXByObstacles(), offensiveSupporterOpponentKickoff, offensiveSupporterOwnKickoff, ownKickOff, role, strikerOpponentKickoff, and Vector2< double >::x.

Referenced by getTimeToReachKickoffPose(), and registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getKickoffY  ) 
 

A function for the symbol "kickoff.y"

Definition at line 318 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getOwnKickoffYByObstacles(), offensiveSupporterOpponentKickoff, offensiveSupporterOwnKickoff, ownKickOff, role, strikerOpponentKickoff, and Vector2< double >::y.

Referenced by getTimeToReachKickoffPose(), and registerSymbols().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getKickoffAngle  ) 
 

A function for the symbol "kickoff.angle"

Definition at line 353 of file GT2005ConfigurationSymbols.cpp.

References currentKickoff, getOwnKickoffAngleByObstacles(), offensiveSupporterOwnKickoffAngle, ownKickOff, and role.

Referenced by registerSymbols().

Here is the call graph for this function:

void GT2005ConfigurationSymbols::computeKickoffRole  ) 
 

computes the kickoff role

Definition at line 389 of file GT2005ConfigurationSymbols.cpp.

References RingBufferWithSum< 10 >::add(), GameControlData::data, DEBUG_RESPONSE, BehaviorTeamMessage::estimatedTimeToReachKickoff, RingBufferWithSum< 10 >::getNumberOfEntries(), getPlayer(), Player::getPlayerNumber(), RingBufferWithSum< 10 >::getSum(), getTimeToReachKickoffPose(), idText, kickoff_role, kickoffTimes, OUTPUT, and Pose2D::translation.

Referenced by update().

Here is the call graph for this function:

double GT2005ConfigurationSymbols::getKickOffRoleNumber  ) 
 

Definition at line 579 of file GT2005ConfigurationSymbols.cpp.

References kickoff_role.

Referenced by registerSymbols().

double GT2005ConfigurationSymbols::getTimeToReachKickoffPose BehaviorTeamMessage::DynamicRole  ,
Vector2< double > 
 

Definition at line 376 of file GT2005ConfigurationSymbols.cpp.

References GameControlData::getKickoffTeam(), getKickoffX(), getKickoffY(), and ownKickOff.

Referenced by computeKickoffRole().

Here is the call graph for this function:


Member Data Documentation

BehaviorTeamMessage::DynamicRole GT2005ConfigurationSymbols::kickoff_role
 

kickoff role

Definition at line 53 of file GT2005ConfigurationSymbols.h.

Referenced by computeKickoffRole(), getKickOffRoleNumber(), GT2005ConfigurationSymbols(), registerSymbols(), and update().

double GT2005ConfigurationSymbols::goToKickoffMaxSpeed [private]
 

the max speed with which the robot walks to its kickoff position

Definition at line 65 of file GT2005ConfigurationSymbols.h.

Vector2<double> GT2005ConfigurationSymbols::goalie [private]
 

the goalie start position

Definition at line 68 of file GT2005ConfigurationSymbols.h.

Vector2<double> GT2005ConfigurationSymbols::defensiveSupporter [private]
 

the defensive supporter start position

Definition at line 71 of file GT2005ConfigurationSymbols.h.

Vector2<double> GT2005ConfigurationSymbols::offensiveSupporterOpponentKickoff [private]
 

the offensive supporter start position at opponent kickoff

Definition at line 74 of file GT2005ConfigurationSymbols.h.

Referenced by getKickoffX(), getKickoffY(), getOpponentKickoffX(), getOpponentKickoffY(), and GT2005ConfigurationSymbols().

Vector2<double> GT2005ConfigurationSymbols::strikerOpponentKickoff [private]
 

the striker start position at opponent kickoff

Definition at line 76 of file GT2005ConfigurationSymbols.h.

Referenced by getKickoffX(), getKickoffY(), getOpponentKickoffX(), getOpponentKickoffY(), and GT2005ConfigurationSymbols().

Vector2<double> GT2005ConfigurationSymbols::offensiveSupporterOwnKickoff[numOfKickoff] [private]
 

the offensive supporter start position at own kickoff

Definition at line 79 of file GT2005ConfigurationSymbols.h.

Referenced by getKickoffX(), getKickoffY(), getOwnKickoffX(), getOwnKickoffY(), and GT2005ConfigurationSymbols().

double GT2005ConfigurationSymbols::offensiveSupporterOwnKickoffAngle[numOfKickoff] [private]
 

the orientation of the offensive supporter at own kickoff in degrees

Definition at line 81 of file GT2005ConfigurationSymbols.h.

Referenced by getKickoffAngle(), getOwnKickoffAngle(), and GT2005ConfigurationSymbols().

Vector2<double> GT2005ConfigurationSymbols::strikerOwnKickoff[numOfKickoff] [private]
 

the striker start position at own kickoff

Definition at line 83 of file GT2005ConfigurationSymbols.h.

Referenced by GT2005ConfigurationSymbols().

double GT2005ConfigurationSymbols::strikerOwnKickoffAngle[numOfKickoff] [private]
 

the orientation of the striker at own kickoff in degrees

Definition at line 85 of file GT2005ConfigurationSymbols.h.

Referenced by GT2005ConfigurationSymbols().

int GT2005ConfigurationSymbols::currentKickoff [private]
 

current own kickoff variant

Definition at line 90 of file GT2005ConfigurationSymbols.h.

Referenced by getCurrentKickoff(), getKickoffAngle(), getKickoffX(), getKickoffY(), getOwnKickoffAngle(), getOwnKickoffX(), getOwnKickoffY(), GT2005ConfigurationSymbols(), and update().

double GT2005ConfigurationSymbols::role [private]
 

current kickoff role

Definition at line 95 of file GT2005ConfigurationSymbols.h.

Referenced by getKickoffAngle(), getKickoffX(), getKickoffY(), and registerSymbols().

double GT2005ConfigurationSymbols::ownKickOff [private]
 

Definition at line 96 of file GT2005ConfigurationSymbols.h.

Referenced by getKickoffAngle(), getKickoffX(), getKickoffY(), getTimeToReachKickoffPose(), and registerSymbols().

RingBufferWithSum<10> GT2005ConfigurationSymbols::kickoffTimes[3] [private]
 

Definition at line 97 of file GT2005ConfigurationSymbols.h.

Referenced by computeKickoffRole().

Pose2D GT2005ConfigurationSymbols::obstacleKickoff [private]
 

kickoff-position of striker based on obstacle-model

Definition at line 100 of file GT2005ConfigurationSymbols.h.

Referenced by getOwnKickoffAngleByObstacles(), getOwnKickoffXByObstacles(), getOwnKickoffYByObstacles(), and update().


The documentation for this class was generated from the following files:
Generated on Mon Mar 20 22:13:48 2006 for GT2005 by doxygen 1.3.6