Fawkes API  Fawkes Development Version
Laser720to360DataFilter Class Reference

Downsample filter from 720 to 360 values. More...

#include "720to360.h"

Inheritance diagram for Laser720to360DataFilter:

Public Member Functions

 Laser720to360DataFilter (const std::string filter_name, bool average, unsigned int in_data_size, std::vector< LaserDataFilter::Buffer *> &in)
 Constructor. More...
 
void filter ()
 Filter the incoming data. More...
 
- Public Member Functions inherited from LaserDataFilter
 LaserDataFilter (const std::string filter_name, 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 void set_out_vector (std::vector< Buffer *> &out)
 Set 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

- Protected Member Functions inherited from LaserDataFilter
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 NaN. More...
 
void copy_to_outbuf (Buffer *outbuf, const Buffer *inbuf)
 Copies the readings from inbuf to outbuf. More...
 
- Protected Attributes inherited from LaserDataFilter
const std::string filter_name
 Name of the specific filter instance. 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...
 

Detailed Description

Downsample filter from 720 to 360 values.

Author
Tim Niemueller

Definition at line 28 of file 720to360.h.

Constructor & Destructor Documentation

◆ Laser720to360DataFilter()

Laser720to360DataFilter::Laser720to360DataFilter ( const std::string  filter_name,
bool  average,
unsigned int  in_data_size,
std::vector< LaserDataFilter::Buffer *> &  in 
)

Constructor.

Parameters
filter_namename of this filter instance
averageif true, beams will be averaged by left and right neighbours, otherwise every second beam will be used
in_data_sizenumber of entries input value arrays
invector of input arrays

Definition at line 42 of file 720to360.cpp.

References LaserDataFilter::set_out_data_size().

Member Function Documentation

◆ filter()

void Laser720to360DataFilter::filter ( )
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 57 of file 720to360.cpp.

References LaserDataFilter::in, and LaserDataFilter::out.


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