📄 trick.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -