Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SoccerTypes.h File Reference

#include <iostream.h>
#include "Geometry.h"
#include "ServerSettings.h"

Include dependency graph for SoccerTypes.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  SoccerCommand
class  SoccerTypes
class  Time

Defines

#define MAX_TEAMMATES   11
#define MAX_OPPONENTS   11
#define MAX_PLAYER_TYPES   8
#define MAX_FORMATION_TYPES   6
#define MAX_HETERO_PLAYERS   7
#define MAX_COMMANDS   10
#define MAX_MSG   2048
#define MAX_SAY_MSG   512
#define MAX_TEAM_NAME_LENGTH   64
#define MAX_FLAGS   55
#define MAX_LINES   4
#define DEFAULT_TEAM_NAME   "Team_L"
#define DEFAULT_OPPONENT_NAME   "Team_R"
#define PITCH_LENGTH   105.0
#define PITCH_WIDTH   68.0
#define PITCH_MARGIN   5.0
#define PENALTY_AREA_LENGTH   16.5
#define PENALTY_AREA_WIDTH   40.35
#define PENALTY_X   (PITCH_LENGTH/2.0-PENALTY_AREA_LENGTH)

Enumerations

enum  ObjectT {
  OBJECT_BALL, OBJECT_GOAL_L, OBJECT_GOAL_R, OBJECT_GOAL_UNKNOWN,
  OBJECT_LINE_L, OBJECT_LINE_R, OBJECT_LINE_B, OBJECT_LINE_T,
  OBJECT_FLAG_L_T, OBJECT_FLAG_T_L_50, OBJECT_FLAG_T_L_40, OBJECT_FLAG_T_L_30,
  OBJECT_FLAG_T_L_20, OBJECT_FLAG_T_L_10, OBJECT_FLAG_T_0, OBJECT_FLAG_C_T,
  OBJECT_FLAG_T_R_10, OBJECT_FLAG_T_R_20, OBJECT_FLAG_T_R_30, OBJECT_FLAG_T_R_40,
  OBJECT_FLAG_T_R_50, OBJECT_FLAG_R_T, OBJECT_FLAG_R_T_30, OBJECT_FLAG_R_T_20,
  OBJECT_FLAG_R_T_10, OBJECT_FLAG_G_R_T, OBJECT_FLAG_R_0, OBJECT_FLAG_G_R_B,
  OBJECT_FLAG_R_B_10, OBJECT_FLAG_R_B_20, OBJECT_FLAG_R_B_30, OBJECT_FLAG_R_B,
  OBJECT_FLAG_B_R_50, OBJECT_FLAG_B_R_40, OBJECT_FLAG_B_R_30, OBJECT_FLAG_B_R_20,
  OBJECT_FLAG_B_R_10, OBJECT_FLAG_C_B, OBJECT_FLAG_B_0, OBJECT_FLAG_B_L_10,
  OBJECT_FLAG_B_L_20, OBJECT_FLAG_B_L_30, OBJECT_FLAG_B_L_40, OBJECT_FLAG_B_L_50,
  OBJECT_FLAG_L_B, OBJECT_FLAG_L_B_30, OBJECT_FLAG_L_B_20, OBJECT_FLAG_L_B_10,
  OBJECT_FLAG_G_L_B, OBJECT_FLAG_L_0, OBJECT_FLAG_G_L_T, OBJECT_FLAG_L_T_10,
  OBJECT_FLAG_L_T_20, OBJECT_FLAG_L_T_30, OBJECT_FLAG_P_L_T, OBJECT_FLAG_P_L_C,
  OBJECT_FLAG_P_L_B, OBJECT_FLAG_P_R_T, OBJECT_FLAG_P_R_C, OBJECT_FLAG_P_R_B,
  OBJECT_FLAG_C, OBJECT_TEAMMATE_1, OBJECT_TEAMMATE_2, OBJECT_TEAMMATE_3,
  OBJECT_TEAMMATE_4, OBJECT_TEAMMATE_5, OBJECT_TEAMMATE_6, OBJECT_TEAMMATE_7,
  OBJECT_TEAMMATE_8, OBJECT_TEAMMATE_9, OBJECT_TEAMMATE_10, OBJECT_TEAMMATE_11,
  OBJECT_TEAMMATE_UNKNOWN, OBJECT_OPPONENT_1, OBJECT_OPPONENT_2, OBJECT_OPPONENT_3,
  OBJECT_OPPONENT_4, OBJECT_OPPONENT_5, OBJECT_OPPONENT_6, OBJECT_OPPONENT_7,
  OBJECT_OPPONENT_8, OBJECT_OPPONENT_9, OBJECT_OPPONENT_10, OBJECT_OPPONENT_11,
  OBJECT_OPPONENT_UNKNOWN, OBJECT_PLAYER_UNKNOWN, OBJECT_UNKNOWN, OBJECT_TEAMMATE_GOALIE,
  OBJECT_OPPONENT_GOALIE, OBJECT_ILLEGAL, OBJECT_MAX_OBJECTS
}
enum  ObjectSetT {
  OBJECT_SET_TEAMMATES, OBJECT_SET_OPPONENTS, OBJECT_SET_PLAYERS, OBJECT_SET_FLAGS,
  OBJECT_SET_LINES, OBJECT_SET_ILLEGAL
}
enum  PlayModeT {
  PM_BEFORE_KICK_OFF, PM_KICK_OFF_LEFT, PM_KICK_OFF_RIGHT, PM_KICK_IN_LEFT,
  PM_KICK_IN_RIGHT, PM_CORNER_KICK_LEFT, PM_CORNER_KICK_RIGHT, PM_GOAL_KICK_LEFT,
  PM_GOAL_KICK_RIGHT, PM_GOAL_LEFT, PM_GOAL_RIGHT, PM_FREE_KICK_LEFT,
  PM_FREE_KICK_RIGHT, PM_OFFSIDE_LEFT, PM_OFFSIDE_RIGHT, PM_PLAY_ON,
  PM_TIME_OVER, PM_FROZEN, PM_QUIT, PM_ILLEGAL
}
enum  RefereeMessageT {
  REFC_ILLEGAL, REFC_BEFORE_KICK_OFF, REFC_KICK_OFF_LEFT, REFC_KICK_OFF_RIGHT,
  REFC_KICK_IN_LEFT, REFC_KICK_IN_RIGHT, REFC_CORNER_KICK_LEFT, REFC_CORNER_KICK_RIGHT,
  REFC_GOAL_KICK_LEFT, REFC_GOAL_KICK_RIGHT, REFC_FREE_KICK_LEFT, REFC_FREE_KICK_RIGHT,
  REFC_PLAY_ON, REFC_TIME_OVER, REFC_FROZEN, REFC_QUIT,
  REFC_OFFSIDE_LEFT, REFC_OFFSIDE_RIGHT, REFC_HALF_TIME, REFC_TIME_UP,
  REFC_TIME_UP_WITHOUT_A_TEAM, REFC_TIME_EXTENDED, REFC_FOUL_LEFT, REFC_FOUL_RIGHT,
  REFC_GOAL_LEFT, REFC_GOAL_RIGHT, REFC_DROP_BALL, REFC_GOALIE_CATCH_BALL_LEFT,
  REFC_GOALIE_CATCH_BALL_RIGHT
}
enum  ViewAngleT { VA_NARROW, VA_NORMAL, VA_WIDE, VA_ILLEGAL }
enum  ViewQualityT { VQ_HIGH, VQ_LOW, VQ_ILLEGAL }
enum  SideT { SIDE_LEFT, SIDE_RIGHT, SIDE_ILLEGAL }
enum  CommandT {
  CMD_ILLEGAL, CMD_DASH, CMD_TURN, CMD_TURNNECK,
  CMD_CHANGEVIEW, CMD_CATCH, CMD_KICK, CMD_MOVE,
  CMD_SENSEBODY, CMD_SAY, CMD_CHANGEPLAYER, CMD_MAX_COMMANDS
}
enum  PlayerT {
  PT_ILLEGAL, PT_GOALKEEPER, PT_DEFENDER_SWEEPER, PT_DEFENDER_WING,
  PT_MIDFIELDER_CENTER, PT_MIDFIELDER_WING, PT_ATTACKER_WING, PT_ATTACKER
}
enum  FormationT {
  FT_ILLEGAL, FT_INITIAL, FT_STANDARD, FT_DEFENSIVE,
  FT_OPEN_DEFENSIVE, FT_ATTACKING
}
enum  BallStatusT {
  BS_ILLEGAL, BS_IN_FIELD, BS_GOAL_LEFT, BS_GOAL_RIGHT,
  BS_OUT_OF_FIELD
}
enum  ActionT {
  ACT_ILLEGAL, ACT_SEARCH_BALL, ACT_KICK_BALL, ACT_CATCH_BALL,
  ACT_INTERCEPT, ACT_MARK, ACT_TELEPORT_TO_STRATEGIC_POSITION, ACT_WATCH_BALL,
  ACT_GOTO_STRATEGIC_POSITION, ACT_TURN_BODY_TO_CENTER, ACT_MOVE_TO_DEAD_BALL_POSITION, ACT_INTERCEPT_SCORING_ATTEMPT,
  ACT_DEFEND_GOALLINE, ACT_TELEPORT_AFTER_CATCH
}
enum  MarkT { MARK_ILLEGAL, MARK_GOAL, MARK_BISECTOR, MARK_BALL }
enum  DribbleT { DRIBBLE_ILLEGAL, DRIBBLE_WITHBALL, DRIBBLE_SLOW, DRIBBLE_FAST }
enum  PassT { PASS_ILLEGAL, PASS_FAST, PASS_NORMAL }
enum  ClearBallT { CLEAR_BALL_ILLEGAL, CLEAR_BALL_OFFENSIVE, CLEAR_BALL_DEFENSIVE, CLEAR_BALL_GOAL }

