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

SoccerTypes.h File Reference

#include <iostream>
#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  Feature
class  SoccerCommand
class  SoccerTypes
class  Time

Defines

#define MAX_TEAMMATES   11
#define MAX_OPPONENTS   11
#define MAX_HETERO_PLAYERS   7
#define MAX_MSG   4096
#define MAX_SAY_MSG   10
#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.32
#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_TEAMMATES_NO_GOALIE,
  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_FAULT_LEFT,
  PM_FREE_KICK_FAULT_RIGHT, PM_FREE_KICK_LEFT, PM_FREE_KICK_RIGHT, PM_INDIRECT_FREE_KICK_RIGHT,
  PM_INDIRECT_FREE_KICK_LEFT, PM_BACK_PASS_LEFT, PM_BACK_PASS_RIGHT, PM_OFFSIDE_LEFT,
  PM_OFFSIDE_RIGHT, PM_PLAY_ON, PM_TIME_OVER, PM_PENALTY_SETUP_LEFT,
  PM_PENALTY_SETUP_RIGHT, PM_PENALTY_READY_LEFT, PM_PENALTY_READY_RIGHT, PM_PENALTY_TAKEN_LEFT,
  PM_PENALTY_TAKEN_RIGHT, 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_INDIRECT_FREE_KICK_RIGHT, REFC_INDIRECT_FREE_KICK_LEFT, REFC_FREE_KICK_FAULT_LEFT, REFC_FREE_KICK_FAULT_RIGHT,
  REFC_BACK_PASS_LEFT, REFC_BACK_PASS_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, REFC_PENALTY_SETUP_LEFT,
  REFC_PENALTY_SETUP_RIGHT, REFC_PENALTY_READY_LEFT, REFC_PENALTY_READY_RIGHT, REFC_PENALTY_TAKEN_LEFT,
  REFC_PENALTY_TAKEN_RIGHT, REFC_PENALTY_MISS_LEFT, REFC_PENALTY_MISS_RIGHT, REFC_PENALTY_SCORE_LEFT,
  REFC_PENALTY_SCORE_RIGHT, REFC_PENALTY_FOUL_LEFT, REFC_PENALTY_FOUL_RIGHT, REFC_PENALTY_ONFIELD_LEFT,
  REFC_PENALTY_ONFIELD_RIGHT, REFC_PENALTY_WINNER_LEFT, REFC_PENALTY_WINNER_RIGHT, REFC_PENALTY_DRAW
}
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_ATTENTIONTO,
  CMD_TACKLE, CMD_POINTTO, CMD_MAX_COMMANDS
}
enum  PlayerT {
  PT_ILLEGAL, PT_GOALKEEPER, PT_DEFENDER_CENTRAL, PT_DEFENDER_SWEEPER,
  PT_DEFENDER_WING, PT_MIDFIELDER_CENTER, PT_MIDFIELDER_WING, PT_ATTACKER_WING,
  PT_ATTACKER, MAX_PLAYER_TYPES
}
enum  PlayerSetT { PS_DEFENDERS, PS_MIDFIELDERS, PS_ATTACKERS, PS_ALL }
enum  FormationT {
  FT_ILLEGAL, FT_INITIAL, FT_433_OFFENSIVE, FT_334_OFFENSIVE,
  FT_DEFENSIVE, FT_OPEN_DEFENSIVE, FT_343_ATTACKING, MAX_FORMATION_TYPES
}
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_ANTICIPATE_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, ACT_TACKLE,
  ACT_HOLD_BALL
}
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_OFFENSIVE_SIDE,
  CLEAR_BALL_GOAL
}
enum  TiredNessT {
  TIREDNESS_ILLEGAL, TIREDNESS_GOOD, TIREDNESS_AVERAGE, TIREDNESS_BAD,
  TIREDNESS_VERY_BAD, TIREDNESS_TERRIBLE
}
enum  FeatureT {
  FEATURE_ILLEGAL, FEATURE_FASTEST_OPPONENT_TO_BALL, FEATURE_FASTEST_TEAMMATE_TO_BALL, FEATURE_FASTEST_PLAYER_TO_BALL,
  FEATURE_FASTEST_TEAMMATE_TO_BALL_NO_GOALIE, FEATURE_INTERCEPTION_POINT_BALL, FEATURE_INTERCEPT_CLOSE, FEATURE_INTERCEPT_CYCLES_ME,
  FEATURE_BEST_SCORING_POINT, MAX_FEATURES
}
enum  DirectionT {
  DIR_ILLEGAL, DIR_NORTH, DIR_NORTHWEST, DIR_NORTHEAST,
  DIR_CENTER, DIR_EAST, DIR_WEST, DIR_SOUTHWEST,
  DIR_SOUTHEAST, DIR_SOUTH, DIR_MAX
}
enum  SucceedT { SUCCEED_ILLEGAL, SUCCEED_ALWAYS, SUCCEED_DOUBTFUL, SUCCEED_NEVER }

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


