A class to provide median filtering of laser scans in time. More...
#include <median_filter.h>
Public Member Functions | |
bool | configure () |
LaserMedianFilter () | |
Constructor. More... | |
bool | update (const sensor_msgs::LaserScan &scan_in, sensor_msgs::LaserScan &scan_out) |
Update the filter and get the response. More... | |
~LaserMedianFilter () | |
Public Member Functions inherited from filters::FilterBase< sensor_msgs::LaserScan > | |
bool | configure (const std::string ¶m_name, ros::NodeHandle node_handle=ros::NodeHandle()) |
bool | configure (XmlRpc::XmlRpcValue &config) |
FilterBase () | |
const std::string & | getName () const |
std::string | getType () |
virtual | ~FilterBase () |
Private Attributes | |
boost::mutex | data_lock |
How many data point are in each row. More... | |
unsigned int | filter_length_ |
filters::MultiChannelFilterChain< float > * | intensity_filter_ |
unsigned int | num_ranges_ |
How many scans to average over. More... | |
filters::MultiChannelFilterChain< float > * | range_filter_ |
sensor_msgs::LaserScan | temp_scan_ |
Protection from multi threaded programs. More... | |
XmlRpc::XmlRpcValue | xmlrpc_value_ |
Additional Inherited Members | |
Protected Member Functions inherited from filters::FilterBase< sensor_msgs::LaserScan > | |
bool | getParam (const std::string &name, std::string &value) const |
bool | getParam (const std::string &name, XmlRpc::XmlRpcValue &value) const |
bool | getParam (const std::string &name, double &value) const |
bool | getParam (const std::string &name, std::vector< double > &value) const |
bool | getParam (const std::string &name, unsigned int &value) const |
bool | getParam (const std::string &name, int &value) const |
bool | getParam (const std::string &name, std::vector< std::string > &value) const |
bool | getParam (const std::string &name, bool &value) const |
bool | loadConfiguration (XmlRpc::XmlRpcValue &config) |
Protected Attributes inherited from filters::FilterBase< sensor_msgs::LaserScan > | |
bool | configured_ |
std::string | filter_name_ |
std::string | filter_type_ |
string_map_t | params_ |
A class to provide median filtering of laser scans in time.
Definition at line 49 of file median_filter.h.
laser_filters::LaserMedianFilter::LaserMedianFilter | ( | ) |
Constructor.
averaging_length | How many scans to average over. |
Definition at line 35 of file median_filter.cpp.
laser_filters::LaserMedianFilter::~LaserMedianFilter | ( | ) |
Definition at line 60 of file median_filter.cpp.
|
virtual |
Implements filters::FilterBase< sensor_msgs::LaserScan >.
Definition at line 41 of file median_filter.cpp.
|
virtual |
Update the filter and get the response.
scan_in | The new scan to filter |
scan_out | The filtered scan |
Quickly pass through all data
Implements filters::FilterBase< sensor_msgs::LaserScan >.
Definition at line 66 of file median_filter.cpp.
|
private |
How many data point are in each row.
Definition at line 71 of file median_filter.h.
|
private |
Definition at line 68 of file median_filter.h.
|
private |
Definition at line 77 of file median_filter.h.
|
private |
How many scans to average over.
Definition at line 69 of file median_filter.h.
|
private |
Definition at line 76 of file median_filter.h.
|
private |
Protection from multi threaded programs.
Definition at line 72 of file median_filter.h.
|
private |
Definition at line 74 of file median_filter.h.