Variables

const double UnknownDoubleValue = -1000.0
const AngDeg UnknownAngleValue = -1000.0
const int UnknownIntValue = -1000
const int UnknownTime = -20
const long UnknownMessageNr = -30


Detailed Description

File:          SenseHandler.h
Project:       Robocup Soccer Simulation Team: UvA Trilearn 2001
Authors:       Jelle Kok and Remco de Boer
Created:       28/11/2000
Last Revision: 06/01/2002
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.

Definition in file SoccerTypes.h.


Define Documentation

#define DEFAULT_OPPONENT_NAME   "Team_R"
 

default teamname for opponent

Definition at line 74 of file SoccerTypes.h.

Referenced by WorldModel::show().

#define DEFAULT_TEAM_NAME   "Team_L"
 

default teamname for own team

Definition at line 73 of file SoccerTypes.h.

Referenced by AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show().

#define MAX_COMMANDS   10
 

nr of commands that can be stored

Definition at line 67 of file SoccerTypes.h.

Referenced by ActHandler::emptyQueue(), WorldModel::isQueuedActionPerformed(), WorldModel::processQueuedCommands(), ActHandler::putCommandInQueue(), ActHandler::sendCommands(), WorldModel::showQueuedCommands(), and WorldModel::updateAgentAndBallAfterSense().

