#include <ArAction.h>
Inheritance diagram for ArAction::
Public Methods | |
ArAction (const char *name, const char *description="") | |
Constructor. | |
virtual | ~ArAction (void) |
Desructor. | |
virtual bool | isActive (void) |
Finds out whether the action is active or not. | |
virtual void | activate (void) |
Activate the action. | |
virtual void | deactivate (void) |
Deactivate the action. | |
virtual ArActionDesired * | fire (ArActionDesired currentDesired)=0 |
Fires the action, returning what the action wants to do. More... | |
virtual void | setRobot (ArRobot *robot) |
Sets the robot this action is driving. | |
virtual int | getNumArgs (void) |
Find the number of arguments this action takes. | |
virtual ArArg * | getArg (int number) |
Gets the numbered argument. | |
virtual std::string | getName (void) |
Gets the name of the action. | |
virtual std::string | getDescription (void) |
Gets the long description of the action. | |
virtual ArActionDesired * | getDesired (void) |
Gets what this action wants to do (for display purposes). | |
virtual void | print (void) |
ArLog::log s the actions stats. | |
Protected Methods | |
void | setNextArgument (ArArg const &arg) |
Sets the argument type for the next argument (only use in constructor). |
|
Fires the action, returning what the action wants to do.
Reimplemented in ArActionAvoidFront, ArActionAvoidSide, ArActionBumpers, ArActionConstantVelocity, ArActionGoto, ArActionInput, ArActionJoydrive, ArActionKeydrive, ArActionLimiterBackwards, ArActionLimiterForwards, ArActionLimiterTableSensor, ArActionStallRecover, ArActionStop, and ArActionTurn. |