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

ArForbiddenRangeDevice Class Reference

Class that takes forbidden lines and turns them into range readings. More...

#include <ArForbiddenRangeDevice.h>

Inheritance diagram for ArForbiddenRangeDevice:

ArRangeDevice List of all members.

Public Member Functions

 ArForbiddenRangeDevice (ArMap *armap, double distanceIncrement=100, unsigned int maxRange=4000, const char *name="forbidden")
 Constructor.
void disable (void)
 Disables readings until reenabled.
void enable (void)
 Enable readings.
ArFunctorgetDisableCB (void)
 Gets a callback to disable the device.
ArFunctorgetEnableCB (void)
 Gets a callback to enable the device.
bool isEnabled (void) const
 Sees if this device is active or not.
void processMap (void)
 Saves the forbidden lines from the map.
void processReadings (void)
 Remakes the readings.
virtual void setRobot (ArRobot *robot)
 Sets the robot pointer and attachs its process function.
virtual ~ArForbiddenRangeDevice ()
 Destructor.

Protected Attributes

ArMutex myDataMutex
ArFunctorC< ArForbiddenRangeDevicemyDisableCB
double myDistanceIncrement
ArFunctorC< ArForbiddenRangeDevicemyEnableCB
bool myIsEnabled
ArMapmyMap
ArFunctorC< ArForbiddenRangeDevicemyMapChangedCB
ArFunctorC< ArForbiddenRangeDevicemyProcessCB
std::list< ArLineSegment * > mySegments

Detailed Description

Class that takes forbidden lines and turns them into range readings.

Definition at line 35 of file ArForbiddenRangeDevice.h.


Constructor & Destructor Documentation

ArForbiddenRangeDevice::ArForbiddenRangeDevice ArMap armap,
double  distanceIncrement = 100,
unsigned int  maxRange = 4000,
const char *  name = "forbidden"
 

Constructor.

This will take a map and then convert the forbidden lines into range device readings every cycle.

It doesn't add any data for drawing the current range device readings since the lines themselves show up in the map.

Parameters:
armap the map to use forbidden lines from
distanceIncrement how many mm to increment search in sensor readings for forbidden lines
maxRange how far out to look total
name the name of the device

Definition at line 46 of file ArForbiddenRangeDevice.cpp.

References ArFunctor::setName().


The documentation for this class was generated from the following files:
Generated on Wed Oct 19 12:56:46 2005 for Aria by  doxygen 1.4.0