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

ArActionConstantVelocity Class Reference

Action for going straight at a constant velocity. More...

#include <ArActionConstantVelocity.h>

Inheritance diagram for ArActionConstantVelocity:

ArAction List of all members.

Public Member Functions

 ArActionConstantVelocity (const char *name="Constant Velocity", double velocity=400)
 Constructor.
virtual ArActionDesiredfire (ArActionDesired currentDesired)
 Fires the action, returning what the action wants to do.
virtual ArActionDesiredgetDesired (void)
 Gets what this action wants to do (for display purposes).
virtual ~ArActionConstantVelocity ()
 Destructor.

Protected Attributes

ArActionDesired myDesired
double myVelocity

Detailed Description

Action for going straight at a constant velocity.

This action simply goes straight at a constant velocity.

Definition at line 37 of file ArActionConstantVelocity.h.


Constructor & Destructor Documentation

ArActionConstantVelocity::ArActionConstantVelocity const char *  name = "Constant Velocity",
double  velocity = 400
 

Constructor.

Parameters:
name name of the action
velocity velocity to travel at (mm/sec)

Definition at line 35 of file ArActionConstantVelocity.cpp.

References ArAction::setNextArgument().


Member Function Documentation

ArActionDesired * ArActionConstantVelocity::fire ArActionDesired  currentDesired  )  [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

Implements ArAction.

Definition at line 49 of file ArActionConstantVelocity.cpp.

References ArActionDesired::reset(), ArActionDesired::setDeltaHeading(), and ArActionDesired::setVel().


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