Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

ArActionBumpers Class Reference

#include <ArActionBumpers.h>

Inheritance diagram for ArActionBumpers:

ArAction List of all members.

Detailed Description

Action to deal with if the bumpers trigger.

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.

Examples:

actionGroupExample.cpp.


Public Member Functions

 ArActionBumpers (const char *name="bumpers", double backOffSpeed=100, int backOffTime=3000, int turnTime=3000, bool setMaximums=false)
 Constructor.
double findDegreesToTurn (int bumpValue, int whichBumper)
virtual ArActionDesiredfire (ArActionDesired currentDesired)
virtual const ArActionDesiredgetDesired (void) const
virtual ArActionDesiredgetDesired (void)
virtual ~ArActionBumpers ()
 Destructor.

Protected Attributes

double myBackOffSpeed
int myBackOffTime
int myBumpMask
ArActionDesired myDesired
bool myFiring
double myHeading
bool mySetMaximums
double mySpeed
ArTime myStartBack
int myTurnTime


Constructor & Destructor Documentation

ArActionBumpers::ArActionBumpers const char *  name = "bumpers",
double  backOffSpeed = 100,
int  backOffTime = 3000,
int  turnTime = 3000,
bool  setMaximums = false
 

Constructor.

Parameters:
name name of the action instance
backOffSpeed speed at which to back away (mm/sec)
backOffTime number of milisecons to back up for (msec)
turnTime number of milisecons to alow for turn (msec)
setMaximums if true, set desired maximum translation velocity limits to backOffSpeed while performing the action; if false, retain existing limits.


The documentation for this class was generated from the following files:
Generated on Thu Jan 7 10:34:40 2010 for Aria by  doxygen 1.4.2