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

# Representations/Cognition/PlayersModel.h

Go to the documentation of this file.

    00001 /**
    00002  * @file PlayersModel.h
    00003  *
    00004  * Declaration of class PlayersModel
    00005  */
    00006
    00007 #ifndef __PlayersModel_h_
    00008 #define __PlayersModel_h_
    00009
    00010
    00011 #include "Tools/Streams/InOut.h"
    00012 #include "Tools/Math/Vector2.h"
    00013 #include "Representations/Cognition/PlayersModel.h"
    00014
    00015
    00016 /**
    00017  * A class describing detected players
    00018  */
    00019 class PlayersModel
    00020 {
    00021
    00022 public:
    00023
    00024   PlayersModel();
    00025
    00026   /**
    00027    * The free space without any opponent around the robot
    00028    */
    00029   double freeSpaceAroundRobot;
    00030
    00031   /**
    00032    * Distance to next opponent in these sectors
    00033    */
    00034   double distanceToOppInSectorAhead;
    00035   double distanceToOppInSectorBehind;
    00036   double distanceToOppInSectorLeft;
    00037   double distanceToOppInSectorRight;
    00038
    00039   /**
    00040    * The position at the field of an own player ahead
    00041    */
    00042   Vector2<double> positionOfOwnPlayerAhead;
    00043
    00044   /**
    00045    * The timestamp of the seen own player ahead
    00046    */
    00047   long timeStampToSeenOwnPlayerAhead;
    00048
    00049 };
    00050
    00051 /**
    00052  * Streaming operator that reads a PlayersModel from a stream.
    00053  * @param stream The stream from which is read.
    00054  * @param playerModel The PlayersModel object.
    00055  * @return The stream.
    00056  */
    00057 In& operator>>(In& stream,PlayersModel& playersModel);
    00058
    00059 /**
    00060  * Streaming operator that writes a PlayersModel to a stream.
    00061  * @param stream The stream to write on.
    00062  * @param playerModel The PlayersModel object.
    00063  * @return The stream.
    00064  */
    00065 Out& operator<<(Out& stream, const PlayersModel& playersModel);
    00066
    00067
    00068 #endif //__PlayersModel_h_
    00069
    00070 /*
    00071  * Change log :
    00072  *
    00073  */