trick.h
来自「该文件是包含了机器人足球比赛中的整个系统的代码」· C头文件 代码 · 共 25 行
H
25 行
#ifndef TRICK_H
#define TRICK_H
#include "../Globals.h"
#include "Utilities.h"
// This class forms the basis of the Dude/Trick architecture
// The idea is to provide a simple framework that allows the execution
// of a single action over multiple vision frames.
// Furthermore, it must be possible to interrupt tricks if the robot's
// environment changes unexpectedly prior to the trick completing.
class Trick {
public:
Trick();
virtual int Start() {return 0;}
virtual int Abort() {return 0;}
virtual int Continue() {return 0;} // returns < 1 when trick ends
virtual bool IsUsingHead() {return false;}
virtual char* GetErrorMsg(int) { return "ERROR_UNKOWN";}
virtual char* GetName() { return "TRICK_NAME_UNDEFINED"; }
virtual Trick* GetCurrentTrick() { return NULL; }
};
#endif // TRICK_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?