#include <ArActionLimiterForwards.h>
Inheritance diagram for ArActionLimiterForwards:
Public Member Functions | |
ArActionLimiterForwards (const char *name="speed limiter", double stopDistance=250, double slowDistance=1000, double slowSpeed=200, double widthRatio=1) | |
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). | |
void | setParameters (double stopDistance=250, double slowDistance=1000, double slowSpeed=200, double widthRatio=1) |
virtual | ~ArActionLimiterForwards () |
Destructor. | |
Protected Attributes | |
ArActionDesired | myDesired |
bool | myLastStopped |
double | mySlowDist |
double | mySlowSpeed |
double | myStopDist |
double | myWidthRatio |
This action uses the sensors to find a maximum forwared speed to travel at; when the range sensor (e.g. sonar or laser) detects obstacles closer than the given parameters, this action requests that the robot decelerate or stop.
Definition at line 39 of file ArActionLimiterForwards.h.
|
Constructor.
Definition at line 40 of file ArActionLimiterForwards.cpp. References ArAction::setNextArgument(). |
|
Fires the action, returning what the action wants to do.
Implements ArAction. Definition at line 90 of file ArActionLimiterForwards.cpp. References ArRobot::checkRangeDevicesCurrentBox(), ArRobot::getRobotLength(), ArRobot::getRobotWidth(), ArActionDesired::reset(), and ArActionDesired::setMaxVel(). |
|
Definition at line 78 of file ArActionLimiterForwards.cpp. |