Define Documentation

#define DEFAULT_OPPONENT_NAME   "Team_R"
 

default teamname for opponent

Definition at line 75 of file SoccerTypes.h.

Referenced by WorldModel::show().

#define DEFAULT_TEAM_NAME   "Team_L"
 

default teamname for own team

Definition at line 74 of file SoccerTypes.h.

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

#define MAX_FLAGS   55
 

maximum number of flags on field

Definition at line 72 of file SoccerTypes.h.

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

#define MAX_HETERO_PLAYERS   7
 

Maximum number of hetero players

Definition at line 68 of file SoccerTypes.h.

Referenced by BasicCoach::mainLoopNormal(), and SoccerCommand::makeChangePlayerCommand().

#define MAX_LINES   4
 

maximum number of lines on field

Definition at line 73 of file SoccerTypes.h.

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

#define MAX_MSG   4096
 

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().

#define MAX_OPPONENTS   11
 

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().

#define MAX_SAY_MSG   10
 

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().

#define MAX_TEAM_NAME_LENGTH   64
 

maximum length of teamname

Definition at line 71 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 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().

#define PENALTY_AREA_LENGTH   16.5
 

length of the penalty area

Definition at line 79 of file SoccerTypes.h.

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

#define PENALTY_AREA_WIDTH   40.32
 

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().

#define PENALTY_X   (PITCH_LENGTH/2.0-PENALTY_AREA_LENGTH)
 

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().

#define PITCH_LENGTH   105.0
 

length of the pitch

Definition at line 76 of file SoccerTypes.h.

Referenced by BasicPlayer::clearBall(), Player::deMeer5(), Player::deMeer5_goalie(), BasicPlayer::dribble(), WorldModel::getClosestPlayerInFormationTo(), WorldModel::getDirectionOfWidestAngle(), BasicPlayer::getDribblePoint(), SoccerTypes::getGlobalPositionFlag(), BasicPlayer::getInterceptionPointBall(), WorldModel::getMarkingPosition(), BasicPlayer::getMarkingPosition(), WorldModel::getOppGoalieType(), WorldModel::getOuterPositionInField(), WorldModel::getOwnGoalieType(), WorldModel::getStrategicPosition(), BasicPlayer::interceptScoringAttempt(), WorldModel::isBallHeadingToGoal(), WorldModel::isBeforeGoal(), WorldModel::isInField(), BasicPlayer::kickBallCloseToBody(), SoccerCommand::makeMoveCommand(), Player::performPenalty(), and Player::sayOppAttackerStatus().

#define PITCH_MARGIN   5.0
 

margin next to the pitch

Definition at line 78 of file SoccerTypes.h.

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

#define PITCH_WIDTH   68.0
 

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().


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_ANTICIPATE_BALL  turn in anticipation for 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)
ACT_TACKLE  tackle the ball
ACT_HOLD_BALL  hold the ball

Definition at line 400 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 391 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_OFFENSIVE_SIDE  clear ball to front and side of the field
CLEAR_BALL_GOAL  clear ball to position in front of the goal

Definition at line 445 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_ATTENTIONTO  pay attention to specific player
CMD_TACKLE  tackle in current body direction
CMD_POINTTO  point arm towards a point on field
CMD_MAX_COMMANDS  maximum number of commands

Definition at line 331 of file SoccerTypes.h.

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

enum DirectionT
 

The DirectionT enumeration contains the different directions

Enumeration values:
DIR_ILLEGAL  illegal message
DIR_NORTH  north direction
DIR_NORTHWEST  north west direction
DIR_NORTHEAST  north east direction
DIR_CENTER  center direction
DIR_EAST  east direction
DIR_WEST  west direction
DIR_SOUTHWEST  south west direction
DIR_SOUTHEAST  south east direction
DIR_SOUTH  south direction
DIR_MAX  number of directions

