Downsample filter from 720 to 360 values. More...
#include "720to360.h"
Public Member Functions | |
Laser720to360DataFilter (bool average=false) | |
Constructor. | |
void | filter (const float *data, unsigned int data_size) |
Filter the incoming data. |
Downsample filter from 720 to 360 values.
Definition at line 28 of file 720to360.h.
Laser720to360DataFilter::Laser720to360DataFilter | ( | bool | average = false |
) |
Constructor.
average | if true, beams will be averaged by left and right neighbours, otherwise every second beam will be used |
Definition at line 38 of file 720to360.cpp.
References LaserDataFilter::_filtered_data, and LaserDataFilter::_filtered_data_size.
void Laser720to360DataFilter::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 46 of file 720to360.cpp.
References LaserDataFilter::_filtered_data.