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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? object.h

?? 機器人足球AI設計比賽
?? H
字號:
/***************************************************************************************** *                                      SEU-3D *                     ------------------------------------------------- * Copyright (c) 2005, Yuan XU<xychn15@yahoo.com.cn>,Chang'e SHI<evelinesce@yahoo.com.cn> * Copyright (c) 2006, Yuan XU<xuyuan.cn@gmail.com>,Chunlu JIANG<JamAceWatermelon@gmail.com> * Southeast University ,China * All rights reserved. * * Additionally,this program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ****************************************************************************************/ #ifndef _OBJECT_H#define _OBJECT_H#ifdef __cplusplusextern "C"{#endif#ifdef __cplusplus}#endif#include "Settings.h"#include "Logger.h"#include "Action.h"#include <string>using namespace salt;using namespace std;//-*  mapping from gamestate string to TPlayMode    typedef std::map<std::string, TPlayMode> TPlayModeMap;	void setupPlayModeMap( TPlayModeMap &playModeMap );enum Vector3fType{	VT_GLOBAL_POS = 0,	VT_GLOBAL_VEL = 1,	VT_GLOBAL_ACC = 2,	VT_RELATIVE_POS = 3,	VT_RELATIVE_POS_SEEN = 4,		VT_UNKNOWN = 5,	VT_ILLEGAL = 6};enum VisionObject{	//-* ball    VO_BALL   = 0,	//-* fixed object    VO_FLAG1L = 1,    VO_FLAG1R = 2,    VO_FLAG2L = 3,    VO_FLAG2R = 4,    VO_GOAL1L = 5,    VO_GOAL1R = 6,    VO_GOAL2L = 7,    VO_GOAL2R = 8,	//-* teammate	VO_TEAMMATE_1 = 9,     VO_TEAMMATE_2 = 10,     VO_TEAMMATE_3 = 11,     VO_TEAMMATE_4 = 12,     VO_TEAMMATE_5 = 13,     VO_TEAMMATE_6 = 14,     VO_TEAMMATE_7 = 15,     VO_TEAMMATE_8 = 16,     VO_TEAMMATE_9 = 17,     VO_TEAMMATE_10 = 18,     VO_TEAMMATE_11 = 19,     VO_TEAMMATE_UNKNOWN = 20,	//-* opponent    VO_OPPONENT_1 = 21,     VO_OPPONENT_2 = 22,     VO_OPPONENT_3 = 23,     VO_OPPONENT_4 = 24,     VO_OPPONENT_5 = 25,     VO_OPPONENT_6 = 26,     VO_OPPONENT_7 = 27,     VO_OPPONENT_8 = 28,     VO_OPPONENT_9 = 29,     VO_OPPONENT_10 = 30,     VO_OPPONENT_11 = 31,     VO_OPPONENT_UNKNOWN = 32,	    VO_PLAYER_UNKNOWN  = 33,    VO_UNKNOWN = 34,     VO_ILLEGAL = 35 };/************************************************************************//************************ OBJECT ****************************************//************************************************************************/class Object{protected:	//-* record current and history data: [0]:current data;[1]last data...	//-- only vision message	deque< Time >			_timeSeen; //-* the time see this object	deque< VisionSense >	_visionSeen; //-* the vision message about the object	deque< Vector3f	>		_posRelativeSeen; //-* the relative position of the object from vision		public:	Object();	~Object();		//-* function get values	Time 		 getTimeSeen( unsigned int i = 0 ) const { return getDequeValue( _timeSeen, i ); } 	VisionSense  getVisionSeen( unsigned int i  = 0 ) const { return getDequeValue( _visionSeen, i ); }	Vector3f	 getPosRelativeSeen( unsigned int i = 0 ) const { return getDequeValue( _posRelativeSeen, i ); }	Vector3f	 getRelativePosSeen( unsigned int i = 0 ) const { return getDequeValue( _posRelativeSeen, i ); }	Vector3f	 getPosRelativeLastSeen() const { return getPosRelativeSeen( 0 ); }	Vector3f	 getRelativePosLastSeen() const { return getRelativePosSeen( 0 ); }	//-* update values	void updateLastSeen( Time timeLastSeen, VisionSense visionLastSeen );		//-* get vision error var	Vector3f getVisionError() const;};/*****************************************************************************//********************** FIXED OBJECT *****************************************//*****************************************************************************//*! Class FixedObject contains RoboCup information that is available for    objects that cannot move (flags, goals). Different variables are added to    the superclass Object. */class FixedObject: public Object{protected:	//-* record data	deque< Time	>			_time; //-* time of the corresponding information	Vector3f				_posGlobal; //-* Global position in the field,this will not be changed during the match	deque< Vector3f	>		_posRelative; //-* relative position of the objectpublic:	FixedObject();	~FixedObject();	//-* set and get global position	//-- it will not be changed during a match	void 		setGlobalPos( Vector3f posGlobal ) { _posGlobal = posGlobal; }	Vector3f 	getGlobalPos() const { return _posGlobal; }		//-* update position relative to me	//-- posRelative = posGlobal - posMe	void		updatePosRelative( Time time, Vector3f posMe );		//-* get position relative to me	Time		getTime( unsigned int i ) { return getDequeValue( _time, i ); }	Vector3f	getPosRelative( unsigned int i ) { return getDequeValue( _posRelative, i ); }	Vector3f	getPosRelative( Time time ) { return getDequeValueByTime( _time, time, _posRelative ); }};/*****************************************************************************//********************** DYNAMIC OBJECT ***************************************//*****************************************************************************//*! Class DynamicObject contains RoboCup information that is available for    objects that can move (players, ball). Different variables are added to    the superclass Object */class DynamicObject: public Object{protected:	//-* max speed and Acceletation...	float		_maxSpeed; //-* max speed of this object	float		_maxAcceletation; //-*  max Acceletation of this object	//-* record data	//-* position information	deque< Time	>			_time; //-* time of the corresponding information	deque< Vector3f	>		_posGlobal; //-* Global position in the field	deque< Vector3f	>		_posRelative; //-* relative position of the object	//-*  global velocity information	deque< Vector3f >   	_globalVelocity;      //-*  Global velocity of the object	deque< Vector3f	>		_globalAcceletation;	 //-*  global Acceletation of the objectpublic:	DynamicObject();	~DynamicObject();	//-* set parameters	void setMaxSpeed( float maxSpeed ) { _maxSpeed = maxSpeed; }	void setMaxAcceletation( float maxAcceletation ) { _maxAcceletation = maxAcceletation; }	//-* get parameters	float getMaxSpeed() const { return _maxSpeed; }	float getMaxAcceletation() const { return _maxAcceletation; }		Time		getTime( unsigned int i = 0 ) const { return getDequeValue( _time, i ); }			Vector3f	getGlobalPos( unsigned int i = 0 ) const { return getDequeValue( _posGlobal, i ); }	//Vector3f	getGlobalPos( Time time ) { return getDequeValueByTime( _time, time, _posGlobal ); }		Vector3f	getRelativePos( Step i = 0 ) const { return getDequeValue( _posRelative, i ); }	//Vector3f	getRelativePos( Time time ) const { return getDequeValueByTime( _time, time, _posRelative ); }		Vector3f	getGlobalVelocity( Step i = 0 ) const { return getDequeValue( _globalVelocity, i ); }	Vector3f	getGlobalVelocity( Time time ) const { return getDequeValueByTime( _time, time, _globalVelocity ); }		Vector3f	getGlobalAcceletation( unsigned int i = 0 ) const { return getDequeValue( _globalAcceletation, i ); }	Vector3f	getGlobalAcceletation( Time time ) const { return getDequeValueByTime( _time, time, _globalAcceletation ); }		//-* update dynamic information	void updateDynamic( const Time &time, const Vector3f &posGlobal, const Vector3f &posMe, const Vector3f &globalVelocity, const Vector3f &globalAcceletation);	//-* for update	Vector3f calculateGlobalPosFromVision( const Vector3f &posMyself) const;	Vector3f calculateGlobalVelFromVision( const Vector3f &velMyself) const;	Vector3f calculateGlobalPosFromMemory( const Time deltaTime) const;};/*****************************************************************************//********************* PLAYER OBJECT *****************************************//*****************************************************************************//*! Class PlayerObject contains RoboCup information that is available for    players. Different variables are added to the superclass DynamicObject   */class PlayerObject: public DynamicObject{protected:	float 	_mass; //-* mass of the players	float 	_radius; //-* radius of the players	bool	_isLive; //-* whether the players is live	string 	_teamName; //-* the team name of the players	unsigned int _num; //-*  the number of the players	//-* the interal state of the players	float _battery; //-* percentage of battery	float _temperature; //-* temperature of the palyerpublic:	PlayerObject();	~PlayerObject();	//-* set parameters	void setMass( float mass ) { _mass = mass; }	void setRadius( float radius ) { _radius = radius; }	void setTeamName( string teamName ) { _teamName = teamName; }	void setNum( unsigned int num ) { _num = num; }	void setBattery( float battery ) { _battery = battery; }	void setTemperature( float temperature ) { _temperature = temperature; }		//-* get parameters	float getMass() 		const { return _mass; }	float getRadius()		const { return _radius; }	string getTeamName() 	const { return _teamName; }	unsigned int getNum() 	const { return _num; }	float getBattery() 		const { return _battery; }	float getTemperature() 	const { return _temperature; }		//-* set and get the player live	//-- for some excpet suitation, some player dead	bool isLive() { return _isLive; }	void enLive() { _isLive = true; }	void disLive() { _isLive = false; }	};/*****************************************************************************//********************* BALL OBJECT *******************************************//*****************************************************************************//*! Class PlayerObject contains RoboCup information that is available for the    ball. No extra variables are added to superclass DynamicObject*/class BallObject: public DynamicObject{private:	float _mass; //-* mass of the ball	float _radius; //-* radius of the ball	//-- kalman configure parameters	Vector3f _kalmanP[4];	/** drag conf */	float _groundDragConf;	float _airDragConf;public:	BallObject();	~BallObject();	//-* set parameters	void setMass( float mass );	void setRadius( float radius ) { _radius = radius; }	void inline setKalmanP22( const Vector3f &P22) { _kalmanP[3] = P22; }	void setDragConf();		//-* get parameters	float getMass() const { return _mass; }	float getRadius() const { return _radius; }	Vector3f inline getKalmanP11() const { return _kalmanP[0]; }	Vector3f inline getKalmanP12() const { return _kalmanP[1]; }	Vector3f inline getKalmanP21() const { return _kalmanP[2]; }	Vector3f inline getKalmanP22() const { return _kalmanP[3]; }	bool isGroundBall( const Vector3f &posBall, const Vector3f &prePosBall, const Vector3f &preprePosBall,						const Vector3f &velBall, const Vector3f &preVelBall, const Vector3f &prepreVelBall) const;	bool isFallOnGround( const Vector3f &posBall, const Vector3f &prePosBall, const Vector3f &preprePosBall,						const Vector3f &velBall, const Vector3f &preVelBall, const Vector3f &prepreVelBall) const;	bool isBallStop( const Vector3f &posBall, const Vector3f &prePosBall, const Vector3f &preprePosBall,						const Vector3f &velBall, const Vector3f &preVelBall, const Vector3f &prepreVelBall,const float minSpeed = 0.01) const;	//bool isFallOnGround ( const Vector3f &posBall, const Vector3f &velBall) const;	//-* simulate physics	void predictStateAfterOneStep(	Vector3f &pos, Vector3f &prePos, Vector3f &preprePos,										Vector3f &vel, Vector3f &preVel, Vector3f &prepreVel ) const;	bool predictStateAfterNrSteps(	Vector3f &pos, Vector3f &prePos, Vector3f &preprePos,										Vector3f &vel, Vector3f &preVel, Vector3f &prepreVel,										int iStep = 1,										int iStepMax = max_intercept_steps ) const;	//float nnSimNextVel( const float v0 )const;	//bool simulate( Vector3f &pos, Vector3f &vel,const int iStep, const int iStepMax =1000 ) const;	//-* kalman filter	void updateKalman( const Step iStep );	void setupKalmanFilter();};/*****************************************************************************//********************* AGENT OBJECT ******************************************//*****************************************************************************//*! Class AgentObject contains RoboCup information that is available for the    agent. New variables are declared that extend a normal PlayerObject.*/class AgentObject: public PlayerObject{private:		Vector3f _driveForce; //-* the drive force of the agent	string _oppTeamName; //-*  the name of opponent team	//-- kalman configure parameters	Vector3f _kalmanP[4];public:	AgentObject();	~AgentObject();	//-* set parameters	void inline setDriveForce( Vector3f driveForce ) { _driveForce = driveForce; }	void inline setKalmanP22( const Vector3f &P22) { _kalmanP[3] = P22; }		//-* get parameters	Vector3f inline getDriveForce() const { return _driveForce; }	Vector3f inline getKalmanP11() const { return _kalmanP[0]; }	Vector3f inline getKalmanP12() const { return _kalmanP[1]; }	Vector3f inline getKalmanP21() const { return _kalmanP[2]; }	Vector3f inline getKalmanP22() const { return _kalmanP[3]; }		//-* kalman filter	void updateKalman( const Time deltaTime );	void setupKalmanFilter();};#endif /* _OBJECT_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色网站导航| 成人亚洲一区二区一| 日本免费新一区视频| 国产精品一区免费在线观看| 91亚洲精品一区二区乱码| 欧美丰满嫩嫩电影| 国产精品高清亚洲| 美女久久久精品| 欧美在线一二三| 国产精品日韩成人| 青青草97国产精品免费观看| 99视频有精品| 国产日韩综合av| 欧美三级电影精品| 精品国产一区久久| 亚洲国产精品一区二区久久| 丰满少妇在线播放bd日韩电影| 日韩一区二区三区视频在线| 中文字幕巨乱亚洲| 国模冰冰炮一区二区| 欧美日韩视频一区二区| √…a在线天堂一区| 国产精品456| 精品99久久久久久| 麻豆一区二区在线| 欧美一区二区网站| 五月综合激情日本mⅴ| 日本韩国一区二区| 亚洲精品你懂的| 91国偷自产一区二区三区成为亚洲经典 | 中文字幕av一区二区三区高 | 日韩精品一区二区三区中文精品| 欧美极品xxx| 国产精品亚洲专一区二区三区| 欧美一级夜夜爽| 青青草97国产精品免费观看无弹窗版 | 中文字幕色av一区二区三区| 国产成人精品亚洲777人妖| 久久精品在这里| 国产乱子轮精品视频| 久久久夜色精品亚洲| 国产精品资源在线看| 国产蜜臀97一区二区三区| 国产.欧美.日韩| 中文字幕一区三区| 一本色道久久综合狠狠躁的推荐| 亚洲精品国产精品乱码不99| 欧美影片第一页| 日韩1区2区日韩1区2区| 26uuu精品一区二区在线观看| 国产在线不卡一区| 国产精品国产三级国产普通话蜜臀 | 亚洲成人动漫一区| 欧洲精品一区二区| 丝袜美腿亚洲一区二区图片| 欧美二区乱c少妇| 亚洲国产美国国产综合一区二区| 欧美日韩国产片| 精品一区二区三区香蕉蜜桃| 久久久久久久久久久黄色| 99久久精品免费| 亚洲国产一二三| 日韩欧美一级二级| 国产91精品露脸国语对白| 亚洲伦在线观看| 欧美va亚洲va| 色综合久久综合网97色综合| 日韩电影免费在线| 国产欧美日韩久久| 欧美日韩一区在线观看| 国产在线视频精品一区| 亚洲视频资源在线| 日韩欧美久久久| 91同城在线观看| 激情综合五月天| 一区二区三区加勒比av| 日韩免费在线观看| 色嗨嗨av一区二区三区| 激情六月婷婷久久| 亚洲一区二区三区自拍| 久久久91精品国产一区二区精品| 色狠狠色狠狠综合| 国产一区二区三区电影在线观看 | 久久免费看少妇高潮| 欧美羞羞免费网站| 国产成人综合视频| 日本视频一区二区| 一区二区三区四区精品在线视频| 欧美r级在线观看| 欧美美女直播网站| 色国产综合视频| av中文字幕一区| 国产精品77777竹菊影视小说| 丝袜美腿亚洲一区| 亚洲一区二区免费视频| 日韩一区中文字幕| 国产精品精品国产色婷婷| 欧美精品一区二区三区高清aⅴ | 肉丝袜脚交视频一区二区| 亚洲欧洲三级电影| 久久精品人人做| 欧美电影免费观看高清完整版在 | 亚洲国产精品自拍| 亚洲欧洲另类国产综合| 欧美国产日韩a欧美在线观看| 欧美成人r级一区二区三区| 69精品人人人人| 欧美日韩视频第一区| 在线观看不卡一区| 色欧美片视频在线观看| 99久久亚洲一区二区三区青草| 国产成人免费视| 成人小视频免费观看| 国产精品综合av一区二区国产馆| 麻豆久久久久久久| 精品一区二区三区视频在线观看| 另类综合日韩欧美亚洲| 久久99精品国产91久久来源| 美女脱光内衣内裤视频久久影院| 视频一区二区三区入口| 日韩av午夜在线观看| 日韩 欧美一区二区三区| 久久福利资源站| 精品综合免费视频观看| 国产精品一区二区在线播放| 国产美女一区二区| 成人黄动漫网站免费app| 成人亚洲一区二区一| 一道本成人在线| 精品污污网站免费看| 欧美一区二区三区在线电影| 91精品国产手机| 久久老女人爱爱| 国产精品激情偷乱一区二区∴| 亚洲精品成人精品456| 亚洲超碰精品一区二区| 久久不见久久见免费视频1| 国产精品综合一区二区三区| 97se亚洲国产综合自在线观| 欧美性欧美巨大黑白大战| 欧美一区二区三区四区在线观看 | 亚洲黄色免费网站| 亚洲成人av一区二区三区| 免费成人在线播放| 成人中文字幕在线| 欧美亚洲国产bt| 26uuu成人网一区二区三区| 国产精品美女一区二区| 亚洲444eee在线观看| 国产一区二区三区香蕉| 色香色香欲天天天影视综合网| 欧美日韩精品一区二区三区四区 | 一区二区国产视频| 另类小说图片综合网| 成人黄色免费短视频| 欧美疯狂做受xxxx富婆| 国产精品欧美精品| 午夜久久电影网| 国产91综合一区在线观看| 欧美日韩精品一区二区| 欧美国产禁国产网站cc| 亚洲国产一区在线观看| 国产精品自产自拍| 91麻豆精品91久久久久久清纯| 国产欧美日韩综合精品一区二区| 精品国产一区久久| 国产精品996| 欧美中文字幕一区| 国产日韩亚洲欧美综合| 亚洲成人一区二区| av一区二区不卡| 日韩视频不卡中文| 一区二区三区日本| 成人午夜视频福利| 精品国产一区二区三区不卡| 亚洲国产综合色| 成人午夜视频在线观看| 精品少妇一区二区三区日产乱码| 一区二区三区日韩欧美精品| 懂色av噜噜一区二区三区av| 日韩三级在线观看| 午夜不卡av免费| 日本韩国一区二区三区| 亚洲色图都市小说| 成人av电影在线播放| 久久久91精品国产一区二区精品 | 欧美精品久久99| 亚洲激情成人在线| 97se亚洲国产综合在线| 中文字幕在线不卡一区 | 精品一区二区免费看| 欧美日韩中文字幕一区| 亚洲一区在线视频| 色先锋资源久久综合| 亚洲私人黄色宅男| 色综合色狠狠综合色| 亚洲欧美日韩成人高清在线一区| 成人av在线看| 中文字幕日韩一区| 久久se这里有精品|