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, unsigned int data_size, std::vector< LaserDataFilter::Buffer * > &in) | |
Constructor. More... | |
void | filter () |
Filter the incoming data. More... | |
![]() | |
LaserDataFilter (unsigned int in_data_size, std::vector< Buffer * > &in, unsigned int out_size) | |
Constructor. More... | |
virtual | ~LaserDataFilter () |
Virtual empty destructor. More... | |
virtual std::vector< Buffer * > & | get_out_vector () |
Get filtered data array. More... | |
virtual unsigned int | get_out_data_size () |
Get size of filtered data array. More... | |
void | set_array_ownership (bool own_in, bool own_out) |
Set input/output array ownership. More... | |
bool | owns_in () const |
Check if input arrays are owned by filter. More... | |
bool | owns_out () const |
Check if output arrays are owned by filter. More... | |
Additional Inherited Members | |
![]() | |
virtual void | set_out_data_size (unsigned int data_size) |
Resize output arrays. More... | |
void | reset_outbuf (Buffer *b) |
Resets all readings in outbuf to 0.0. More... | |
void | copy_to_outbuf (Buffer *outbuf, const Buffer *inbuf) |
Copies the readings from inbuf to outbuf. More... | |
![]() | |
unsigned int | out_data_size |
Number of entries in output arrays. More... | |
unsigned int | in_data_size |
Number of entries in input arrays. More... | |
std::vector< Buffer * > | in |
Vector of input arrays. More... | |
std::vector< Buffer * > | out |
Vector of output arrays. More... | |
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, | ||
unsigned int | in_data_size, | ||
std::vector< LaserDataFilter::Buffer * > & | in | ||
) |
Constructor.
config | configuration instance |
logger | logger for informational output |
prefix | configuration prefix where to log for config information |
in_data_size | number of entries input value arrays |
in | vector of input arrays |
Definition at line 54 of file deadspots.cpp.
References fawkes::Configuration::get_float(), LaserDataFilter::in_data_size, fawkes::Logger::log_debug(), fawkes::Configuration::ValueIterator::next(), LaserDataFilter::out, LaserDataFilter::out_data_size, fawkes::Configuration::ValueIterator::path(), fawkes::Configuration::search(), and LaserDataFilter::set_out_vector().
|
virtual |
Filter the incoming data.
Function shall filter the data in the "in" member vector and write output to the "out" member vector.
Implements LaserDataFilter.
Definition at line 146 of file deadspots.cpp.
References LaserDataFilter::in, and LaserDataFilter::in_data_size.