#include <ArActionLimiterBackwards.h>
Inheritance diagram for ArActionLimiterBackwards:

This class limits the backwards motion of the robot according to range sensor readings (e.g. sonar, laser), and the parameters given. When the range sensor (e.g. sonar or laser) detects rearward obstacles closer than the given parameters, this action requests that the robot decelerate or stop any current backwards movement.
Public Member Functions | |
| ArActionLimiterBackwards (const char *name="speed limiter", double stopDistance=-250, double slowDistance=-600, double maxBackwardsSpeed=-250, double widthRatio=1.5) | |
| Constructor. | |
| virtual ArActionDesired * | fire (ArActionDesired currentDesired) |
| virtual const ArActionDesired * | getDesired (void) const |
| virtual ArActionDesired * | getDesired (void) |
| virtual | ~ArActionLimiterBackwards () |
| Destructor. | |
Protected Attributes | |
| ArActionDesired | myDesired |
| double | myMaxBackwardsSpeed |
| double | mySlowDist |
| double | myStopDist |
| double | myWidthRatio |
| ArActionLimiterBackwards::ArActionLimiterBackwards | ( | const char * | name = "speed limiter", |
|
| double | stopDistance = -250, |
|||
| double | slowDistance = -600, |
|||
| double | maxBackwardsSpeed = -250, |
|||
| double | widthRatio = 1.5 | |||
| ) |
Constructor.
| name | name of the action | |
| stopDistance | distance at which to stop (mm) | |
| slowDistance | distance at which to slow down (mm) | |
| maxBackwardsSpeed | maximum backwards speed, speed allowed scales from this to 0 at the stop distance (mm/sec) | |
| widthRatio | The ratio of robot width to the width of the region this action checks for sensor readings. |
1.4.7