亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? worldmodel.h

?? RoboCup仿真組世界冠軍源代碼
?? H
?? 第 1 頁 / 共 4 頁
字號:
/*Copyright (c) 2000-2003, Jelle Kok, University of AmsterdamAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentationand/or other materials provided with the distribution.3. Neither the name of the University of Amsterdam nor the names of itscontributors may be used to endorse or promote products derived from thissoftware without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*//*! \file WorldModel.h<pre><b>File:</b>          WorldModel.h<b>Project:</b>       Robocup Soccer Simulation Team: UvA Trilearn<b>Authors:</b>       Jelle Kok<b>Created:</b>       12/02/2001<b>Last Revision:</b> $ID$<b>Contents:</b>      class declarations of WorldModel. This class contains               methods that give information about the current and future               state of the world (soccer field).<hr size=2><h2><b>Changes</b></h2><b>Date</b>             <b>Author</b>          <b>Comment</b>12/02/2001       Jelle Kok       Initial version created</pre>*/#ifndef _WORLD_MODEL_#define _WORLD_MODEL_#include "Objects.h"        // needed for PlayerObject#include "PlayerSettings.h" // needed for getPlayerDistTolerance#include "Logger.h"         // needed for Log#include "Formations.h"     // needed for getStrategicPosition (prediction)#include <list>#ifdef WIN32  #include <windows.h>      // needed for mutex#else  #include <pthread.h>      // needed for pthread_mutex  #include <sys/time.h>     // needed for gettimeofday#endifextern Logger Log;          // defined in Logger.Cextern Logger LogDraw;      // defined in Logger.C#ifdef WIN32/*! This function shall return the integral value (represented as a double)    nearest x in the direction of the current rounding mode. The current    rounding mode is implementation-defined.    If the current rounding mode rounds toward negative infinity, then rint()    shall be equivalent to floor() . If the current rounding mode rounds    toward positive infinity, then rint() shall be equivalent to ceil().    url: http://www.opengroup.org/onlinepubs/007904975/functions/rint.html */inline double rint(double x){    return floor(x+0.5);}/*! The drand48() function shall return non-negative,    double-precision, floating-point values, uniformly distributed over the    interval [0.0,1.0).    url: http://www.opengroup.org/onlinepubs/007904975/functions/drand48.html*/inline double drand48(){    return ((double)(rand() % 100)) / 100;}#endif/*****************************************************************************//********************** CLASS WORLDMODEL *************************************//*****************************************************************************//*! The Class WorlModel contains all the RoboCup information that is available    on the field. It contains information about the players, ball, flags and    lines. Furthermore it contains methods to extract useful information.    The (large amount of) attributes can be separated into different groups:    - Environmental information: specific information about the soccer server    - Match information: general information about the current state of a match    - Object information: all the objects on the soccer field    - Action information: actions that the agent has performed    The methods can also be divided into different groups:    - Retrieval methods: directly retrieving information of objects    - Update methods: update world based on new sensory information    - Prediction methods: predict future states based on past perceptions    - High-Level methods: deriving high-level conclusions from basic worldstate*/class WorldModel{private:  /***************************************************************************/  /*************************** ATTRIBUTES ************************************/  /***************************************************************************/  ////////////////////////// ENVIRONMENTAL INFORMATION ////////////////////////  ServerSettings *SS;                     /*!< Reference to all server params*/  PlayerSettings *PS;                     /*!< Reference to all client params*/  HeteroPlayerSettings pt[MAX_HETERO_PLAYERS]; /*!< info hetero player types */  Formations     *formations;             /*!< Reference to formation used   */  ////////////////////////// CURRENT MATCH INFORMATION ////////////////////////  // time information  Time          timeLastSeeMessage;      /*!< server time of last see msg    */  Time          timeLastRecvSeeMessage;  /*!< server time received see msg   */  Time          timeLastSenseMessage;    /*!< server time of last sense msg  */  Time          timeLastRecvSenseMessage;/*!< server time received sense msg */  Time          timeLastHearMessage;     /*!< server time of last hear msg   */  bool          bNewInfo;                /*!< indicates new info from server */  Time          timeLastCatch;           /*!< time of last catch by goalie   */  Time          timeLastRefMessage;      /*!< time of last referee message   */  // player information  char          strTeamName[MAX_TEAM_NAME_LENGTH]; /*!< Team name            */  int           iPlayerNumber;           /*!< player number in soccerserver  */  SideT         sideSide;                /*!< side where the agent started   */  // match information  PlayModeT     playMode;                /*!< current play mode in the game  */  int           iGoalDiff;               /*!< goal difference                */  ////////////////////////// OBJECTS //////////////////////////////////////////  // dynamic objects  BallObject    Ball;                    /*!< information of the ball        */  AgentObject   agentObject;             /*!< information of the agent itself*/  PlayerObject  Teammates[MAX_TEAMMATES];/*!< information of all teammates   */  PlayerObject  Opponents[MAX_OPPONENTS];/*!< information of all opponents   */  PlayerObject  UnknownPlayers[MAX_TEAMMATES+MAX_OPPONENTS];                                        /*!< info unknown players are stored                                             here til mapped to known player */  int           iNrUnknownPlayers;       /*!< number of unknown players      */  // fixed objects  FixedObject   Flags[MAX_FLAGS];        /*!< all flag information           */  FixedObject   Lines[MAX_LINES];        /*!< all line information           */  ////////////////////////// LOCALIZATION INFORMATION /////////////////////////  static const int iNrParticlesAgent = 100; /*!<nr of particles used to store                                                agent position               */  static const int iNrParticlesBall  = 100; /*! nr of particles used to store                                                ball position and velocity   */  VecPosition   particlesPosAgent[iNrParticlesAgent]; /*!< particles to store                                                         agent position      */  VecPosition   particlesPosBall[iNrParticlesBall];   /*! particles to store                                                         ball position       */  VecPosition   particlesVelBall[iNrParticlesBall];   /*! particles to store                                                         ball velocity       */  double        dTotalVarVel;  double        dTotalVarPos;  ////////////////////////// PREVIOUS ACTION INFORMATION //////////////////////  // arrays needed to keep track of actually performed actions.  SoccerCommand queuedCommands[CMD_MAX_COMMANDS];   /*!<all performed commands,                                                        set by ActHandler    */  bool          performedCommands[CMD_MAX_COMMANDS];/*!< commands performed in                                                        last cycle, index is                                                        CommandT             */  int           iCommandCounters[CMD_MAX_COMMANDS]; /*!< counters for all                                                        performed commands   */  ////////////////////////// VARIOUS //////////////////////////////////////////  // attributes only applicable to the coach  Time          timeCheckBall;           /*!< time bsCheckBall applies to    */  BallStatusT   bsCheckBall;             /*!< state of the ball              */  // synchronization#ifdef WIN32  CRITICAL_SECTION mutex_newInfo;       /*!< mutex to protect bNewInfo       */  HANDLE           event_newInfo;       /*!< event for bNewInfo              */#else  pthread_mutex_t  mutex_newInfo;       /*!< mutex to protect bNewInfo       */  pthread_cond_t   cond_newInfo;        /*!< cond variable for bNewInfo      */#endif  bool          m_bRecvThink;           /*!< think received in sync. mode    */  // communication  char          m_strPlayerMsg[MAX_MSG];/*!< message communicated by player  */  int           m_iCycleInMsg;          /*!< cycle contained in message      */  Time          m_timePlayerMsg;        /*!< time corresponding to player msg*/  int           m_iMessageSender;       /*!< player who send message         */  char          m_strCommunicate[MAX_SAY_MSG];/*!< string for communicating  */  // attention to  ObjectT       m_objFocus;             /*!< object to which is focused.     */  // offside line  double        m_dCommOffsideX;        /*!< communicated offside line       */  Time          m_timeCommOffsideX;     /*!< time Communicated offside line  */  // feature information  Feature       m_features[MAX_FEATURES];/*!< features applied to cur. cycle.*/  // other  bool          m_bPerformedKick;       /*!<Indicates whether ball was kicked*/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
9人人澡人人爽人人精品| 在线观看免费一区| 有坂深雪av一区二区精品| 5月丁香婷婷综合| 97久久超碰精品国产| 久久99久久久欧美国产| 亚洲va韩国va欧美va| 91啪亚洲精品| 国产精品一线二线三线| 五月综合激情婷婷六月色窝| 国产精品久久久久久久久免费桃花| 欧美一区二区在线观看| 91国偷自产一区二区使用方法| 精品在线观看视频| 图片区小说区区亚洲影院| 亚洲欧洲美洲综合色网| 精品播放一区二区| 欧美日韩不卡一区| 一本到高清视频免费精品| 国产成人鲁色资源国产91色综| 日韩电影免费在线| 洋洋成人永久网站入口| 自拍偷在线精品自拍偷无码专区 | 欧美一区二区二区| 欧美在线免费观看亚洲| 99免费精品视频| 处破女av一区二区| 国产一区二区在线免费观看| 蜜臀av一区二区在线免费观看| 亚洲香肠在线观看| 亚洲精品国产成人久久av盗摄| 综合激情网...| 亚洲欧洲精品一区二区三区| 日本一区二区不卡视频| 国产日产亚洲精品系列| 日本一二三四高清不卡| 欧美激情一区二区三区不卡| 国产亚洲短视频| 久久久精品国产免费观看同学| 精品国产一区二区亚洲人成毛片| 欧美电影免费观看高清完整版在线| 欧美日产国产精品| 91精品综合久久久久久| 欧美一区在线视频| 日韩女优av电影在线观看| 精品久久人人做人人爱| 久久日韩精品一区二区五区| 久久色在线观看| 国产精品视频第一区| 亚洲美女淫视频| 亚洲国产精品人人做人人爽| 天堂成人国产精品一区| 看片的网站亚洲| 国产精品一区二区不卡| 成+人+亚洲+综合天堂| 色香色香欲天天天影视综合网| 欧美特级限制片免费在线观看| 欧美色图天堂网| 日韩一级二级三级精品视频| www国产精品av| 国产精品人人做人人爽人人添| 亚洲乱码中文字幕| 石原莉奈在线亚洲三区| 国内精品久久久久影院色| 国产精品一色哟哟哟| 99久久国产综合精品色伊| 欧美日韩专区在线| 日韩一区二区在线看片| 国产精品日韩成人| 亚洲一区二区三区视频在线 | 亚洲超碰97人人做人人爱| 天使萌一区二区三区免费观看| 蜜臀国产一区二区三区在线播放| 国产精品一区二区在线看| 99精品视频一区二区三区| 欧美日韩成人在线| www激情久久| 一区二区三区免费看视频| 一本色道久久综合狠狠躁的推荐| 欧美日韩成人激情| 国产欧美精品一区| 日韩中文字幕一区二区三区| 国产一区二区精品久久91| 色婷婷精品久久二区二区蜜臀av| 777精品伊人久久久久大香线蕉| 久久精品一区二区三区不卡 | 97久久精品人人爽人人爽蜜臀 | 一色桃子久久精品亚洲| 日韩中文字幕不卡| 99精品欧美一区二区三区小说| 欧美精品一二三区| 国产精品视频线看| 日本sm残虐另类| 97久久超碰国产精品| 欧美不卡一区二区三区| 亚洲三级免费观看| 国内精品免费在线观看| 欧美日韩国产乱码电影| 国产精品久久久久7777按摩| 久久成人麻豆午夜电影| 欧美性受xxxx黑人xyx| 日本一区二区三区视频视频| 秋霞电影网一区二区| 91在线你懂得| 欧美国产精品中文字幕| 麻豆国产91在线播放| 欧美三级日韩三级| 亚洲欧美另类久久久精品| 狠狠色丁香婷综合久久| 欧美日本精品一区二区三区| 综合久久久久久| 懂色中文一区二区在线播放| 日韩精品一区二区三区中文精品| 亚洲午夜电影在线观看| 91丨九色丨尤物| 中文字幕欧美激情| 国产高清精品在线| 精品日产卡一卡二卡麻豆| 蜜臀a∨国产成人精品| 欧美色偷偷大香| 亚洲一区二区三区四区在线免费观看| 日韩一级完整毛片| 亚洲成人免费视频| 欧美午夜片在线看| 亚洲激情成人在线| 色综合久久中文综合久久97| 国产精品天天看| 盗摄精品av一区二区三区| 亚洲精品在线免费播放| 精品一区二区综合| 欧美xfplay| 紧缚奴在线一区二区三区| 欧美一区二区三区白人| 免费人成精品欧美精品| 这里是久久伊人| 天天综合网天天综合色| 91精品福利在线一区二区三区| 日韩1区2区3区| 欧美xxxx老人做受| 国产乱码精品1区2区3区| 国产亚洲午夜高清国产拍精品 | 91一区二区三区在线播放| 最新日韩av在线| 在线观看免费亚洲| 日韩福利电影在线| 日韩欧美国产小视频| 国产精品一线二线三线| 国产精品久久久久久久久免费丝袜 | 欧美精品欧美精品系列| 午夜影视日本亚洲欧洲精品| 欧美夫妻性生活| 麻豆中文一区二区| 国产调教视频一区| 91免费视频大全| 亚洲国产sm捆绑调教视频| 欧美电影在哪看比较好| 精品在线观看免费| 国产精品久久久久国产精品日日| 色久综合一二码| 麻豆精品在线播放| 中文字幕不卡在线| 欧美色电影在线| 美女免费视频一区二区| 国产拍揄自揄精品视频麻豆| 色婷婷亚洲婷婷| 欧美aⅴ一区二区三区视频| 久久久国产精华| 99久久婷婷国产综合精品电影| 亚洲电影一区二区| 久久人人爽爽爽人久久久| 一本久道久久综合中文字幕| 视频一区二区中文字幕| 国产三级一区二区三区| 91久久精品日日躁夜夜躁欧美| 日韩av一级片| 日韩理论片中文av| 日韩视频一区在线观看| 成人h精品动漫一区二区三区| 亚洲大片在线观看| 欧美激情一区在线| 欧美久久高跟鞋激| 成人精品高清在线| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产精品私人自拍| 日韩视频一区二区| 91色porny在线视频| 久久99国产精品免费网站| 成人欧美一区二区三区| 日韩欧美精品三级| 欧美在线三级电影| 成人综合婷婷国产精品久久 | 国产精品久久久久久久久晋中 | 欧美一区二区三区在线观看视频| 成人黄色电影在线| 美国十次综合导航| 一区二区理论电影在线观看| 国产亚洲视频系列| 日韩欧美视频一区| 欧美影院一区二区三区| 国产成人精品亚洲午夜麻豆|