#include <ArActionLimiterTableSensor.h>
Inheritance diagram for ArActionLimiterTableSensor:
Public Member Functions | |
ArActionLimiterTableSensor (const char *name="TableSensorLimiter") | |
Constructor. | |
virtual ArActionDesired * | fire (ArActionDesired currentDesired) |
Fires the action, returning what the action wants to do. | |
virtual ArActionDesired * | getDesired (void) |
Gets what this action wants to do (for display purposes). | |
virtual | ~ArActionLimiterTableSensor () |
Destructor. | |
Protected Attributes | |
ArActionDesired | myDesired |
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.
|
Fires the action, returning what the action wants to do.
Implements ArAction. Definition at line 44 of file ArActionLimiterTableSensor.cpp. References ArRobot::hasTableSensingIR(), ArRobot::isLeftTableSensingIRTriggered(), ArRobot::isRightTableSensingIRTriggered(), ArActionDesired::reset(), and ArActionDesired::setMaxVel(). |