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

GT2004ConfigurationSymbols Class Reference

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

#include <GT2004ConfigurationSymbols.h>

Inheritance diagram for GT2004ConfigurationSymbols:

Inheritance graph
[legend]
Collaboration diagram for GT2004ConfigurationSymbols:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

void update ()
 updates the symbols

Input symbols
double getCurrentKickoff ()
double getOwnKickoffX ()
double getOwnKickoffY ()
double getOwnKickoffAngle ()
double getOwnKickoffXByObstacles ()
double getOwnKickoffYByObstacles ()
double getOwnKickoffAngleByObstacles ()
double getOpponentKickoffX ()
double getOpponentKickoffY ()
double getOpponentKickoffAngle ()

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

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 GT2004ConfigurationSymbols.h.


Member Enumeration Documentation

anonymous enum [private]
 

number of different kickoff variants

Enumeration values:
numOfKickoff 

Definition at line 51 of file GT2004ConfigurationSymbols.h.


Constructor & Destructor Documentation

GT2004ConfigurationSymbols::GT2004ConfigurationSymbols BehaviorControlInterfaces interfaces  ) 
 

Definition at line 11 of file GT2004ConfigurationSymbols.cpp.

References currentKickoff, offensiveSupporterOpponentKickoff, offensiveSupporterOwnKickoff, offensiveSupporterOwnKickoffAngle, strikerOpponentKickoff, strikerOwnKickoff, strikerOwnKickoffAngle, Vector2< double >::x, and Vector2< double >::y.


Member Function Documentation

void GT2004ConfigurationSymbols::registerSymbols Xabsl2Engine engine  ) 
 

registers the symbols at an engine

Definition at line 48 of file GT2004ConfigurationSymbols.cpp.

References getCurrentKickoff(), getOpponentKickoffAngle(), getOpponentKickoffX(), getOpponentKickoffY(), getOwnKickoffAngle(), getOwnKickoffX(), getOwnKickoffY(), and Xabsl2Symbols::registerDecimalInputSymbol().

Referenced by GT2004BehaviorControl::registerSymbolsAndBasicBehaviors().

Here is the call graph for this function:

void GT2004ConfigurationSymbols::update  ) 
 

updates the symbols

Definition at line 68 of file GT2004ConfigurationSymbols.cpp.

References currentKickoff, GameControlData::data, Pose2D::fromAngle(), fromDegrees(), Pose2D::getAngle(), ObstaclesModel::getDistanceInCorridor(), ObstaclesModel::getDistanceInDirection(), numOfKickoff, obstacleKickoff, toDegrees(), Pose2D::translation, Vector2< double >::x, and Vector2< double >::y.

Referenced by GT2004BehaviorControl::execute().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getCurrentKickoff  ) 
 

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

Definition at line 126 of file GT2004ConfigurationSymbols.cpp.

References currentKickoff.

Referenced by registerSymbols().

double GT2004ConfigurationSymbols::getOwnKickoffX  ) 
 

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

Definition at line 147 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getOwnKickoffY  ) 
 

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

Definition at line 164 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getOwnKickoffAngle  ) 
 

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

Definition at line 131 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getOwnKickoffXByObstacles  ) 
 

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

Definition at line 181 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by getOwnKickoffX().

double GT2004ConfigurationSymbols::getOwnKickoffYByObstacles  ) 
 

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

Definition at line 186 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by getOwnKickoffY().

double GT2004ConfigurationSymbols::getOwnKickoffAngleByObstacles  ) 
 

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

Definition at line 191 of file GT2004ConfigurationSymbols.cpp.

References Pose2D::getAngle(), and obstacleKickoff.

Referenced by getOwnKickoffAngle().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getOpponentKickoffX  ) 
 

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

Definition at line 209 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getOpponentKickoffY  ) 
 

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

Definition at line 225 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004ConfigurationSymbols::getOpponentKickoffAngle  ) 
 

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

Definition at line 196 of file GT2004ConfigurationSymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:


Member Data Documentation

double GT2004ConfigurationSymbols::goToKickoffMaxSpeed [private]
 

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

Definition at line 54 of file GT2004ConfigurationSymbols.h.

Vector2<double> GT2004ConfigurationSymbols::goalie [private]
 

the goalie start position

Definition at line 57 of file GT2004ConfigurationSymbols.h.

Vector2<double> GT2004ConfigurationSymbols::defensiveSupporter [private]
 

the defensive supporter start position

Definition at line 60 of file GT2004ConfigurationSymbols.h.

Vector2<double> GT2004ConfigurationSymbols::offensiveSupporterOpponentKickoff [private]
 

the offensive supporter start position at opponent kickoff

Definition at line 63 of file GT2004ConfigurationSymbols.h.

Referenced by getOpponentKickoffX(), getOpponentKickoffY(), and GT2004ConfigurationSymbols().

Vector2<double> GT2004ConfigurationSymbols::strikerOpponentKickoff [private]
 

the striker start position at opponent kickoff

Definition at line 65 of file GT2004ConfigurationSymbols.h.

Referenced by getOpponentKickoffX(), getOpponentKickoffY(), and GT2004ConfigurationSymbols().

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

the offensive supporter start position at own kickoff

Definition at line 68 of file GT2004ConfigurationSymbols.h.

Referenced by getOwnKickoffX(), getOwnKickoffY(), and GT2004ConfigurationSymbols().

double GT2004ConfigurationSymbols::offensiveSupporterOwnKickoffAngle[numOfKickoff] [private]
 

the orientation of the offensive supporter at own kickoff in degrees

Definition at line 70 of file GT2004ConfigurationSymbols.h.

Referenced by getOwnKickoffAngle(), and GT2004ConfigurationSymbols().

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

the striker start position at own kickoff

Definition at line 72 of file GT2004ConfigurationSymbols.h.

Referenced by GT2004ConfigurationSymbols().

double GT2004ConfigurationSymbols::strikerOwnKickoffAngle[numOfKickoff] [private]
 

the orientation of the striker at own kickoff in degrees

Definition at line 74 of file GT2004ConfigurationSymbols.h.

Referenced by GT2004ConfigurationSymbols().

int GT2004ConfigurationSymbols::currentKickoff [private]
 

current own kickoff variant

Definition at line 79 of file GT2004ConfigurationSymbols.h.

Referenced by getCurrentKickoff(), getOwnKickoffAngle(), getOwnKickoffX(), getOwnKickoffY(), GT2004ConfigurationSymbols(), and update().

Pose2D GT2004ConfigurationSymbols::obstacleKickoff [private]
 

kickoff-position of striker based on obstacle-model

Definition at line 82 of file GT2004ConfigurationSymbols.h.

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


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