Laser720to360DataFilter Class Reference
Downsample filter from 720 to 360 values. More...
#include <720to360.h>
Inheritance diagram for Laser720to360DataFilter:

Public Member Functions | |
| Laser720to360DataFilter (bool average=false) | |
| Constructor. | |
| void | filter (const float *data, unsigned int data_size) |
| Filter the incoming data. | |
Detailed Description
Downsample filter from 720 to 360 values.
Definition at line 28 of file 720to360.h.
Constructor & Destructor Documentation
| Laser720to360DataFilter::Laser720to360DataFilter | ( | bool | average = false |
) |
Constructor.
- Parameters:
-
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.
Member Function Documentation
| 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.
- Parameters:
-
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.
The documentation for this class was generated from the following files:
- src/plugins/laser/filters/720to360.h
- src/plugins/laser/filters/720to360.cpp