#define MAX_FLAGS   55
 

maximum number of flags on field

Definition at line 71 of file SoccerTypes.h.

Referenced by WorldModel::resetTimeObjects(), and WorldModel::WorldModel().

#define MAX_FORMATION_TYPES   6
 

Maximum number of formations

Definition at line 65 of file SoccerTypes.h.

Referenced by Formations::show().

#define MAX_HETERO_PLAYERS   7
 

Maximum number of hetero players

Definition at line 66 of file SoccerTypes.h.

Referenced by SoccerCommand::makeChangePlayerCommand().

#define MAX_LINES   4
 

maximum number of lines on field

Definition at line 72 of file SoccerTypes.h.

Referenced by WorldModel::resetTimeObjects(), and WorldModel::WorldModel().

#define MAX_MSG   2048
 

maximum message size from server

Definition at line 68 of file SoccerTypes.h.

Referenced by SenseHandler::handleMessagesFromServer(), Player::handleStdin(), main(), Player::Player(), ActHandler::sendCommand(), ActHandler::sendCommandDirect(), and ActHandler::sendCommands().

#define MAX_OPPONENTS   11
 

Maximum number of opponents

Definition at line 62 of file SoccerTypes.h.

Referenced by WorldModel::getDirectionOfWidestAngle(), WorldModel::getOffsideX(), WorldModel::getOppGoalieType(), WorldModel::isCollisionAfterDash(), WorldModel::mapUnknownPlayers(), WorldModel::resetTimeObjects(), Player::sayWorldStatus(), WorldModel::show(), WorldModel::showObjects(), and WorldModel::WorldModel().

#define MAX_PLAYER_TYPES   8
 

Maximum number of player types (in formation!)

Definition at line 63 of file SoccerTypes.h.

Referenced by Formations::readFormations(), and FormationTypeInfo::show().

#define MAX_SAY_MSG   512
 

maximum size of say message

Definition at line 69 of file SoccerTypes.h.

Referenced by Player::sayWorldStatus().

#define MAX_TEAM_NAME_LENGTH   64
 

maximum length of teamname

Definition at line 70 of file SoccerTypes.h.

Referenced by main(), AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show().

#define MAX_TEAMMATES   11
 

Maximum number of teammates

Definition at line 61 of file SoccerTypes.h.

Referenced by WorldModel::getOwnGoalieType(), WorldModel::isCollisionAfterDash(), SoccerCommand::makeChangePlayerCommand(), WorldModel::mapUnknownPlayers(), Formations::readFormations(), WorldModel::resetTimeObjects(), Player::sayWorldStatus(), WorldModel::show(), FormationTypeInfo::show(), WorldModel::showObjects(), and WorldModel::WorldModel().

#define PENALTY_AREA_LENGTH   16.5
 

length of the penalty area

Definition at line 78 of file SoccerTypes.h.

Referenced by Player::deMeer5_goalie(), and SoccerTypes::getGlobalPositionFlag().

#define PENALTY_AREA_WIDTH   40.35
 

width of the penalty area

Definition at line 79 of file SoccerTypes.h.

