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

GT2004StrategySymbols Class Reference

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

#include <GT2004StrategySymbols.h>

Inheritance diagram for GT2004StrategySymbols:

Inheritance graph
[legend]
Collaboration diagram for GT2004StrategySymbols:

Collaboration graph
[legend]
List of all members.

Input symbols

double getRobotNumber ()
double getAngleToTeammate ()
bool getAnotherPlayerIsInReadyState ()
 A function for the symbol "another-player-is-in-ready-state".

bool getAnotherPlayerIsInInitialState ()
 A function for the symbol "another-player-is-in-initial-state".

bool getAnotherTeammateIsPerformingAKick ()
 A function for the symbol "another-teammate-is-performing-a-kick".

bool getTheStrikerIsPlayingNearTheOpponentGoal ()
 A function for the symbol "the-striker-is-playing-near-the-opponent-goal".

bool getTheStrikerIsNotPlayingNearTheOpponentGoal ()
 A function for the symbol "the-striker-is-not-playing-near-the-opponent-goal".

bool getTheStrikerIsPlayingNearTheOwnGoal ()
 A function for the symbol "the-striker-is-playing-near-the-own-goal".

bool getTheStrikerIsNotPlayingNearTheOwnGoal ()
 A function for the symbol "the-striker-is-not-playing-near-the-own-goal".

double getGoalieMaxPositionSpeed ()
 A function for the symbol "goalie-max-position-speed".

double getSearchBallX ()
 A function for the symbol "search-ball.x".

double angleToTeammateIndex

Public Types

enum  { doProfiling, dontDoProfiling }
 Output-Symbols for Profiler. More...

enum  { writeProfiles, writeCompleteProfiles, dontWriteProfiles }

Public Member Functions

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

void update ()
 updates the symbols

void estimateTimeToReachBall ()
 computes the estimated time to reach the ball

void computeRole ()
 computes the current role


Public Attributes

double estimatedTimeToReachBall
 current estimated time to reach the ball

BehaviorTeamMessage::DynamicRole role
 current role

enum GT2004StrategySymbols:: { ... }  doProfile
 Output-Symbols for Profiler.

enum GT2004StrategySymbols:: { ... }  writeProfile

Detailed Description

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

Author:
Martin Lötzsch

Definition at line 22 of file GT2004StrategySymbols.h.


Member Enumeration Documentation

anonymous enum
 

Output-Symbols for Profiler.

Enumeration values:
doProfiling 
dontDoProfiling 

Definition at line 92 of file GT2004StrategySymbols.h.

anonymous enum
 

Enumeration values:
writeProfiles 
writeCompleteProfiles 
dontWriteProfiles 

Definition at line 93 of file GT2004StrategySymbols.h.


Constructor & Destructor Documentation

GT2004StrategySymbols::GT2004StrategySymbols BehaviorControlInterfaces interfaces  ) 
 

Definition at line 13 of file GT2004StrategySymbols.cpp.


Member Function Documentation

void GT2004StrategySymbols::registerSymbols Xabsl2Engine engine  ) 
 

registers the symbols at an engine

Definition at line 21 of file GT2004StrategySymbols.cpp.

References angleToTeammateIndex, BehaviorTeamMessage::gameState, getAngleToTeammate(), getAnotherPlayerIsInInitialState(), getAnotherPlayerIsInReadyState(), getAnotherTeammateIsPerformingAKick(), getGoalieMaxPositionSpeed(), getRobotNumber(), getSearchBallX(), getTheStrikerIsNotPlayingNearTheOpponentGoal(), getTheStrikerIsNotPlayingNearTheOwnGoal(), getTheStrikerIsPlayingNearTheOpponentGoal(), getTheStrikerIsPlayingNearTheOwnGoal(), BehaviorTeamMessage::message, Xabsl2Symbols::registerBooleanInputSymbol(), Xabsl2Symbols::registerDecimalInputFunction(), Xabsl2Symbols::registerDecimalInputFunctionParameter(), Xabsl2Symbols::registerDecimalInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbol(), Xabsl2Symbols::registerEnumeratedInputSymbolEnumElement(), Xabsl2Symbols::registerEnumeratedOutputSymbol(), and Xabsl2Symbols::registerEnumeratedOutputSymbolEnumElement().

Referenced by GT2004BehaviorControl::registerSymbolsAndBasicBehaviors().

Here is the call graph for this function:

void GT2004StrategySymbols::update  ) 
 

updates the symbols

Definition at line 94 of file GT2004StrategySymbols.cpp.

References computeRole(), BehaviorTeamMessage::dynamicRole, BehaviorTeamMessage::estimatedTimeToReachBall, and estimateTimeToReachBall().

