#include <ArActionAvoidSide.h>
Inheritance diagram for ArActionAvoidSide:
Public Member Functions | |
ArActionAvoidSide (const char *name="Avoid side", double obstacleDistance=300, double turnAmount=5) | |
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 | ~ArActionAvoidSide () |
Destructor. | |
Protected Attributes | |
ArActionDesired | myDesired |
double | myObsDist |
double | myTurnAmount |
bool | myTurning |
This action watches the sensors to see if it is close to firening into a wall at a shallow enough angle that other avoidance may not avoid.
Definition at line 38 of file ArActionAvoidSide.h.
|
Constructor.
Definition at line 38 of file ArActionAvoidSide.cpp. References ArAction::setNextArgument(). |
|
Fires the action, returning what the action wants to do.
Implements ArAction. Definition at line 59 of file ArActionAvoidSide.cpp. References ArRobot::checkRangeDevicesCurrentPolar(), ArRobot::getRobotRadius(), ArActionDesired::reset(), ArActionDesired::setDeltaHeading(), and ArActionDesired::setVel(). |