#include <ArActionBumpers.h>
Inheritance diagram for ArActionBumpers::
Public Methods | |
ArActionBumpers (const char *name="bumpers", double backOffSpeed=100, int backOffTime=2500, int turnTime=500, bool setMaximums=false) | |
Constructor. More... | |
virtual | ~ArActionBumpers (void) |
Destructor. | |
virtual ArActionDesired * | fire (ArActionDesired currentDesired) |
Fires the action, returning what the action wants to do. More... | |
virtual ArActionDesired * | getDesired (void) |
Gets what this action wants to do (for display purposes). |
This class basically responds to the bumpers the robot has, what the activity things the robot has is decided by the param file. If the robot is going forwards and bumps into something with the front bumpers, it will back up and turn. If the robot is going backwards and bumps into something with the rear bumpers then the robot will move forward and turn.
|
Constructor.
|
|
Fires the action, returning what the action wants to do.
Reimplemented from ArAction. |