Definition at line 484 of file SoccerTypes.h.

Referenced by SoccerTypes::getAngleFromDirection(), and BasicPlayer::leadingPass().

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 430 of file SoccerTypes.h.

Referenced by BasicPlayer::dribble(), and BasicPlayer::getDribblePoint().

enum FeatureT
 

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.

Enumeration values:
FEATURE_ILLEGAL  illegal feature
FEATURE_FASTEST_OPPONENT_TO_BALL  fastest opponent to the ball
FEATURE_FASTEST_TEAMMATE_TO_BALL  fastest teammate to the ball
FEATURE_FASTEST_PLAYER_TO_BALL  fastest player to the ball
FEATURE_FASTEST_TEAMMATE_TO_BALL_NO_GOALIE  fastest teammate, no goali
FEATURE_INTERCEPTION_POINT_BALL  interception point ball
FEATURE_INTERCEPT_CLOSE  close interception point ball
FEATURE_INTERCEPT_CYCLES_ME  nr of cycles for me to intercept
FEATURE_BEST_SCORING_POINT  best scoring point in the goal
MAX_FEATURES 

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().

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_433_OFFENSIVE  433 offensive formation
FT_334_OFFENSIVE  434 offensive formation
FT_DEFENSIVE  defensive formation type
FT_OPEN_DEFENSIVE  open defensive formation type
FT_343_ATTACKING  attacking formation type
MAX_FORMATION_TYPES 

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().

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 422 of file SoccerTypes.h.

Referenced by WorldModel::getMarkingPosition(), BasicPlayer::getMarkingPosition(), and BasicPlayer::mark().

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_TEAMMATES_NO_GOALIE  teammates without the goalie
OBJECT_SET_FLAGS  flags
OBJECT_SET_LINES  lines
OBJECT_SET_ILLEGAL  illegal

Definition at line 198 of file SoccerTypes.h.

Referenced by WorldModel::createInterceptFeatures(), WorldModel::drawCoordinationGraph(), 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(), WorldModel::iterateObjectStart(), WorldModel::processNewObjectInfo(), and WorldModel::show().

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 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().

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 438 of file SoccerTypes.h.

Referenced by BasicPlayer::directPass().

enum PlayerSetT
 

The PlayerSetT enumeration contains different sets of playertypes that are defined in a formation. Possible sets are all midfielders, etc.

Enumeration values:
PS_DEFENDERS  all defenders
PS_MIDFIELDERS  all midfielders
PS_ATTACKERS  all attackers
PS_ALL  all players

Definition at line 369 of file SoccerTypes.h.

