Fawkes API Fawkes Development Version

LaserReverseAngleDataFilter Class Reference

Reverse the angle of beams. More...

#include "reverse_angle.h"

Inheritance diagram for LaserReverseAngleDataFilter:

List of all members.

Public Member Functions

 LaserReverseAngleDataFilter (unsigned int data_size)
 Constructor.
void filter (const float *data, unsigned int data_size)
 Filter the incoming data.

Detailed Description

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.

Author:
Tim Niemueller

Definition at line 28 of file reverse_angle.h.


Constructor & Destructor Documentation

LaserReverseAngleDataFilter::LaserReverseAngleDataFilter ( unsigned int  data_size)

Constructor.

Parameters:
data_sizeData 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.


Member Function Documentation

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.

Parameters:
datathe laser data
data_sizethe 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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends