Reverse the angle of beams. More...
#include "reverse_angle.h"
Public Member Functions | |
LaserReverseAngleDataFilter (unsigned int data_size) | |
Constructor. | |
void | filter (const float *data, unsigned int data_size) |
Filter the incoming data. |
Reverse the angle of beams.
This filter will reverse the direction in which the beams are stored. If the original interface stores the data in clockwise direction, the outcome will be in counter-clockwise direction and vice versa. This is required for example to convert between the (clockwise) RCSoftX angles, and the (counter-clockwise) angles in the Fawkes coordinate system.
Definition at line 28 of file reverse_angle.h.
LaserReverseAngleDataFilter::LaserReverseAngleDataFilter | ( | unsigned int | data_size | ) |
Constructor.
data_size | Data size of the input. Output size will be the same. The input data must have the exact same data size. |
Definition at line 43 of file reverse_angle.cpp.
References LaserDataFilter::_filtered_data, and LaserDataFilter::_filtered_data_size.
void LaserReverseAngleDataFilter::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 50 of file reverse_angle.cpp.
References LaserDataFilter::_filtered_data, and LaserDataFilter::_filtered_data_size.
Referenced by LaserSensorThread::loop().