Referenced by Player::deMeer5_goalie(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOuterPositionInField(), WorldModel::isInOwnPenaltyArea(), and WorldModel::isInTheirPenaltyArea().

#define PENALTY_X   (PITCH_LENGTH/2.0-PENALTY_AREA_LENGTH)
 

penalty line of the opponent team

Definition at line 80 of file SoccerTypes.h.

Referenced by BasicPlayer::clearBall(), WorldModel::getOppGoalieType(), WorldModel::getOuterPositionInField(), WorldModel::getOwnGoalieType(), Player::getStrategicPosition(), and WorldModel::isBallHeadingToGoal().

#define PITCH_LENGTH   105.0
 

length of the pitch

Definition at line 75 of file SoccerTypes.h.

Referenced by Player::amIAgentToSaySomething(), BasicPlayer::clearBall(), BasicPlayer::defendGoalLine(), Player::deMeer5(), Player::deMeer5_goalie(), BasicPlayer::dribble(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOppGoalieType(), WorldModel::getOuterPositionInField(), WorldModel::getOwnGoalieType(), WorldModel::isBallHeadingToGoal(), SoccerCommand::makeMoveCommand(), and BasicPlayer::moveToPosAlongLine().

#define PITCH_MARGIN   5.0
 

margin next to the pitch

Definition at line 77 of file SoccerTypes.h.

Referenced by SoccerTypes::getGlobalPositionFlag(), and SoccerCommand::makeMoveCommand().

#define PITCH_WIDTH   68.0
 

width of the pitch

Definition at line 76 of file SoccerTypes.h.

Referenced by BasicPlayer::clearBall(), BasicPlayer::dribble(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOuterPositionInField(), Formations::getStrategicPosition(), and SoccerCommand::makeMoveCommand().


Enumeration Type Documentation

enum ActionT
 

The ActionT enumeration contains different (high-level) actions.

Enumeration values:
ACT_ILLEGAL  illegal action (default)
ACT_SEARCH_BALL  search for the ball
ACT_KICK_BALL  kick the ball
ACT_CATCH_BALL  catch the ball
ACT_INTERCEPT  intercept the ball
ACT_MARK  mark an opponent
ACT_TELEPORT_TO_STRATEGIC_POSITION  move to a strategic position (move)
ACT_WATCH_BALL  watch the ball
ACT_GOTO_STRATEGIC_POSITION  go to a strategic position (dash)
ACT_TURN_BODY_TO_CENTER  turn body to center of field
ACT_MOVE_TO_DEAD_BALL_POSITION  move to pos in dead ball situation
ACT_INTERCEPT_SCORING_ATTEMPT  intercept ball heading to goal
ACT_DEFEND_GOALLINE  defend the goalline (for goalkeeper)
ACT_TELEPORT_AFTER_CATCH  teleport after catch (for goalkeeper)

Definition at line 349 of file SoccerTypes.h.

enum BallStatusT
 

The BallStatus enumeration contains the status of the ball. This is returned when the coach has issued the check_ball message.

Enumeration values:
BS_ILLEGAL  illegal ball status
BS_IN_FIELD  ball is in the field
BS_GOAL_LEFT  ball is in left goal
BS_GOAL_RIGHT  ball is in right goal
BS_OUT_OF_FIELD  ball is not in the field

Definition at line 340 of file SoccerTypes.h.

Referenced by SoccerTypes::getBallStatusFromStr(), SoccerTypes::getBallStatusStr(), WorldModel::getCheckBallStatus(), and WorldModel::setCheckBallStatus().

enum ClearBallT
 

The ClearBallT enumeration contains different clear ball possibilities.

Enumeration values:
CLEAR_BALL_ILLEGAL  illegal clear ball
CLEAR_BALL_OFFENSIVE  clear ball to the front of the field
CLEAR_BALL_DEFENSIVE  clear ball to the center line of the field
CLEAR_BALL_GOAL  clear ball to position in front of the goal

Definition at line 390 of file SoccerTypes.h.

Referenced by BasicPlayer::clearBall().

enum CommandT
 

The CommandT enumeration contains the different types for the SoccerCommand that are possible.

Enumeration values:
CMD_ILLEGAL  illegal command
CMD_DASH  dash command (player only)
CMD_TURN  turn command (player only)
CMD_TURNNECK  turn_neck command (player only)
CMD_CHANGEVIEW  change view command (player only)
CMD_CATCH  catch command (goalie only)
CMD_KICK  kick command (player only)
CMD_MOVE  move command
CMD_SENSEBODY  sense_body command (player only)
CMD_SAY  say command
CMD_CHANGEPLAYER  change_player command (coach only)
CMD_MAX_COMMANDS  maximum number of commands

Definition at line 295 of file SoccerTypes.h.

Referenced by SoccerTypes::getCommandStr(), WorldModel::getNrOfCommands(), SoccerTypes::isPrimaryCommand(), SoccerCommand::makeCommand(), WorldModel::setNrOfCommands(), and SoccerCommand::SoccerCommand().

enum DribbleT
 

The DribbleT enumeration contains different dribble possibilities.

Enumeration values:
DRIBBLE_ILLEGAL  illegal dribbling
DRIBBLE_WITHBALL  dribble with ball very close
DRIBBLE_SLOW  dribble slowly but kicking ball slightly ahead
DRIBBLE_FAST  dribble fast by kicking ball up front

Definition at line 375 of file SoccerTypes.h.

Referenced by BasicPlayer::dribble().

enum FormationT
 

The FormationT enumeration contains the different formation types that are defined.

Enumeration values:
FT_ILLEGAL  illegal formation type
FT_INITIAL  initial formation type (before kick off)
FT_STANDARD  standard formation type
FT_DEFENSIVE  defensive formation type
FT_OPEN_DEFENSIVE  open defensive formation type
FT_ATTACKING  attacking formation type

Definition at line 329 of file SoccerTypes.h.

Referenced by Formations::Formations(), Formations::getFormation(), FormationTypeInfo::getFormationType(), Formations::setFormation(), and FormationTypeInfo::setFormationType().

enum MarkT
 

The MarkT enumeration contains different marking techniques.

Enumeration values:
MARK_ILLEGAL  illegal marking
MARK_GOAL  mark goal (stand on obj-goal line)
MARK_BISECTOR  mark bisector stand between goal,obj and ball,obj
MARK_BALL  mark ball (stand on obj-ball line)

Definition at line 367 of file SoccerTypes.h.

Referenced by BasicPlayer::getMarkingPosition(), and BasicPlayer::markOpponent().

enum ObjectSetT
 

The ObjectSetT enumerations holds the different object sets, which consists of one or multiple ObjectT types.

Enumeration values:
OBJECT_SET_TEAMMATES  teammates
OBJECT_SET_OPPONENTS  opponents
OBJECT_SET_PLAYERS  players
OBJECT_SET_FLAGS  flags
OBJECT_SET_LINES  lines
OBJECT_SET_ILLEGAL  illegal

Definition at line 198 of file SoccerTypes.h.

Referenced by WorldModel::getClosestInSetTo(), WorldModel::getClosestRelativeInSet(), WorldModel::getFastestInSetTo(), WorldModel::getFirstEmptySpotInSet(), WorldModel::getFurthestInSetTo(), WorldModel::getFurthestRelativeInSet(), WorldModel::getNrInSetInCircle(), WorldModel::getNrInSetInCone(), WorldModel::getNrInSetInRectangle(), WorldModel::getSecondClosestInSetTo(), WorldModel::getSecondClosestRelativeInSet(), SoccerTypes::isInSet(), WorldModel::iterateObjectNext(), and WorldModel::iterateObjectStart().

enum ObjectT
 

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.

Enumeration values:
OBJECT_BALL  Ball
OBJECT_GOAL_L  Left goal
OBJECT_GOAL_R  Right goal
OBJECT_GOAL_UNKNOWN  Unknown goal
OBJECT_LINE_L  Left line
OBJECT_LINE_R  Right line
OBJECT_LINE_B  Bottom line
OBJECT_LINE_T  Top line
OBJECT_FLAG_L_T  Flag left top
OBJECT_FLAG_T_L_50  Flag top left 50
OBJECT_FLAG_T_L_40  Flag top left 40
OBJECT_FLAG_T_L_30  Flag top left 30
OBJECT_FLAG_T_L_20  Flag top left 20
OBJECT_FLAG_T_L_10  Flag top left 10
OBJECT_FLAG_T_0  Flag top left 0
OBJECT_FLAG_C_T  Flag top center
OBJECT_FLAG_T_R_10  Flag top right 10
OBJECT_FLAG_T_R_20  Flag top right 20
OBJECT_FLAG_T_R_30  Flag top right 30
OBJECT_FLAG_T_R_40  Flag top right 40
OBJECT_FLAG_T_R_50  Flag top right 50
OBJECT_FLAG_R_T  Flag right top
OBJECT_FLAG_R_T_30  Flag right top 30
OBJECT_FLAG_R_T_20  Flag right top 20
OBJECT_FLAG_R_T_10  Flag right top 10
OBJECT_FLAG_G_R_T  Flag goal right top
OBJECT_FLAG_R_0  Flag right 0
OBJECT_FLAG_G_R_B  Flag goal right bottom
OBJECT_FLAG_R_B_10  Flag right bottom 10
OBJECT_FLAG_R_B_20  Flag right bottom 20
OBJECT_FLAG_R_B_30  Flag right bottom 30
OBJECT_FLAG_R_B  Flag right bottom
OBJECT_FLAG_B_R_50  Flag bottom right 50
OBJECT_FLAG_B_R_40  Flag bottom right 40
OBJECT_FLAG_B_R_30  Flag bottom right 30
OBJECT_FLAG_B_R_20  Flag bottom right 20
OBJECT_FLAG_B_R_10  Flag bottom right 10
OBJECT_FLAG_C_B  Flag center bottom
OBJECT_FLAG_B_0  Flag bottom 0
OBJECT_FLAG_B_L_10  Flag bottom left 10
OBJECT_FLAG_B_L_20  Flag bottom left 20
OBJECT_FLAG_B_L_30  Flag bottom left 30
OBJECT_FLAG_B_L_40  Flag bottom left 40
OBJECT_FLAG_B_L_50  Flag bottom left 50
OBJECT_FLAG_L_B  Flag left bottom
OBJECT_FLAG_L_B_30  Flag left bottom 30
OBJECT_FLAG_L_B_20  Flag left bottom 20
OBJECT_FLAG_L_B_10  Flag left bottom 10
OBJECT_FLAG_G_L_B  Flag goal left bottom
OBJECT_FLAG_L_0  Flag left 0
OBJECT_FLAG_G_L_T  Flag goal left top
OBJECT_FLAG_L_T_10  Flag left bottom 10
OBJECT_FLAG_L_T_20  Flag left bottom 20
OBJECT_FLAG_L_T_30  Flag left bottom 30
OBJECT_FLAG_P_L_T  Flag penaly left top
OBJECT_FLAG_P_L_C  Flag penaly left center
OBJECT_FLAG_P_L_B  Flag penaly left bottom
OBJECT_FLAG_P_R_T  Flag penaly right top
OBJECT_FLAG_P_R_C  Flag penaly right center
OBJECT_FLAG_P_R_B  Flag penaly right bottom
OBJECT_FLAG_C  Flag center field
OBJECT_TEAMMATE_1  Teammate nr 1
OBJECT_TEAMMATE_2  Teammate nr 2
OBJECT_TEAMMATE_3  Teammate nr 3
OBJECT_TEAMMATE_4  Teammate nr 4
OBJECT_TEAMMATE_5  Teammate nr 5
OBJECT_TEAMMATE_6  Teammate nr 6
OBJECT_TEAMMATE_7  Teammate nr 7
OBJECT_TEAMMATE_8  Teammate nr 8
OBJECT_TEAMMATE_9  Teammate nr 9
OBJECT_TEAMMATE_10  Teammate nr 10
OBJECT_TEAMMATE_11  Teammate nr 11
OBJECT_TEAMMATE_UNKNOWN  Teammate nr unkown
OBJECT_OPPONENT_1  Opponent nr 1
OBJECT_OPPONENT_2  Opponent nr 2
OBJECT_OPPONENT_3  Opponent nr 3
OBJECT_OPPONENT_4  Opponent nr 4
OBJECT_OPPONENT_5  Opponent nr 5
OBJECT_OPPONENT_6  Opponent nr 6
OBJECT_OPPONENT_7  Opponent nr 7
OBJECT_OPPONENT_8  Opponent nr 8
OBJECT_OPPONENT_9  Opponent nr 9
OBJECT_OPPONENT_10  Opponent nr 10
OBJECT_OPPONENT_11  Opponent nr 11
OBJECT_OPPONENT_UNKNOWN  Opponent nr unknown
OBJECT_PLAYER_UNKNOWN  Unknown player
OBJECT_UNKNOWN  Unknown object
OBJECT_TEAMMATE_GOALIE  Goalie of your side
OBJECT_OPPONENT_GOALIE  Goalie of opponent side
OBJECT_ILLEGAL  illegal object
OBJECT_MAX_OBJECTS  maximum nr of objects

Definition at line 102 of file SoccerTypes.h.

Referenced by SenseHandler::analyzePlayerMessage(), SenseHandler::analyzeSeeGlobalMessage(), SenseHandler::analyzeSeeMessage(), WorldModel::calculateAngleAgentWithPos(), WorldModel::calculatePosAgentWith2Flags(), WorldModel::calculateStateAgent(), WorldModel::calculateStateAgent2(), WorldModel::calculateStatePlayer(), WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesAgent(), BasicPlayer::directPass(), WorldModel::getAgentObjectType(), WorldModel::getClosestInSetTo(), WorldModel::getClosestRelativeInSet(), WorldModel::getConfidence(), WorldModel::getDirectionOfWidestAngle(), BasicPlayer::getEndSpeedForPass(), WorldModel::getFastestInSetTo(), WorldModel::getFirstEmptySpotInSet(), WorldModel::getFurthestInSetTo(), WorldModel::getFurthestRelativeInSet(), WorldModel::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), WorldModel::getGlobalBodyAngle(), WorldModel::getGlobalNeckAngle(), WorldModel::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getGlobalVelocity(), SoccerTypes::getGoalOpponent(), SoccerTypes::getIndex(), BasicPlayer::getMarkingPosition(), WorldModel::getNrInSetInCircle(), WorldModel::getNrInSetInCone(), WorldModel::getNrInSetInRectangle(), SoccerTypes::getObjectFromStr(), WorldModel::getObjectPtrFromType(), SoccerTypes::getObjectStr(), WorldModel::getOffsideX(), WorldModel::getOppGoalieType(), SoccerTypes::getOpponentObjectFromIndex(), SoccerTypes::getOwnGoal(), WorldModel::getOwnGoalieType(), WorldModel::getRelativeAngle(), WorldModel::getRelativeDistance(), WorldModel::getRelativePosition(), WorldModel::getSecondClosestInSetTo(), WorldModel::getSecondClosestRelativeInSet(), SoccerTypes::getTeammateObjectFromIndex(), WorldModel::getTimeGlobalAngles(), WorldModel::getTimeGlobalPosition(), WorldModel::getTimeGlobalVelocity(), WorldModel::getTimeLastSeen(), Object::getType(), WorldModel::initParticlesAgent(), SoccerTypes::isBall(), WorldModel::isBallInOurPossesion(), WorldModel::isConfidenceGood(), WorldModel::isConfidenceVeryGood(), SoccerTypes::isFlag(), SoccerTypes::isGoal(), SoccerTypes::isGoalie(), WorldModel::isInOwnPenaltyArea(), 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::leadingPass(), WorldModel::logObjectInformation(), WorldModel::mapUnknownPlayers(), BasicPlayer::markOpponent(), BasicPlayer::outplayOpponent(), WorldModel::predictNrCyclesToObject(), WorldModel::predictNrCyclesToPoint(), WorldModel::predictPosAfterNrCycles(), WorldModel::processNewObjectInfo(), WorldModel::processPerfectHearInfo(), WorldModel::processSeeGlobalInfo(), WorldModel::processUnsureHearInfo(), Player::sayWorldStatus(), WorldModel::setAgentObjectType(), WorldModel::setIsKnownPlayer(), Object::setType(), WorldModel::show(), BasicPlayer::throughPass(), BasicPlayer::turnBodyToObject(), BasicPlayer::turnNeckToObject(), BasicPlayer::turnWithBallTo(), WorldModel::updateAfterSeeMessage(), WorldModel::updateAfterSenseMessage(), WorldModel::updateDynamicObjectAfterSee(), WorldModel::updateDynamicObjectForNextCycle(), WorldModel::updateObjectRelativeFromGlobal(), and WorldModel::updateRelativeFromGlobal().

enum PassT
 

The PassT enumeration contains different passing possibilities.

Enumeration values:
PASS_ILLEGAL  illegal pass
PASS_FAST  pass fast to a teammate
PASS_NORMAL  pass normal to a teammate

Definition at line 383 of file SoccerTypes.h.

Referenced by BasicPlayer::directPass().

enum PlayerT
 

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.

Enumeration values:
PT_ILLEGAL  illegal player type
PT_GOALKEEPER  goalkeeper
PT_DEFENDER_SWEEPER  central defender
PT_DEFENDER_WING  wing defender
PT_MIDFIELDER_CENTER  central midfielder
PT_MIDFIELDER_WING  wing midfielder
PT_ATTACKER_WING  wing attacker
PT_ATTACKER  central attacker

Definition at line 316 of file SoccerTypes.h.

Referenced by Formations::getPlayerType(), FormationTypeInfo::getPlayerType(), PlayerTypeInfo::getPlayerType(), PlayerTypeInfo::PlayerTypeInfo(), Formations::readFormations(), FormationTypeInfo::setPlayerType(), PlayerTypeInfo::setPlayerType(), and PlayerTypeInfo::setValues().

enum PlayModeT
 

The PlayModeT enumeration contains all playmodes of the soccer playmode. The associated string values can be returned using the methods in the SoccerTypes class

Enumeration values:
PM_BEFORE_KICK_OFF  before_kick_off: before kick off
PM_KICK_OFF_LEFT  kick_off_l: kick off for left team
PM_KICK_OFF_RIGHT  kick_off_r: kick off for right team
PM_KICK_IN_LEFT  kick_in_l: kick in for left team
PM_KICK_IN_RIGHT  kick_in_r: kick in for right team
PM_CORNER_KICK_LEFT  corner_kick_l: corner kick left team
PM_CORNER_KICK_RIGHT  corner_kick_r: corner kick right team
PM_GOAL_KICK_LEFT  goal_kick_l: goal kick for left team
PM_GOAL_KICK_RIGHT  goal_kick_r: goal kick for right team
PM_GOAL_LEFT  goal_l: goal scored by team left
PM_GOAL_RIGHT  goal_r: goal scored by team right
PM_FREE_KICK_LEFT  free_kick_l: free kick for left team
PM_FREE_KICK_RIGHT  free_kick_r: free kick for right team
PM_OFFSIDE_LEFT  offside_l: offside for left team z
PM_OFFSIDE_RIGHT  offside_r: offside for right team
PM_PLAY_ON  play_on: play on (during match)
PM_TIME_OVER  time_over: time over (after match)
PM_FROZEN  game play is frozen
PM_QUIT  quit
PM_ILLEGAL  unknown playmode

Definition at line 211 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeHearMessage(), WorldModel::getPlayMode(), SoccerTypes::getPlayModeFromRefereeMessage(), SoccerTypes::getPlayModeFromStr(), SoccerTypes::getPlayModeStr(), and WorldModel::setPlayMode().

enum RefereeMessageT
 

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.

Enumeration values:
REFC_ILLEGAL  unknown message
REFC_BEFORE_KICK_OFF  before_kick_off: before kick off
REFC_KICK_OFF_LEFT  kick_off_l: kick off for left team
REFC_KICK_OFF_RIGHT  kick_off_r: kick off for right team
REFC_KICK_IN_LEFT  kick_in_l: kick in for left team
REFC_KICK_IN_RIGHT  kick_in_r: kick in for right team
REFC_CORNER_KICK_LEFT  corner_kick_l: corner kick left team
REFC_CORNER_KICK_RIGHT  corner_kick_r: corner kick right team
REFC_GOAL_KICK_LEFT  goal_kick_l: goal kick for left team
REFC_GOAL_KICK_RIGHT  goal_kick_r: goal kick for right team
REFC_FREE_KICK_LEFT  free_kick_l: free kick for left team
REFC_FREE_KICK_RIGHT  free_kick_r: free kick for right team
REFC_PLAY_ON  play_on: play on (during match)
REFC_TIME_OVER  time_over: time over (after match)
REFC_FROZEN  frozen: game play is frozen
REFC_QUIT  quit: quit
REFC_OFFSIDE_LEFT  offside_l offside left
REFC_OFFSIDE_RIGHT  offside_r offside right
REFC_HALF_TIME  half_time: it is half time
REFC_TIME_UP  time_up: match has finished
REFC_TIME_UP_WITHOUT_A_TEAM  time_up_without_a_team: match finished
REFC_TIME_EXTENDED  time_extended: time continues (overtime)
REFC_FOUL_LEFT  foul_l: foul made by left
REFC_FOUL_RIGHT  foul_r: foul made by right
REFC_GOAL_LEFT  goal_l: goal made by left
REFC_GOAL_RIGHT  goal_r: goal made by right
REFC_DROP_BALL  drop_ball: ball is dropped
REFC_GOALIE_CATCH_BALL_LEFT  goalie_catch_ball_l: left goalie catch
REFC_GOALIE_CATCH_BALL_RIGHT  goalie_catch_ball_r: right goalie catch

Definition at line 237 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeHearMessage(), SoccerTypes::getPlayModeFromRefereeMessage(), SoccerTypes::getRefereeMessageFromStr(), SoccerTypes::getRefereeMessageStr(), and WorldModel::processCatchedBall().

enum SideT
 

The SideT enumeration contains the two sides

Enumeration values:
SIDE_LEFT  left side
SIDE_RIGHT  right SIDE
SIDE_ILLEGAL  illegal SIDE

Definition at line 287 of file SoccerTypes.h.

Referenced by BasicPlayer::clearBall(), FixedObject::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), FixedObject::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), SoccerTypes::getGoalOpponent(), SoccerTypes::getOwnGoal(), WorldModel::getSide(), SoccerTypes::getSideFromStr(), SoccerTypes::getSideStr(), and WorldModel::setSide().

