#include <GT2004ConfigurationSymbols.h>
Inheritance diagram for GT2004ConfigurationSymbols:
Public Member Functions | |
GT2004ConfigurationSymbols (BehaviorControlInterfaces &interfaces) | |
void | registerSymbols (Xabsl2Engine &engine) |
void | update () |
Input symbols | |
double | getCurrentKickoff () |
double | getOwnKickoffX () |
double | getOwnKickoffY () |
double | getOwnKickoffAngle () |
double | getOwnKickoffXByObstacles () |
double | getOwnKickoffYByObstacles () |
double | getOwnKickoffAngleByObstacles () |
double | getOpponentKickoffX () |
double | getOpponentKickoffY () |
double | getOpponentKickoffAngle () |
Private Types | |
numOfKickoff = 2 | |
enum | { numOfKickoff = 2 } |
Private Attributes | |
double | goToKickoffMaxSpeed |
Vector2< double > | goalie |
Vector2< double > | defensiveSupporter |
Vector2< double > | offensiveSupporterOpponentKickoff |
Vector2< double > | strikerOpponentKickoff |
Vector2< double > | offensiveSupporterOwnKickoff [numOfKickoff] |
double | offensiveSupporterOwnKickoffAngle [numOfKickoff] |
Vector2< double > | strikerOwnKickoff [numOfKickoff] |
double | strikerOwnKickoffAngle [numOfKickoff] |
int | currentKickoff |
Pose2D | obstacleKickoff |
Definition at line 20 of file GT2004ConfigurationSymbols.h.
anonymous enum [private] |
number of different kickoff variants
Definition at line 51 of file GT2004ConfigurationSymbols.h.
GT2004ConfigurationSymbols::GT2004ConfigurationSymbols | ( | BehaviorControlInterfaces & | interfaces | ) |
Definition at line 20 of file GT2004ConfigurationSymbols.cpp.
References currentKickoff, defensiveSupporter, goalie, offensiveSupporterOpponentKickoff, offensiveSupporterOwnKickoff, offensiveSupporterOwnKickoffAngle, strikerOpponentKickoff, strikerOwnKickoff, strikerOwnKickoffAngle, Vector2< V >::x, and Vector2< V >::y.
double GT2004ConfigurationSymbols::getCurrentKickoff | ( | ) |
A function for the symbol "current-kickoff-variant"
Definition at line 139 of file GT2004ConfigurationSymbols.cpp.
References currentKickoff.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOpponentKickoffAngle | ( | ) |
A function for the symbol "opponent-kickoff.angle"
Definition at line 210 of file GT2004ConfigurationSymbols.cpp.
References Player::four, getPlayer(), Player::one, Player::three, and Player::two.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOpponentKickoffX | ( | ) |
A function for the symbol "opponent-kickoff.x"
Definition at line 226 of file GT2004ConfigurationSymbols.cpp.
References defensiveSupporter, Player::four, getPlayer(), goalie, offensiveSupporterOpponentKickoff, Player::one, strikerOpponentKickoff, Player::three, Player::two, and Vector2< V >::x.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOpponentKickoffY | ( | ) |
A function for the symbol "opponent-kickoff.y"
Definition at line 242 of file GT2004ConfigurationSymbols.cpp.
References defensiveSupporter, Player::four, getPlayer(), goalie, offensiveSupporterOpponentKickoff, Player::one, strikerOpponentKickoff, Player::three, Player::two, and Vector2< V >::y.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOwnKickoffAngle | ( | ) |
A function for the symbol "own-kickoff.angle"
Definition at line 144 of file GT2004ConfigurationSymbols.cpp.
References currentKickoff, Player::four, getPlayer(), offensiveSupporterOwnKickoffAngle, Player::one, strikerOwnKickoffAngle, Player::three, and Player::two.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOwnKickoffAngleByObstacles | ( | ) |
A function for the symbol "own-kickoff.angle" by obstacle model
Definition at line 205 of file GT2004ConfigurationSymbols.cpp.
References Pose2D::getAngle(), and obstacleKickoff.
double GT2004ConfigurationSymbols::getOwnKickoffX | ( | ) |
A function for the symbol "own-kickoff.x"
Definition at line 161 of file GT2004ConfigurationSymbols.cpp.
References currentKickoff, defensiveSupporter, Player::four, getPlayer(), goalie, offensiveSupporterOwnKickoff, Player::one, strikerOwnKickoff, Player::three, Player::two, and Vector2< V >::x.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOwnKickoffXByObstacles | ( | ) |
A function for the symbol "own-kickoff.x" by obstacle model
Definition at line 195 of file GT2004ConfigurationSymbols.cpp.
References obstacleKickoff, Pose2D::translation, and Vector2< V >::x.
double GT2004ConfigurationSymbols::getOwnKickoffY | ( | ) |
A function for the symbol "own-kickoff.y"
Definition at line 178 of file GT2004ConfigurationSymbols.cpp.
References currentKickoff, defensiveSupporter, Player::four, getPlayer(), goalie, offensiveSupporterOwnKickoff, Player::one, strikerOwnKickoff, Player::three, Player::two, and Vector2< V >::y.
Referenced by registerSymbols().
double GT2004ConfigurationSymbols::getOwnKickoffYByObstacles | ( | ) |
A function for the symbol "own-kickoff.y" by obstacle model
Definition at line 200 of file GT2004ConfigurationSymbols.cpp.
References obstacleKickoff, Pose2D::translation, and Vector2< V >::y.
void GT2004ConfigurationSymbols::registerSymbols | ( | Xabsl2Engine & | engine | ) |
registers the symbols at an engine
Definition at line 61 of file GT2004ConfigurationSymbols.cpp.
References getCurrentKickoff(), getOpponentKickoffAngle(), getOpponentKickoffX(), getOpponentKickoffY(), getOwnKickoffAngle(), getOwnKickoffX(), getOwnKickoffY(), and Xabsl2Symbols::registerDecimalInputSymbol().
Referenced by GT2004BehaviorControl::registerSymbolsAndBasicBehaviors().
void GT2004ConfigurationSymbols::update | ( | ) |
updates the symbols
Definition at line 81 of file GT2004ConfigurationSymbols.cpp.
References currentKickoff, GameControlData::data, Pose2D::fromAngle(), fromDegrees(), BehaviorControlInterfaces::gameControlData, Pose2D::getAngle(), ObstaclesModel::getDistanceInCorridor(), ObstaclesModel::getDistanceInDirection(), numOfKickoff, obstacleKickoff, BehaviorControlInterfaces::obstaclesModel, RoboCupGameControlData::opponentScore, BehaviorControlInterfaces::robotPose, toDegrees(), Pose2D::translation, Vector2< V >::x, and Vector2< V >::y.
Referenced by GT2004BehaviorControl::execute().
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().
Vector2<double> GT2004ConfigurationSymbols::defensiveSupporter [private] |
the defensive supporter start position
Definition at line 60 of file GT2004ConfigurationSymbols.h.
Referenced by getOpponentKickoffX(), getOpponentKickoffY(), getOwnKickoffX(), getOwnKickoffY(), and GT2004ConfigurationSymbols().
Vector2<double> GT2004ConfigurationSymbols::goalie [private] |
the goalie start position
Definition at line 57 of file GT2004ConfigurationSymbols.h.
Referenced by getOpponentKickoffX(), getOpponentKickoffY(), getOwnKickoffX(), getOwnKickoffY(), and GT2004ConfigurationSymbols().
double GT2004ConfigurationSymbols::goToKickoffMaxSpeed [private] |
the max speed with which the robot walks to its kickoff position
Definition at line 54 of file GT2004ConfigurationSymbols.h.
kickoff-position of striker based on obstacle-model
Definition at line 82 of file GT2004ConfigurationSymbols.h.
Referenced by getOwnKickoffAngleByObstacles(), getOwnKickoffXByObstacles(), getOwnKickoffYByObstacles(), and update().
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::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::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::strikerOwnKickoff[numOfKickoff] [private] |
the striker start position at own kickoff
Definition at line 72 of file GT2004ConfigurationSymbols.h.
Referenced by getOwnKickoffX(), getOwnKickoffY(), and 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 getOwnKickoffAngle(), and GT2004ConfigurationSymbols().