00001 /** 00002 * @file PlayersSymbols.h 00003 * 00004 * Declaration of class PlayerSymbols. 00005 * The Xabsl2 symbols that are defined in "player-symbols.xml" 00006 * @author Marc Dassler 00007 */ 00008 00009 #ifndef __PlayersSymbols_h_ 00010 #define __PlayersSymbols_h_ 00011 00012 #include "../BehaviorControl.h" 00013 #include "Tools/Xabsl2/Xabsl2Engine/Xabsl2Engine.h" 00014 #include "Representations/Cognition/PlayersModel.h" 00015 00016 00017 class PlayersSymbols : public Xabsl2FunctionProvider, public BehaviorControlInterfaces 00018 { 00019 public: 00020 /* 00021 * Constructor. 00022 * @param interfaces The paramters of the BehaviorControl module. 00023 */ 00024 PlayersSymbols(const BehaviorControlInterfaces& interfaces); 00025 00026 /** registers the symbols at an engine */ 00027 void registerSymbols(Xabsl2Engine& engine); 00028 00029 /** updates the symbols */ 00030 void update(); 00031 00032 //!@name Input symbols 00033 //!@{ 00034 double getAngleToOwnDetectedPlayer(); /*!< A function for the symbol "players.angle-to-own-detected-player" */ 00035 double getTimeSinceDetectedOwnPlayer(); /*!< A function for the symbol "players.time-since-detected-own-player" */ 00036 double getFreeSpaceAroundRobot(); /*!< A function for the symbol "players.free-space-around-robot" */ 00037 00038 double getDistanceToOppInSectorAhead(); /*!< A function for the symbol "players.distance-to-opp-player-ahead" */ 00039 double getDistanceToOppInSectorBehind(); /*!< A function for the symbol "players.distance-to-opp-player-behind" */ 00040 double getDistanceToOppInSectorLeft(); /*!< A function for the symbol "players.distance-to-opp-player-left" */ 00041 double getDistanceToOppInSectorRight(); /*!< A function for the symbol "players.distance-to-opp-player-right" */ 00042 00043 //!@} 00044 00045 private: 00046 00047 }; 00048 00049 00050 #endif // __PlayersSymbols_h_ 00051
1.3.6