Public Member Functions | Private Attributes
laser_filters::LaserMedianFilter Class Reference

A class to provide median filtering of laser scans in time. More...

#include <median_filter.h>

Inheritance diagram for laser_filters::LaserMedianFilter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool configure ()
 LaserMedianFilter ()
 Constructor.
bool update (const sensor_msgs::LaserScan &scan_in, sensor_msgs::LaserScan &scan_out)
 Update the filter and get the response.
 ~LaserMedianFilter ()

Private Attributes

boost::mutex data_lock
 How many data point are in each row.
unsigned int filter_length_
filters::MultiChannelFilterChain
< float > * 
intensity_filter_
unsigned int num_ranges_
 How many scans to average over.
filters::MultiChannelFilterChain
< float > * 
range_filter_
sensor_msgs::LaserScan temp_scan_
 Protection from multi threaded programs.
XmlRpc::XmlRpcValue xmlrpc_value_

Detailed Description

A class to provide median filtering of laser scans in time.

Definition at line 49 of file median_filter.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
averaging_lengthHow many scans to average over.

Definition at line 35 of file median_filter.cpp.

Definition at line 60 of file median_filter.cpp.


Member Function Documentation

Implements filters::FilterBase< sensor_msgs::LaserScan >.

Definition at line 41 of file median_filter.cpp.

bool laser_filters::LaserMedianFilter::update ( const sensor_msgs::LaserScan &  scan_in,
sensor_msgs::LaserScan &  scan_out 
) [virtual]

Update the filter and get the response.

Parameters:
scan_inThe new scan to filter
scan_outThe filtered scan

Quickly pass through all data

Todo:
don't copy data too
Todo:
check for length of intensities too

Implements filters::FilterBase< sensor_msgs::LaserScan >.

Definition at line 66 of file median_filter.cpp.


Member Data Documentation

How many data point are in each row.

Definition at line 71 of file median_filter.h.

Definition at line 68 of file median_filter.h.

Definition at line 77 of file median_filter.h.

How many scans to average over.

Definition at line 69 of file median_filter.h.

Definition at line 76 of file median_filter.h.

sensor_msgs::LaserScan laser_filters::LaserMedianFilter::temp_scan_ [private]

Protection from multi threaded programs.

Definition at line 72 of file median_filter.h.

Todo:
cache only shallow info not full scan

Definition at line 74 of file median_filter.h.


The documentation for this class was generated from the following files:


laser_filters
Author(s): Tully Foote
autogenerated on Fri Jan 3 2014 11:27:39