globe.h

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

H
57
字号
#ifndef _GLOBE_H_
#define _GLOBE_H_

#include "GeometryR.h"

#define sqrt2 1.414213562373

#define CLOCKWISE 1
#define ANTICLOCK -1
#define NOCLOCK  0


//场地物体浮点位姿信息
class RobotInford
{
public:
	RobotInford() { theta = 0; speedv = 0; speedw = 0; };
public:
	VecPosition pos;
	double theta;		// 方向角
	double speedv;		// 机器人线速度(上周期)
	double speedw;		// 机器人角速度
};

//小车轮速值浮点型
typedef struct
{
	double LeftValue;
	double RightValue;
}dbLRWheelVelocity;


typedef struct
{
	Line line;
	double angle;
	double velocity;
} FORCASTBALL;

struct DEGame
{
	int	DEGameGround;
	int	DEStartState;
	int	DEStartMode;
	int DEPenaltyDirection;
};
//记录角色分配的结果和参数
//struct RoleInfor
//{
//	RoleInfor(){area = 0;role = 0;charactor = 1;};
//	int area;
//	int role;
//	double charactor;
//};

#endif	// _GLOBE_H_

⌨️ 快捷键说明

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