#include <ArActionInput.h>
Inheritance diagram for ArActionInput:

Public Member Functions | |
| ArActionInput (const char *name="Input") | |
| Constructor. | |
| void | clear (void) |
| Clears it so its not using vel or heading. | |
| void | deltaHeadingFromCurrent (double delta) |
| Increment/decrement the heading from current. | |
| virtual ArActionDesired * | fire (ArActionDesired currentDesired) |
| Fires the action, returning what the action wants to do. | |
| virtual ArActionDesired * | getDesired (void) |
| Gets what this action wants to do (for display purposes). | |
| void | setHeading (double heading) |
| Sets a heading. | |
| void | setRotVel (double rotVel) |
| Sets a rotational velocity. | |
| void | setVel (double vel) |
| Set velocity (cancels deltaVel). | |
| virtual | ~ArActionInput () |
| Destructor. | |
Protected Types | |
| enum | RotRegime { NONE, ROTVEL, DELTAHEADING, SETHEADING } |
Protected Attributes | |
| ArActionDesired | myDesired |
| RotRegime | myRotRegime |
| double | myRotVal |
| bool | myUsingVel |
| double | myVelSet |
This action sets up how we want to drive
Definition at line 37 of file ArActionInput.h.
|
|
Constructor.
Definition at line 34 of file ArActionInput.cpp. References clear(). |
|
|
Fires the action, returning what the action wants to do.
Implements ArAction. Definition at line 74 of file ArActionInput.cpp. References ArLog::log(), ArActionDesired::reset(), ArActionDesired::setDeltaHeading(), ArActionDesired::setHeading(), ArActionDesired::setRotVel(), and ArActionDesired::setVel(). |
1.4.0