#include <iostream>
#include "Geometry.h"
#include "ServerSettings.h"
Include dependency graph for SoccerTypes.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
File: SenseHandler.h Project: Robocup Soccer Simulation Team: UvA Trilearn Authors: Jelle Kok Created: 28/11/2000 Last Revision: $ID$ Contents: This file contains the different enumerations and constants that are important in the Soccer Server. Furthermore it contains the class SoccerCommand which is used to denote the different possible soccer commands and the class SoccerTypes that contains all kind of static methods to translate text strings that are received from the server into the soccer types (=enumerations) that are defined here. Finally it contains the Time class which holds a two-tuple that represents the time in the soccer server.
Changes
Date Author Comment 28/11/2000 Jelle Kok Initial version created
Definition in file SoccerTypes.h.
|
default teamname for opponent Definition at line 75 of file SoccerTypes.h. Referenced by WorldModel::show(). |
|
default teamname for own team Definition at line 74 of file SoccerTypes.h. Referenced by AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show(). |
|
maximum number of flags on field Definition at line 72 of file SoccerTypes.h. Referenced by WorldModel::resetTimeObjects(), and WorldModel::WorldModel(). |
|
Maximum number of hetero players Definition at line 68 of file SoccerTypes.h. Referenced by BasicCoach::mainLoopNormal(), and SoccerCommand::makeChangePlayerCommand(). |
|
maximum number of lines on field Definition at line 73 of file SoccerTypes.h. Referenced by WorldModel::resetTimeObjects(), and WorldModel::WorldModel(). |
|
maximum message size from server Definition at line 69 of file SoccerTypes.h. Referenced by BasicCoach::BasicCoach(), SenseHandler::handleMessagesFromServer(), Player::handleStdin(), BasicCoach::handleStdin(), WorldModel::logCoordInfo(), WorldModel::logDrawBallInfo(), WorldModel::logDrawInfo(), main(), Player::mainLoop(), Player::Player(), WorldModel::processLastSeeMessage(), WorldModel::processPlayerMessage(), ActHandler::sendCommand(), ActHandler::sendCommandDirect(), and ActHandler::sendCommands(). |
|
Maximum number of opponents Definition at line 67 of file SoccerTypes.h. Referenced by WorldModel::getDirectionOfWidestAngle(), WorldModel::getLastOpponentDefender(), WorldModel::getOppGoalieType(), WorldModel::mapUnknownPlayers(), WorldModel::resetTimeObjects(), WorldModel::show(), and WorldModel::WorldModel(). |
|
maximum size of say message Definition at line 70 of file SoccerTypes.h. Referenced by Player::mainLoop(), Player::makeBallInfo(), Player::sayOppAttackerStatus(), ActHandler::sendCommands(), and WorldModel::setCommunicationString(). |
|
maximum length of teamname Definition at line 71 of file SoccerTypes.h. Referenced by main(), AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show(). |
|
Maximum number of teammates Definition at line 66 of file SoccerTypes.h. Referenced by WorldModel::getClosestPlayerInFormationTo(), WorldModel::getOwnGoalieType(), WorldModel::getStrategicPosition(), SoccerCommand::makeAttentionToCommand(), SoccerCommand::makeChangePlayerCommand(), WorldModel::mapUnknownPlayers(), Formations::readFormations(), WorldModel::resetTimeObjects(), WorldModel::show(), FormationTypeInfo::show(), and WorldModel::WorldModel(). |
|
length of the penalty area Definition at line 79 of file SoccerTypes.h. Referenced by Player::deMeer5_goalie(), and SoccerTypes::getGlobalPositionFlag(). |
|
width of the penalty area Definition at line 80 of file SoccerTypes.h. Referenced by WorldModel::calculateStateBall(), Player::deMeer5_goalie(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOuterPositionInField(), WorldModel::isInOwnPenaltyArea(), and WorldModel::isInTheirPenaltyArea(). |
|
penalty line of the opponent team Definition at line 81 of file SoccerTypes.h. Referenced by Player::amIAgentToSaySomething(), WorldModel::calculateStateBall(), BasicPlayer::clearBall(), WorldModel::getLastOpponentDefender(), WorldModel::getOppGoalieType(), WorldModel::getOuterPositionInField(), WorldModel::getOwnGoalieType(), WorldModel::getStrategicPosition(), BasicPlayer::interceptClose(), WorldModel::isBallHeadingToGoal(), WorldModel::isBeforeGoal(), Player::mainLoop(), BasicPlayer::outplayOpponent(), and WorldModel::updateDynamicObjectForNextCycle(). |
|
|
margin next to the pitch Definition at line 78 of file SoccerTypes.h. Referenced by SoccerTypes::getGlobalPositionFlag(), and SoccerCommand::makeMoveCommand(). |
|
width of the pitch Definition at line 77 of file SoccerTypes.h. Referenced by WorldModel::calculateStateBall(), BasicPlayer::clearBall(), BasicPlayer::dribble(), BasicPlayer::getDribblePoint(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOuterPositionInField(), Formations::getStrategicPosition(), WorldModel::isInField(), BasicPlayer::kickBallCloseToBody(), SoccerCommand::makeMoveCommand(), and WorldModel::updateAll(). |
|
The ActionT enumeration contains different (high-level) actions.
Definition at line 400 of file SoccerTypes.h. |
|
The BallStatus enumeration contains the status of the ball. This is returned when the coach has issued the check_ball message.
Definition at line 391 of file SoccerTypes.h. Referenced by SoccerTypes::getBallStatusFromStr(), SoccerTypes::getBallStatusStr(), WorldModel::getCheckBallStatus(), and WorldModel::setCheckBallStatus(). |
|
The ClearBallT enumeration contains different clear ball possibilities.
Definition at line 445 of file SoccerTypes.h. Referenced by BasicPlayer::clearBall(). |
|
The CommandT enumeration contains the different types for the SoccerCommand that are possible.
Definition at line 331 of file SoccerTypes.h. Referenced by SoccerTypes::getCommandStr(), WorldModel::getNrOfCommands(), SoccerTypes::isPrimaryCommand(), SoccerCommand::makeCommand(), WorldModel::setNrOfCommands(), and SoccerCommand::SoccerCommand(). |
|
The DirectionT enumeration contains the different directions
Definition at line 484 of file SoccerTypes.h. Referenced by SoccerTypes::getAngleFromDirection(), and BasicPlayer::leadingPass(). |
|
The DribbleT enumeration contains different dribble possibilities.
Definition at line 430 of file SoccerTypes.h. Referenced by BasicPlayer::dribble(), and BasicPlayer::getDribblePoint(). |
|
The FeaturesT enumeration contains different features that can be saved. In this case, features represent specific information concerning the current state. When specific information is calculated once (e.g., the fastest opponent to the ball). This information can be stored. In the next request for this information, the stored result is immediately returned.
Definition at line 470 of file SoccerTypes.h. Referenced by WorldModel::createInterceptFeatures(), WorldModel::getFastestInSetTo(), WorldModel::getFeature(), BasicPlayer::interceptClose(), WorldModel::isFeatureRelevant(), WorldModel::predictCommandToInterceptBall(), WorldModel::predictNrCyclesToObject(), and WorldModel::setFeature(). |
|
The FormationT enumeration contains the different formation types that are defined.
Definition at line 378 of file SoccerTypes.h. Referenced by Formations::Formations(), WorldModel::getClosestPlayerInFormationTo(), Formations::getFormation(), FormationTypeInfo::getFormationType(), Formations::getPlayerType(), WorldModel::getStrategicPosition(), Formations::getStrategicPosition(), main(), Formations::setFormation(), and FormationTypeInfo::setFormationType(). |
|
The MarkT enumeration contains different marking techniques.
Definition at line 422 of file SoccerTypes.h. Referenced by WorldModel::getMarkingPosition(), BasicPlayer::getMarkingPosition(), and BasicPlayer::mark(). |
|
|
ObjectT is an enumeration of all possible objects that are part of the RoboCup soccer simulation. The class SoccerTypes contains different methods to easily work with these objects and convert them to text strings and text strings to ObjectT.
Definition at line 102 of file SoccerTypes.h. Referenced by Player::amIAgentToSaySomething(), SenseHandler::analyzeChangePlayerTypeMessage(), SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeSeeGlobalMessage(), WorldModel::calculateAngleAgentWithPos(), WorldModel::calculatePosAgentWith2Flags(), WorldModel::calculateStateAgent(), WorldModel::calculateStateAgent2(), WorldModel::calculateStateAgent3(), WorldModel::calculateStatePlayer(), WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesAgent(), WorldModel::coordinateWith(), WorldModel::createInterceptFeatures(), WorldModel::drawCoordinationGraph(), Feature::Feature(), WorldModel::getActualTurnAngle(), WorldModel::getAgentObjectType(), WorldModel::getAngleForTurn(), WorldModel::getClosestInSetTo(), WorldModel::getClosestPlayerInFormationTo(), WorldModel::getClosestRelativeInSet(), WorldModel::getConfidence(), WorldModel::getDashPowerRate(), Player::getDeadBallPosition(), WorldModel::getDirectionOfWidestAngle(), WorldModel::getEffectiveMaxSpeed(), WorldModel::getEffortMax(), BasicPlayer::getEndSpeedForPass(), WorldModel::getFastestInSetTo(), WorldModel::getFirstEmptySpotInSet(), WorldModel::getFurthestInSetTo(), WorldModel::getFurthestRelativeInSet(), WorldModel::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), WorldModel::getGlobalArmDirection(), WorldModel::getGlobalBodyAngle(), WorldModel::getGlobalBodyAngleLastSee(), WorldModel::getGlobalNeckAngle(), WorldModel::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getGlobalPositionLastSee(), WorldModel::getGlobalVelocity(), WorldModel::getGlobalVelocityLastSee(), SoccerTypes::getGoalOpponent(), WorldModel::getHeteroInfoPlayer(), WorldModel::getHeteroPlayerType(), SoccerTypes::getIndex(), WorldModel::getInertiaMoment(), BasicPlayer::getInterceptionPointBall(), WorldModel::getLastOpponentDefender(), WorldModel::getListCloseOpponents(), BasicPlayer::getMarkingPosition(), WorldModel::getMaximalKickDist(), PlayerObject::getMaxRange(), WorldModel::getMaxRangeUnknownPlayer(), WorldModel::getMaxTraveledDistance(), PlayerObject::getMinRange(), WorldModel::getNrInSetInCircle(), WorldModel::getNrInSetInCone(), WorldModel::getNrInSetInRectangle(), Feature::getObject(), WorldModel::getObjectFocus(), SoccerTypes::getObjectFromStr(), WorldModel::getObjectPtrFromType(), SoccerTypes::getObjectStr(), WorldModel::getOppGoalieType(), SoccerTypes::getOpponentObjectFromIndex(), SoccerTypes::getOwnGoal(), WorldModel::getOwnGoalieType(), WorldModel::getPlayerDecay(), Formations::getPlayerInFormation(), WorldModel::getPlayerSize(), WorldModel::getPlayerSpeedMax(), WorldModel::getPlayerType(), Formations::getPlayerType(), WorldModel::getPosClosestOpponentTo(), WorldModel::getPosOpponentGoal(), WorldModel::getPosOwnGoal(), WorldModel::getProbTackleClosestOpp(), WorldModel::getProbTackleSucceeds(), WorldModel::getRelativeAngle(), WorldModel::getRelativeDistance(), WorldModel::getRelativePosition(), WorldModel::getSecondClosestInSetTo(), WorldModel::getSecondClosestRelativeInSet(), WorldModel::getStaminaIncMax(), WorldModel::getStrategicPosition(), WorldModel::getSubstitutedOpp(), WorldModel::getTackleExpires(), SoccerTypes::getTeammateObjectFromIndex(), BasicPlayer::getThroughPassShootingPoint(), WorldModel::getTimeChangeInformation(), WorldModel::getTimeGlobalAngles(), WorldModel::getTimeGlobalArmDirection(), WorldModel::getTimeGlobalPosition(), WorldModel::getTimeGlobalPositionLastSee(), WorldModel::getTimeGlobalVelocity(), WorldModel::getTimeLastSeen(), Object::getType(), BasicPlayer::holdBall(), WorldModel::initParticlesAgent(), BasicPlayer::interceptClose(), SoccerTypes::isBall(), WorldModel::isBallInOurPossesion(), WorldModel::isConfidenceGood(), WorldModel::isConfidenceVeryGood(), WorldModel::isEmptySpace(), SoccerTypes::isFlag(), SoccerTypes::isGoal(), SoccerTypes::isGoalie(), WorldModel::isInOwnPenaltyArea(), WorldModel::isInPlayerSet(), PlayerObject::isInRange(), SoccerTypes::isInSet(), WorldModel::isInTheirPenaltyArea(), WorldModel::isKnownPlayer(), SoccerTypes::isKnownPlayer(), SoccerTypes::isLine(), WorldModel::isOnside(), SoccerTypes::isOpponent(), WorldModel::isOpponentAtAngle(), SoccerTypes::isPlayer(), SoccerTypes::isTeammate(), WorldModel::isVisible(), WorldModel::iterateObjectNext(), WorldModel::iterateObjectStart(), BasicPlayer::kickTo(), BasicPlayer::leadingPass(), BasicPlayer::listenTo(), WorldModel::logCoordInfo(), WorldModel::logDrawInfo(), WorldModel::logObjectInformation(), WorldModel::mapUnknownPlayers(), BasicPlayer::mark(), BasicPlayer::outplayOpponent(), WorldModel::predictCommandToInterceptBall(), WorldModel::predictCommandToMoveToPos(), WorldModel::predictCommandTurnTowards(), WorldModel::predictNrCyclesForDistance(), WorldModel::predictNrCyclesToObject(), WorldModel::predictNrCyclesToPoint(), WorldModel::predictObjectStateAfterCommand(), WorldModel::predictPosAfterNrCycles(), WorldModel::predictStateAfterCommand(), WorldModel::predictStateAfterDash(), WorldModel::predictStateAfterTurn(), WorldModel::processLastSeeMessage(), WorldModel::processNewObjectInfo(), WorldModel::processPerfectHearInfo(), WorldModel::processPlayerMessage(), WorldModel::processSeeGlobalInfo(), WorldModel::processUnsureHearInfo(), WorldModel::removeGhosts(), Player::sayOppAttackerStatus(), WorldModel::setAgentObjectType(), Feature::setFeature(), WorldModel::setHeteroPlayerType(), WorldModel::setIsKnownPlayer(), Feature::setObject(), WorldModel::setObjectFocus(), PlayerObject::setPossibleRange(), WorldModel::setSubstitutedOpp(), WorldModel::setTimeLastSeen(), Object::setType(), WorldModel::show(), BasicPlayer::throughPass(), BasicPlayer::turnBodyToObject(), BasicPlayer::turnNeckToObject(), BasicPlayer::turnWithBallTo(), WorldModel::updateAfterSeeMessage(), WorldModel::updateAfterSenseMessage(), WorldModel::updateAll(), WorldModel::updateDynamicObjectAfterSee(), WorldModel::updateDynamicObjectForNextCycle(), WorldModel::updateObjectRelativeFromGlobal(), and WorldModel::updateRelativeFromGlobal(). |
|
The PassT enumeration contains different passing possibilities.
Definition at line 438 of file SoccerTypes.h. Referenced by BasicPlayer::directPass(). |
|
The PlayerSetT enumeration contains different sets of playertypes that are defined in a formation. Possible sets are all midfielders, etc.
Definition at line 369 of file SoccerTypes.h. Referenced by WorldModel::getClosestPlayerInFormationTo(), WorldModel::isInPlayerSet(), and SoccerTypes::isPlayerTypeInSet(). |
|
The PlayerT enumeration contains the different playertypes that are defined in a formation. This should not be confused with the later introducted player_types in soccerserver 7.xx that denotes the different possible heterogeneous players. A player type in the context PlayerT denotes the kind of player (midfielder, attacker) on the field. Its role on the pitch.
Definition at line 354 of file SoccerTypes.h. Referenced by WorldModel::getPlayerType(), Formations::getPlayerType(), FormationTypeInfo::getPlayerType(), PlayerTypeInfo::getPlayerType(), SoccerTypes::isPlayerTypeInSet(), PlayerTypeInfo::PlayerTypeInfo(), Formations::readFormations(), FormationTypeInfo::setPlayerType(), PlayerTypeInfo::setPlayerType(), and PlayerTypeInfo::setValues(). |
|
The PlayModeT enumeration contains all playmodes of the soccer playmode. The associated string values can be returned using the methods in the SoccerTypes class
Definition at line 212 of file SoccerTypes.h. Referenced by SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeHearMessage(), WorldModel::getPlayMode(), SoccerTypes::getPlayModeFromRefereeMessage(), SoccerTypes::getPlayModeFromStr(), SoccerTypes::getPlayModeStr(), WorldModel::isBackPassThem(), WorldModel::isBackPassUs(), WorldModel::isBeforeKickOff(), WorldModel::isCornerKickThem(), WorldModel::isCornerKickUs(), WorldModel::isDeadBallThem(), WorldModel::isDeadBallUs(), WorldModel::isFreeKickFaultThem(), WorldModel::isFreeKickFaultUs(), WorldModel::isFreeKickThem(), WorldModel::isFreeKickUs(), WorldModel::isGoalKickThem(), WorldModel::isGoalKickUs(), WorldModel::isKickInThem(), WorldModel::isKickInUs(), WorldModel::isKickOffThem(), WorldModel::isKickOffUs(), WorldModel::isOffsideThem(), WorldModel::isOffsideUs(), WorldModel::isPenaltyThem(), WorldModel::isPenaltyUs(), Player::performPenalty(), and WorldModel::setPlayMode(). |
|
The RefereeT enumeration contains all messages that the referee can sent. The SoccerTypes class contains different methods to convert these messages to the corresponding playmode.
Definition at line 250 of file SoccerTypes.h. Referenced by SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeHearMessage(), SoccerTypes::getPlayModeFromRefereeMessage(), SoccerTypes::getRefereeMessageFromStr(), SoccerTypes::getRefereeMessageStr(), and WorldModel::processCatchedBall(). |
|
The SideT enumeration contains the two sides Definition at line 323 of file SoccerTypes.h. Referenced by BasicPlayer::clearBall(), FixedObject::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), FixedObject::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), SoccerTypes::getGoalOpponent(), SoccerTypes::getOwnGoal(), WorldModel::getPosOwnGoal(), WorldModel::getSide(), SoccerTypes::getSideFromStr(), WorldModel::getSidePenalty(), SoccerTypes::getSideStr(), WorldModel::isFullStateOn(), WorldModel::setSide(), and WorldModel::setSidePenalty(). |
|
The SucceedT enumeration contains the different succeed rate probabilites
Definition at line 499 of file SoccerTypes.h. |
|
The TiredNessT enumeration contains different values that indicate how tired an agent is.
Definition at line 455 of file SoccerTypes.h. Referenced by WorldModel::getAgentTiredNess(), and Stamina::getTiredNess(). |
|
The ViewAngleT enumeration contains the different view angles that are possible for a player
Definition at line 307 of file SoccerTypes.h. Referenced by SenseHandler::analyzeFullStateMessage(), WorldModel::getAgentViewAngle(), WorldModel::getAgentViewFrequency(), SoccerTypes::getHalfViewAngleValue(), AgentObject::getViewAngle(), SoccerTypes::getViewAngleFromStr(), SoccerTypes::getViewAngleStr(), SoccerCommand::makeCommand(), WorldModel::processLastSenseMessage(), WorldModel::processNewAgentInfo(), WorldModel::setAgentViewAngle(), AgentObject::setViewAngle(), and SoccerCommand::SoccerCommand(). |
|
The ViewQualityT enumeration contains the different view qualities possible for a player.
Definition at line 316 of file SoccerTypes.h. Referenced by SenseHandler::analyzeFullStateMessage(), WorldModel::getAgentViewFrequency(), WorldModel::getAgentViewQuality(), AgentObject::getViewQuality(), SoccerTypes::getViewQualityFromStr(), SoccerTypes::getViewQualityStr(), SoccerCommand::makeCommand(), WorldModel::processLastSenseMessage(), WorldModel::processNewAgentInfo(), WorldModel::setAgentViewQuality(), AgentObject::setViewQuality(), and SoccerCommand::SoccerCommand(). |
|
indicates unknown angle Definition at line 89 of file SoccerTypes.h. Referenced by AgentObject::AgentObject(), SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeSeeGlobalMessage(), WorldModel::calculateAngleAgentWithPos(), WorldModel::calculateStateAgent(), WorldModel::getDirectionOfWidestAngle(), WorldModel::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), WorldModel::getGlobalArmDirection(), WorldModel::getGlobalBodyAngle(), WorldModel::getGlobalBodyAngleLastSee(), WorldModel::getGlobalNeckAngle(), WorldModel::initParticlesBall(), PlayerObject::PlayerObject(), WorldModel::processLastSeeMessage(), and WorldModel::processNewObjectInfo(). |
|
indicates unknown double Definition at line 88 of file SoccerTypes.h. Referenced by SenseHandler::analyzeFullStateMessage(), SenseHandler::analyzeSeeGlobalMessage(), WorldModel::averageParticles(), WorldModel::calculateStateAgent2(), WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesBall(), DynamicObject::DynamicObject(), Feature::Feature(), Player::getDeadBallPosition(), WorldModel::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getGlobalPositionLastSee(), WorldModel::getGlobalVelocity(), WorldModel::getGlobalVelocityLastSee(), WorldModel::getOppGoalieType(), WorldModel::getOwnGoalieType(), WorldModel::getPosClosestOpponentTo(), WorldModel::getRelativeAngle(), WorldModel::getRelativeDistance(), WorldModel::getRelativePosition(), WorldModel::initParticlesBall(), SoccerCommand::makeCommand(), PlayerTypeInfo::PlayerTypeInfo(), WorldModel::predictCommandToInterceptBall(), WorldModel::predictNrCyclesToObject(), WorldModel::processLastSeeMessage(), WorldModel::processNewObjectInfo(), and SoccerCommand::SoccerCommand(). |
|
indicates unknown int Definition at line 90 of file SoccerTypes.h. Referenced by WorldModel::predictCommandToInterceptBall(). |
|
indicates unknown messagenr Definition at line 92 of file SoccerTypes.h. |
|
indicates unknown time Definition at line 91 of file SoccerTypes.h. Referenced by Feature::Feature(), WorldModel::getTimeGlobalPosition(), WorldModel::getTimeGlobalPositionLastSee(), WorldModel::getTimeGlobalVelocity(), and WorldModel::WorldModel(). |