Referenced by GT2004BehaviorControl::execute().

Here is the call graph for this function:

void GT2004StrategySymbols::estimateTimeToReachBall  ) 
 

computes the estimated time to reach the ball

Definition at line 265 of file GT2004StrategySymbols.cpp.

References Geometry::angleTo(), Geometry::distanceTo(), SystemCall::getTimeSince(), normalize(), pi2, BallModel::seen, SeenBallPosition::timeWhenLastSeen, and Pose2D::translation.

Referenced by update().

Here is the call graph for this function:

void GT2004StrategySymbols::computeRole  ) 
 

computes the current role

Definition at line 103 of file GT2004StrategySymbols.cpp.

References SeenBallPosition::ballInFrontOfOpponentGoal, FieldDimensions::distanceToOpponentPenaltyArea(), getPlayer(), Player::getPlayerNumber(), SystemCall::getTimeSince(), TeamMessageCollection::numberOfTeamMessages, BallModel::seen, SeenBallPosition::timeWhenLastSeen, Pose2D::translation, and Vector2< double >::x.

Referenced by update().

Here is the call graph for this function:

double GT2004StrategySymbols::getRobotNumber  )  [inline]
 

Definition at line 55 of file GT2004StrategySymbols.h.

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

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004StrategySymbols::getAngleToTeammate  ) 
 

the Parameter "robot-pose.get-angle-to-teammate.index" for the decimal input function "robot-pose.get-angle-to-teammate"

Definition at line 299 of file GT2004StrategySymbols.cpp.

References angleToTeammateIndex, PlayerPoseCollection::getOwnPlayerPose(), PlayerPose::getPose(), PlayerPoseCollection::numberOfOwnPlayers, toDegrees(), and Pose2D::translation.

Referenced by registerSymbols().

Here is the call graph for this function:

bool GT2004StrategySymbols::getAnotherPlayerIsInReadyState  ) 
 

A function for the symbol "another-player-is-in-ready-state".

Definition at line 316 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

bool GT2004StrategySymbols::getAnotherPlayerIsInInitialState  ) 
 

A function for the symbol "another-player-is-in-initial-state".

Definition at line 332 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

bool GT2004StrategySymbols::getAnotherTeammateIsPerformingAKick  ) 
 

A function for the symbol "another-teammate-is-performing-a-kick".

Definition at line 348 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

bool GT2004StrategySymbols::getTheStrikerIsPlayingNearTheOpponentGoal  ) 
 

A function for the symbol "the-striker-is-playing-near-the-opponent-goal".

Definition at line 364 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

bool GT2004StrategySymbols::getTheStrikerIsNotPlayingNearTheOpponentGoal  ) 
 

A function for the symbol "the-striker-is-not-playing-near-the-opponent-goal".

Definition at line 380 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

bool GT2004StrategySymbols::getTheStrikerIsPlayingNearTheOwnGoal  ) 
 

A function for the symbol "the-striker-is-playing-near-the-own-goal".

Definition at line 396 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

bool GT2004StrategySymbols::getTheStrikerIsNotPlayingNearTheOwnGoal  ) 
 

A function for the symbol "the-striker-is-not-playing-near-the-own-goal".

Definition at line 412 of file GT2004StrategySymbols.cpp.

Referenced by registerSymbols().

double GT2004StrategySymbols::getGoalieMaxPositionSpeed  ) 
 

A function for the symbol "goalie-max-position-speed".

Definition at line 247 of file GT2004StrategySymbols.cpp.

References Geometry::distanceTo(), RobotPose::getPose(), max, min, and BallModel::seen.

Referenced by registerSymbols().

Here is the call graph for this function:

double GT2004StrategySymbols::getSearchBallX  ) 
 

A function for the symbol "search-ball.x".

Definition at line 428 of file GT2004StrategySymbols.cpp.

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

Referenced by registerSymbols().

Here is the call graph for this function:


Member Data Documentation

double GT2004StrategySymbols::estimatedTimeToReachBall
 

current estimated time to reach the ball

Definition at line 38 of file GT2004StrategySymbols.h.

BehaviorTeamMessage::DynamicRole GT2004StrategySymbols::role
 

current role

Definition at line 44 of file GT2004StrategySymbols.h.

Referenced by GT2004BehaviorControl::postExecute().

double GT2004StrategySymbols::angleToTeammateIndex
 

Definition at line 60 of file GT2004StrategySymbols.h.

Referenced by getAngleToTeammate(), and registerSymbols().

enum { ... } GT2004StrategySymbols::doProfile
 

Output-Symbols for Profiler.

enum { ... } GT2004StrategySymbols::writeProfile
 


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