LaserDeadSpotsDataFilter Class Reference
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. | |
Detailed Description
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.
Constructor & Destructor Documentation
| LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter | ( | fawkes::Configuration * | config, | |
| fawkes::Logger * | logger, | |||
| std::string | prefix | |||
| ) |
Constructor.
- Parameters:
-
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::Logger::log_debug(), fawkes::Configuration::ValueIterator::next(), fawkes::Configuration::ValueIterator::path(), and fawkes::Configuration::search().
Member Function Documentation
| 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.
- Parameters:
-
data the laser data data_size the number of elements in the data array
Implements LaserDataFilter.
Definition at line 113 of file deadspots.cpp.
References LaserDataFilter::_filtered_data, and LaserDataFilter::_filtered_data_size.
The documentation for this class was generated from the following files:
- src/plugins/laser/filters/deadspots.h
- src/plugins/laser/filters/deadspots.cpp

