Demonstration laser data filter. More...
#include "circle.h"
Public Member Functions | |
LaserCircleDataFilter (float radius) | |
Constructor. | |
void | filter (const float *data, unsigned int data_size) |
Filter the incoming data. |
Demonstration laser data filter.
Cuts off all beams that are longer than a given radius.
Definition at line 28 of file circle.h.
LaserCircleDataFilter::LaserCircleDataFilter | ( | float | radius | ) |
Constructor.
radius | radius of cut-off circle in meters |
Definition at line 37 of file circle.cpp.
void LaserCircleDataFilter::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 43 of file circle.cpp.
References LaserDataFilter::_filtered_data, and LaserDataFilter::_filtered_data_size.