enum ViewAngleT
 

The ViewAngleT enumeration contains the different view angles that are possible for a player

Enumeration values:
VA_NARROW  view angle narrow
VA_NORMAL  view angle normal
VA_WIDE  view angle wide
VA_ILLEGAL  illegal view angle

Definition at line 271 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeSenseMessage(), WorldModel::getAgentViewAngle(), SoccerTypes::getHalfViewAngleValue(), SoccerTypes::getViewAngleFromStr(), SoccerTypes::getViewAngleStr(), SoccerCommand::makeCommand(), WorldModel::processNewAgentInfo(), AgentObject::setPositionDifference(), AgentObject::show(), and SoccerCommand::SoccerCommand().

enum ViewQualityT
 

The ViewQualityT enumeration contains the different view qualities possible for a player.

Enumeration values:
VQ_HIGH  view quality high
VQ_LOW  view quality low
VQ_ILLEGAL  illegal view quality

Definition at line 280 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeSenseMessage(), WorldModel::getAgentViewQuality(), AgentObject::getViewQuality(), SoccerTypes::getViewQualityFromStr(), SoccerTypes::getViewQualityStr(), SoccerCommand::makeCommand(), WorldModel::processNewAgentInfo(), AgentObject::setViewAngle(), and SoccerCommand::SoccerCommand().


