#include <ArActionKeydrive.h>
Inheritance diagram for ArActionKeydrive::
Public Methods | |
ArActionKeydrive (const char *name="keydrive", double transVelMax=400, double turnAmountMax=24, double velIncrement=25, double turnIncrement=8) | |
Constructor. | |
virtual | ~ArActionKeydrive (void) |
Destructor. | |
virtual ArActionDesired * | fire (ArActionDesired currentDesired) |
Fires the action, returning what the action wants to do. More... | |
void | setSpeeds (double transVelMax, double turnAmountMax) |
For setting the maximum speeds. | |
void | setIncrements (double velIncrement, double turnIncrement) |
For setting the increment amounts. | |
virtual ArActionDesired * | getDesired (void) |
Gets what this action wants to do (for display purposes). | |
virtual void | setRobot (ArRobot *robot) |
Sets the robot this action is driving. | |
virtual void | activate (void) |
Activate the action. | |
virtual void | deactivate (void) |
Deactivate the action. | |
void | takeKeys (void) |
Takes the keys this action wants to use to drive. | |
void | giveUpKeys (void) |
Gives up the keys this action wants to use to drive. | |
void | up (void) |
Internal, callback for up arrow. | |
void | down (void) |
Internal, callback for down arrow. | |
void | left (void) |
Internal, callback for left arrow. | |
void | right (void) |
Internal, callback for right arrow. | |
void | space (void) |
Internal, callback for space key. |
|
Fires the action, returning what the action wants to do.
Reimplemented from ArAction. |