Fawkes API Fawkes Development Version
|
Erase dead spots (i.e. More...
#include "filters/deadspots.h"
Public Member Functions | |
LaserDeadSpotsDataFilter (fawkes::Configuration *config, fawkes::Logger *logger, std::string prefix) | |
Constructor. | |
void | filter (const float *data, unsigned int data_size) |
Filter the incoming data. |
Erase dead spots (i.e.
mounting rods in the laser range) from laser data. This filter reads a number of values stored in /hardware/laser/deadspots, where each dead spot must contain two entries, a start and an end in degrees. Each entry is stored as submembers of the given tree, for example as /hardware/laser/deadspots/0/start and /hardware/laser/deadspots/0/end.
Definition at line 37 of file deadspots.h.
LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter | ( | fawkes::Configuration * | config, |
fawkes::Logger * | logger, | ||
std::string | prefix | ||
) |
Constructor.
config | configuration instance |
logger | logger for informational output |
prefix | configuration prefix where to log for config information |
Definition at line 52 of file deadspots.cpp.
References fawkes::Configuration::get_float(), fawkes::Configuration::ValueIterator::next(), fawkes::Configuration::ValueIterator::path(), and fawkes::Configuration::search().
void LaserDeadSpotsDataFilter::filter | ( | const float * | data, |
unsigned int | data_size | ||
) | [virtual] |
Filter the incoming data.
Function shall create the _filtered_data float array with the same size as the incoming data and write filtered data to this interface or copy through the original value if the filter does not apply.
data | the laser data |
data_size | the number of elements in the data array |
Implements LaserDataFilter.
Definition at line 113 of file deadspots.cpp.