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

ArActionInput Class Reference

Action for taking input from outside to control the robot. More...

#include <ArActionInput.h>

Inheritance diagram for ArActionInput:

ArAction List of all members.

Public Member Functions

 ArActionInput (const char *name="Input")
 Constructor.
void clear (void)
 Clears it so its not using vel or heading.
void deltaHeadingFromCurrent (double delta)
 Increment/decrement the heading from current.
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).
void setHeading (double heading)
 Sets a heading.
void setRotVel (double rotVel)
 Sets a rotational velocity.
void setVel (double vel)
 Set velocity (cancels deltaVel).
virtual ~ArActionInput ()
 Destructor.

Protected Types

enum  RotRegime { NONE, ROTVEL, DELTAHEADING, SETHEADING }

Protected Attributes

ArActionDesired myDesired
RotRegime myRotRegime
double myRotVal
bool myUsingVel
double myVelSet

Detailed Description

Action for taking input from outside to control the robot.

This action sets up how we want to drive

Definition at line 37 of file ArActionInput.h.


Constructor & Destructor Documentation

ArActionInput::ArActionInput const char *  name = "Input"  ) 
 

Constructor.

Parameters:
name name of the action

Definition at line 34 of file ArActionInput.cpp.

References clear().


Member Function Documentation

ArActionDesired * ArActionInput::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 74 of file ArActionInput.cpp.

References ArLog::log(), ArActionDesired::reset(), ArActionDesired::setDeltaHeading(), ArActionDesired::setHeading(), ArActionDesired::setRotVel(), and ArActionDesired::setVel().


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