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

ArActionLimiterTableSensor Class Reference

Action to limit speed (and stop) based on whether the "table"-sensors see anything. More...

#include <ArActionLimiterTableSensor.h>

Inheritance diagram for ArActionLimiterTableSensor:

ArAction List of all members.

Public Member Functions

 ArActionLimiterTableSensor (const char *name="TableSensorLimiter")
 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 ~ArActionLimiterTableSensor ()
 Destructor.

Protected Attributes

ArActionDesired myDesired

Detailed Description

Action to limit speed (and stop) based on whether the "table"-sensors see anything.

This action limits speed to 0 if the table-sensors see anything in front of the robot. The action will only work if the robot has table sensors, meaning that the robots parameter file has them listed as true.

Definition at line 39 of file ArActionLimiterTableSensor.h.


Member Function Documentation

ArActionDesired * ArActionLimiterTableSensor::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 44 of file ArActionLimiterTableSensor.cpp.

References ArRobot::hasTableSensingIR(), ArRobot::isLeftTableSensingIRTriggered(), ArRobot::isRightTableSensingIRTriggered(), ArActionDesired::reset(), and ArActionDesired::setMaxVel().


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