Referenced by WorldModel::getClosestPlayerInFormationTo(), WorldModel::isInPlayerSet(), and SoccerTypes::isPlayerTypeInSet().

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_CENTRAL  central defender
PT_DEFENDER_SWEEPER  sweeper 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
MAX_PLAYER_TYPES 

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().

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 righ
PM_FREE_KICK_FAULT_LEFT  free_kick_fault_l: free_kick to yourself
PM_FREE_KICK_FAULT_RIGHT  free_kick_fault_r: free_kick to self
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_INDIRECT_FREE_KICK_RIGHT  indirect_free_kick_r: ind. free kick right
PM_INDIRECT_FREE_KICK_LEFT  indirect_free_kick_l: ind. free kick left
PM_BACK_PASS_LEFT  back_pass_l: left team passed back
PM_BACK_PASS_RIGHT  back_pass_r: right team passed back
PM_OFFSIDE_LEFT  offside_l: offside for left team
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_PENALTY_SETUP_LEFT  penalty_setup_left left setups for penalty
PM_PENALTY_SETUP_RIGHT  penalty_setup_right right setup for penalty
PM_PENALTY_READY_LEFT  penalty_ready_left ready for penalty l team
PM_PENALTY_READY_RIGHT  penalty_ready_right ready for pen r team
PM_PENALTY_TAKEN_LEFT  penalty_taken_left penalty started left
PM_PENALTY_TAKEN_RIGHT  penalty_taken_right penalty started right
PM_FROZEN  game play is frozen
PM_QUIT  quit
PM_ILLEGAL  unknown playmode

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().

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: kickoff for left team
REFC_KICK_OFF_RIGHT  kick_off_r: kickoff 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 left team
REFC_GOAL_KICK_RIGHT  goal_kick_r: goal kick right team
REFC_FREE_KICK_LEFT  free_kick_l: free kick left team
REFC_FREE_KICK_RIGHT  free_kick_r: free kick right team
REFC_INDIRECT_FREE_KICK_RIGHT  indirect_free_kick_r: ind freekick right
REFC_INDIRECT_FREE_KICK_LEFT  indirect_free_kick_l: ind. free kick left
REFC_FREE_KICK_FAULT_LEFT  free_kick_fault_l: free_kick to yourself
REFC_FREE_KICK_FAULT_RIGHT  free_kick_fault_r: free_kick to yourself
REFC_BACK_PASS_LEFT  back_pass_l: left team passed back
REFC_BACK_PASS_RIGHT  back_pass_r: right team passed back
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 cont. 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
REFC_PENALTY_SETUP_LEFT  penalty_setup_left left setup for penalty
REFC_PENALTY_SETUP_RIGHT  penalty_setup_right right setups for pen.
REFC_PENALTY_READY_LEFT  penalty_ready_left ready for pen. l team
REFC_PENALTY_READY_RIGHT  penalty_ready_right ready for pen. r team
REFC_PENALTY_TAKEN_LEFT  penalty_ready_left pen. taken by l team
REFC_PENALTY_TAKEN_RIGHT  penalty_ready_right pen. taken by r team
REFC_PENALTY_MISS_LEFT  penalty_miss_left penalty missed r team
REFC_PENALTY_MISS_RIGHT  penalty_miss_right penalty missed l team
REFC_PENALTY_SCORE_LEFT  penalty_score_left penalty score l team
REFC_PENALTY_SCORE_RIGHT  penalty_score_right penalty score r team
REFC_PENALTY_FOUL_LEFT  penalty_foul_left penalty foul l team
REFC_PENALTY_FOUL_RIGHT  penalty_foul_right penalty foul r team
REFC_PENALTY_ONFIELD_LEFT  penalty_onfield_left pen. on left field
REFC_PENALTY_ONFIELD_RIGHT  penalty_onfield_right pen. on right field
REFC_PENALTY_WINNER_LEFT  penalty_winner_l penalty won by r team
REFC_PENALTY_WINNER_RIGHT  penalty_winner_r penalty won by l team
REFC_PENALTY_DRAW  penalty_draw penalty result = draw

Definition at line 250 of file SoccerTypes.h.

Referenced by SenseHandler::analyzeFullStateMessage(), 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 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().

enum SucceedT
 

The SucceedT enumeration contains the different succeed rate probabilites

Enumeration values:
SUCCEED_ILLEGAL  illegal message
SUCCEED_ALWAYS  wil always succeed
SUCCEED_DOUBTFUL  in some occassions it may succeed
SUCCEED_NEVER  this will never succeed

Definition at line 499 of file SoccerTypes.h.

enum TiredNessT
 

The TiredNessT enumeration contains different values that indicate how tired an agent is.

Enumeration values:
TIREDNESS_ILLEGAL  illegal tiredness value
TIREDNESS_GOOD  player is not tired at all
TIREDNESS_AVERAGE  average tiredness
TIREDNESS_BAD  player starts to get tired
TIREDNESS_VERY_BAD  player is so tired it can hardly move
TIREDNESS_TERRIBLE  player is so tired it cannot move

Definition at line 455 of file SoccerTypes.h.

Referenced by WorldModel::getAgentTiredNess(), and Stamina::getTiredNess().

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 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().

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 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().


Variable Documentation

const AngDeg UnknownAngleValue = -1000.0
 

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().

const double UnknownDoubleValue = -1000.0
 

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().

const int UnknownIntValue = -1000
 

indicates unknown int

Definition at line 90 of file SoccerTypes.h.

Referenced by WorldModel::predictCommandToInterceptBall().

const long UnknownMessageNr = -30
 

indicates unknown messagenr

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 Feature::Feature(), WorldModel::getTimeGlobalPosition(), WorldModel::getTimeGlobalPositionLastSee(), WorldModel::getTimeGlobalVelocity(), and WorldModel::WorldModel().


Generated on Fri Nov 7 11:45:55 2003 for UvA Trilearn 2003 Base Code by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001