#include <ArSonarDevice.h>
Inheritance diagram for ArSonarDevice:
Public Member Functions | |
virtual void | addReading (double x, double y) |
ArSonarDevice (size_t currentBufferSize=24, size_t cumulativeBufferSize=64, const char *name="sonar") | |
Constructor. | |
void | processReadings (void) |
Grabs the new readings from the robot and adds them to the buffers. | |
void | setCumulativeMaxRange (double range) |
you should see and use setMaxDistToKeepCumulative (it replaces this) | |
virtual void | setRobot (ArRobot *robot) |
virtual | ~ArSonarDevice () |
Destructor. | |
Protected Attributes | |
double | myFilterFarDist |
double | myFilterNearDist |
ArFunctorC< ArSonarDevice > | myProcessCB |
This class is for keeping a sonar history, and using that for obstacle avoidance and displays and what not
Definition at line 41 of file ArSonarDevice.h.
|
Adds sonar readings to the current and cumulative buffers Overrides the ArRangeDevice default action Reimplemented from ArRangeDevice. Definition at line 116 of file ArSonarDevice.cpp. References ArRangeBuffer::addReading(), ArRangeBuffer::beginInvalidationSweep(), ArRangeBuffer::endInvalidationSweep(), ArRangeBuffer::getBuffer(), ArRobot::getX(), ArRobot::getY(), and ArRangeBuffer::invalidateReading(). Referenced by processReadings(). |
|
Sets the robot pointer, also attaches its process function to the sensorInterp of the robot Reimplemented from ArRangeDevice. Definition at line 60 of file ArSonarDevice.cpp. References ArRobot::addSensorInterpTask(), and ArRangeDevice::setRobot(). |