Fawkes API  Fawkes Development Version
LaserDeadSpotsDataFilter Class Reference

Erase dead spots (i.e. More...

#include "filters/deadspots.h"

Inheritance diagram for LaserDeadSpotsDataFilter:

List of all members.

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.

Author:
Tim Niemueller

Constructor & Destructor Documentation

LaserDeadSpotsDataFilter::LaserDeadSpotsDataFilter ( fawkes::Configuration config,
fawkes::Logger logger,
std::string  prefix 
)

Constructor.

Parameters:
configconfiguration instance
loggerlogger for informational output
prefixconfiguration prefix where to log for config information

Definition at line 52 of file deadspots.cpp.

References fawkes::Configuration::search(), fawkes::Configuration::ValueIterator::next(), fawkes::Configuration::ValueIterator::path(), and fawkes::Configuration::get_float().


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:
datathe laser data
data_sizethe number of elements in the data array

Implements LaserDataFilter.

Definition at line 113 of file deadspots.cpp.


The documentation for this class was generated from the following files: