Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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.

Definition at line 37 of file ArIRs.h.

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

Definition at line 39 of file ArIRs.cpp.


Member Function Documentation

void ArIRs::processReadings void   ) 
 

This function is called every 100 milliseconds.

Definition at line 77 of file ArIRs.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 10:51:43 2007 for Aria by  doxygen 1.4.0