#include <ArActionTurn.h>
Inheritance diagram for ArActionTurn:
Public Member Functions | |
ArActionTurn (const char *name="turn", double speedStartTurn=200, double speedFullTurn=100, double turnAmount=15) | |
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 | ~ArActionTurn () |
Destructor. | |
Protected Attributes | |
ArActionDesired | myDesired |
double | mySpeedFull |
double | mySpeedStart |
double | myTurnAmount |
double | myTurning |
This action is basically made so that you can just have a ton of limiters of different kinds and types to keep speed under control, then throw this into the mix to have the robot wander. Note that the turn amount ramps up to turnAmount starting at 0 at speedStartTurn and hitting the full amount at speedFullTurn.
Definition at line 41 of file ArActionTurn.h.
|
Fires the action, returning what the action wants to do.
Implements ArAction. Definition at line 58 of file ArActionTurn.cpp. References ArRobot::checkRangeDevicesCurrentPolar(), ArRobot::getVel(), ArActionDesired::reset(), and ArActionDesired::setDeltaHeading(). |