decisionmakingx.h

来自「5VS5足球机器人仿真程序」· C头文件 代码 · 共 74 行

H
74
字号
// DecisionMakingx.h: interface for the CDecisionMakingx class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DECISIONMAKINGX_H__E1F060A5_484F_4338_B877_7B533844419F__INCLUDED_)
#define AFX_DECISIONMAKINGX_H__E1F060A5_484F_4338_B877_7B533844419F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "globe.h"
#include "defines.h"
#include "GeometryR.h"
//#include "Logger.h"

//#include "Formation.h"
//#include "network.h"
//#include "CounterTimer.h"
//#include "Hundun.h"
//#include "svm.h"
//#include "PerfTimer.h"

#include <string>

#define BALLNUMPARA	7


class CDecisionMakingx 
{
public:
	CDecisionMakingx();
	virtual ~CDecisionMakingx();
	void	Startx(RobotInford dmRobot[]);
	void	MiroSot_DecisionMaking();
	void	ToPositionPD(int nRobot, VecPosition posTarget, double speed);
	void	TurnToAnglePD(int nRobot,double dAngle);
	void	Vect_MidShoot(int nRobot);
	void	InitDEG(DEGame DEG);
	void	LimitSpeed(dbLRWheelVelocity* pSpeed, double dMaxSpeed, BOOL bMax = FALSE);
	int		GetAreaNoExample(VecPosition posBall);
	void	GoalieActionExample(int nRobot,double speed);
	void	PreProcess();
	void	PostPrecess();

public:
	RobotInford			Robot[2*ROBOTNUMBER+1], oldRobot[2*ROBOTNUMBER+1], m_PostRobot[ROBOTNUMBER];
	dbLRWheelVelocity	rbV[ROBOTNUMBER], oldrbV[ROBOTNUMBER];
	DEGame				dmDEG;
	VecPosition			m_posBall;		///< 当前球和下周期球位置
};
#endif // !defined(AFX_DECISIONMAKINGX_H__E1F060A5_484F_4338_B877_7B533844419F__INCLUDED_)





















⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?