00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef ARACTIONINPUT_H
00028 #define ARACTIONINPUT_H
00029
00030 #include "ariaTypedefs.h"
00031 #include "ArAction.h"
00032
00034
00037 class ArActionInput : public ArAction
00038 {
00039 public:
00041 ArActionInput(const char *name = "Input");
00043 virtual ~ArActionInput();
00045 void setVel(double vel);
00047 void deltaHeadingFromCurrent(double delta);
00049 void setRotVel(double rotVel);
00051 void setHeading(double heading);
00053 void clear(void);
00054 virtual ArActionDesired *fire(ArActionDesired currentDesired);
00055 virtual ArActionDesired *getDesired(void) { return &myDesired; }
00056
00057 protected:
00058 enum RotRegime { NONE, ROTVEL, DELTAHEADING, SETHEADING };
00059 RotRegime myRotRegime;
00060 double myRotVal;
00061 bool myUsingVel;
00062 double myVelSet;
00063 ArActionDesired myDesired;
00064 };
00065
00066 #endif // ARACTIONSTOP_H