Variable Documentation

const AngDeg UnknownAngleValue = -1000.0
 

indicates unknown angle

Definition at line 89 of file SoccerTypes.h.

Referenced by AgentObject::AgentObject(), SenseHandler::analyzeSeeGlobalMessage(), WorldModel::calculateAngleAgentWithPos(), WorldModel::calculateStateAgent(), WorldModel::checkParticlesBall(), WorldModel::getDirectionOfWidestAngle(), WorldModel::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), WorldModel::getGlobalBodyAngle(), WorldModel::getGlobalNeckAngle(), WorldModel::initParticlesBall(), PlayerObject::PlayerObject(), and WorldModel::processNewObjectInfo().

const double UnknownDoubleValue = -1000.0
 

indicates unknown double

Definition at line 88 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeSeeGlobalMessage(), SenseHandler::analyzeSeeMessage(), WorldModel::averageParticles(), WorldModel::calculateStateAgent2(), WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesBall(), DynamicObject::DynamicObject(), WorldModel::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getGlobalVelocity(), WorldModel::getOppGoalieType(), WorldModel::getOwnGoalieType(), WorldModel::getRelativeAngle(), WorldModel::getRelativeDistance(), WorldModel::getRelativePosition(), WorldModel::initParticlesBall(), SoccerCommand::makeCommand(), PlayerTypeInfo::PlayerTypeInfo(), WorldModel::processNewObjectInfo(), and SoccerCommand::SoccerCommand().

const int UnknownIntValue = -1000
 

indicates unknown int

Definition at line 90 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeSeeMessage().

const long UnknownMessageNr = -30
 

indicates unknown message nr

Definition at line 92 of file SoccerTypes.h.

const int UnknownTime = -20
 

indicates unknown time

Definition at line 91 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeSeeMessage(), WorldModel::getTimeGlobalPosition(), and WorldModel::getTimeGlobalVelocity().


Generated on Thu Mar 7 00:37:50 2002 for UvA Trilearn 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001