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

ArIRs Class Reference

#include <ArIRs.h>

Inheritance diagram for ArIRs:

ArRangeDevice List of all members.

Detailed Description

A class that treats the robot's Infareds as a range device.


Public Member Functions

 ArIRs (size_t currentBufferSize=10, size_t cumulativeBufferSize=10, const char *name="irs", int maxSecondsToKeepCurrent=15)
void processReadings (void)
virtual void setRobot (ArRobot *robot)

Protected Attributes

std::vector< int > cycleCounters
ArRobotParams myParams
ArFunctorC< ArIRsmyProcessCB


Constructor & Destructor Documentation

ArIRs::ArIRs size_t  currentBufferSize = 10,
size_t  cumulativeBufferSize = 10,
const char *  name = "irs",
int  maxSecondsToKeepCurrent = 15
 

Parameters:
currentBufferSize The number of readings to store in the current Buffer
cumulativeBufferSize The number of readings in the cumulative buffer (This currently is not being used)
name The name of this range device
maxSecondsToKeepCurrent How long to keep readings in the current buffer


Member Function Documentation

void ArIRs::processReadings void   ) 
 

This function is called every 100 milliseconds.


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