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

ArActionMovementParameters Class Reference

#include <ArActionMovementParameters.h>

Inheritance diagram for ArActionMovementParameters:

ArAction List of all members.

Detailed Description

This is a class for setting max velocities and accels and decels.

Definition at line 36 of file ArActionMovementParameters.h.

Public Member Functions

void addToConfig (ArConfig *config, const char *section, const char *prefix=NULL)
 Adds to the ArConfig given, in section, with prefix.
 ArActionMovementParameters (const char *name="MovementParameters", bool overrideFaster=true)
 Constructor.
void disable (void)
 Disables this action (separate from deactivating it).
void enable (void)
 Enables this action (separate from activating it).
void enableOnceFromSector (ArMapObject *mapObject)
 Enables this action in a way that'll work from the sector callbacks.
virtual ArActionDesiredfire (ArActionDesired currentDesired)
virtual const ArActionDesiredgetDesired (void) const
virtual ArActionDesiredgetDesired (void)
void setParameters (double maxVel=0, double maxNegVel=0, double transAccel=0, double transDecel=0, double rotVelMax=0, double rotAccel=0, double rotDecel=0)
 Sets the parameters (don't use this if you're using the addToConfig).
virtual ~ArActionMovementParameters ()
 Destructor.

Protected Attributes

ArActionDesired myDesired
bool myEnabled
bool myEnableOnce
double myMaxNegVel
double myMaxRotVel
double myMaxVel
bool myOverrideFaster
double myRotAccel
double myRotDecel
double myTransAccel
double myTransDecel


Constructor & Destructor Documentation

ArActionMovementParameters::ArActionMovementParameters const char *  name = "MovementParameters",
bool  overrideFaster = true
 

Constructor.

Parameters:
name the name of this instance of the action
overrideFaster if this is set to true and a fast max vel is set and our max vel is lower we'll set the vel with all our strength (since hopefully that faster setting was set with minimum strength)

Definition at line 40 of file ArActionMovementParameters.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 10:51:42 2007 for Aria by  doxygen 1.4.0