📄 agents.h
字号:
#ifndef MSPACEAGENTS_H#define MSPACEAGENTS_H#include <string>#include <sstream>#include <netinet/in.h>#include <stdio.h>#include <unistd.h>#include <iostream>#include <time.h>#include <sys/types.h>#include "geometry.h"#include "worldmodel.h"#include "param.h"#define buffer_size 8192extern MSpace::Param param;namespace MSpace {/**the main class for agent actions;@author root*/class Agents{public: Agents(); void PutOutput(const char* out); void PutOutputs(const std::string& str); bool SelectInput(); bool GetInput(); char* GetMsg(); void Create(std::string TeamName,int Number); void Done(); void Kick(Angel ang,float force); void Drive(Vec v); void Beam(Vec v); void Catch(); void TurnCamera(Angel pan,Angel tilt); void Say(std::string word); void Notify(int time); ~Agents(); int MessageLength;private: int mReadFd ; int mWriteFd ; char mBuffer[buffer_size];};}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -