Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ArAction Class Reference

Action class, what typically makes the robot move. More...

#include <ArAction.h>

Inheritance diagram for ArAction:

ArActionAvoidFront ArActionAvoidSide ArActionBumpers ArActionColorFollow ArActionConstantVelocity ArActionDeceleratingLimiter ArActionGoto ArActionGotoStraight ArActionInput ArActionIRs ArActionJoydrive ArActionKeydrive ArActionLimiterBackwards ArActionLimiterForwards ArActionLimiterTableSensor ArActionMovementParameters ArActionRatioInput ArActionRobotJoydrive ArActionStallRecover ArActionStop ArActionTriangleDriveTo ArActionTurn List of all members.

Public Member Functions

virtual void activate (void)
 Activate the action.
 ArAction (const char *name, const char *description="")
 Constructor.
virtual void deactivate (void)
 Deactivate the action.
virtual ArActionDesiredfire (ArActionDesired currentDesired)=0
 Fires the action, returning what the action wants to do.
virtual ArArggetArg (int number)
 Gets the numbered argument.
virtual const ArArggetArg (int number) const
 Gets the numbered argument.
virtual const char * getDescription (void) const
 Gets the long description of the action.
virtual ArActionDesiredgetDesired (void)
 Gets what this action wants to do (for display purposes).
virtual const char * getName (void) const
 Gets the name of the action.
virtual int getNumArgs (void) const
 Find the number of arguments this action takes.
virtual bool isActive (void) const
 Finds out whether the action is active or not.
virtual void log (bool verbose=true) const
 ArLog::log s the actions stats.
virtual void setRobot (ArRobot *robot)
 Sets the robot this action is driving.
virtual ~ArAction ()
 Desructor.

Protected Member Functions

void setNextArgument (ArArg const &arg)
 Sets the argument type for the next argument (only use in constructor).

Protected Attributes

std::map< int, ArArgmyArgumentMap
std::string myDescription
bool myIsActive
std::string myName
int myNumArgs
ArRobotmyRobot

Detailed Description

Action class, what typically makes the robot move.

Definition at line 39 of file ArAction.h.


Member Function Documentation

virtual ArActionDesired* ArAction::fire ArActionDesired  currentDesired  )  [pure virtual]
 

Fires the action, returning what the action wants to do.

Parameters:
currentDesired this is what the current resolver has for its desired, this is SOLELY for the purpose of giving information to the action
Returns:
pointer to what this action wants to do, NULL if it wants to do nothing

Implemented in ArActionAvoidFront, ArActionAvoidSide, ArActionBumpers, ArActionColorFollow, ArActionConstantVelocity, ArActionDeceleratingLimiter, ArActionGoto, ArActionGotoStraight, ArActionInput, ArActionIRs, ArActionJoydrive, ArActionKeydrive, ArActionLimiterBackwards, ArActionLimiterForwards, ArActionLimiterTableSensor, ArActionMovementParameters, ArActionRatioInput, ArActionRobotJoydrive, ArActionStallRecover, ArActionStop, ArActionTriangleDriveTo, and ArActionTurn.


The documentation for this class was generated from the following files:
Generated on Wed Oct 19 12:56:38 2005 for Aria by  doxygen 1.4.0