Public Member Functions | Private Attributes | List of all members
grid_map::MeanInRadiusFilter< T > Class Template Reference

#include <MeanInRadiusFilter.hpp>

Inheritance diagram for grid_map::MeanInRadiusFilter< T >:
Inheritance graph
[legend]

Public Member Functions

virtual bool configure ()
 
 MeanInRadiusFilter ()
 
virtual bool update (const T &mapIn, T &mapOut)
 
virtual ~MeanInRadiusFilter ()
 
- Public Member Functions inherited from filters::FilterBase< T >
bool configure (const std::string &param_name, ros::NodeHandle node_handle=ros::NodeHandle())
 
bool configure (XmlRpc::XmlRpcValue &config)
 
 FilterBase ()
 
const std::string & getName ()
 
std::string getType ()
 
virtual ~FilterBase ()
 

Private Attributes

std::string inputLayer_
 Input layer name. More...
 
std::string outputLayer_
 Output layer name. More...
 
double radius_
 Radius to take the mean from. More...
 

Additional Inherited Members

- Protected Member Functions inherited from filters::FilterBase< T >
bool getParam (const std::string &name, std::string &value)
 
bool getParam (const std::string &name, XmlRpc::XmlRpcValue &value)
 
bool getParam (const std::string &name, double &value)
 
bool getParam (const std::string &name, std::vector< double > &value)
 
bool getParam (const std::string &name, unsigned int &value)
 
bool getParam (const std::string &name, int &value)
 
bool getParam (const std::string &name, std::vector< std::string > &value)
 
bool getParam (const std::string &name, bool &value)
 
bool loadConfiguration (XmlRpc::XmlRpcValue &config)
 
- Protected Attributes inherited from filters::FilterBase< T >
bool configured_
 
std::string filter_name_
 
std::string filter_type_
 
string_map_t params_
 

Detailed Description

template<typename T>
class grid_map::MeanInRadiusFilter< T >

Filter class to find the mean of the values inside a radius.

Definition at line 22 of file MeanInRadiusFilter.hpp.

Constructor & Destructor Documentation

template<typename T >
grid_map::MeanInRadiusFilter< T >::MeanInRadiusFilter ( )

Constructor

Definition at line 19 of file MeanInRadiusFilter.cpp.

template<typename T >
grid_map::MeanInRadiusFilter< T >::~MeanInRadiusFilter ( )
virtual

Destructor.

Definition at line 25 of file MeanInRadiusFilter.cpp.

Member Function Documentation

template<typename T >
bool grid_map::MeanInRadiusFilter< T >::configure ( )
virtual

Configures the filter from parameters on the Parameter Server

Implements filters::FilterBase< T >.

Definition at line 30 of file MeanInRadiusFilter.cpp.

template<typename T >
bool grid_map::MeanInRadiusFilter< T >::update ( const T &  mapIn,
T &  mapOut 
)
virtual

Computes for each value in the input layer the mean of all values in a radius around it Saves this mean in an additional output layer.

Parameters
mapIngrid map containing the input layer.
mapOutgrid map containing the layers of the input map and the new layer.

Implements filters::FilterBase< T >.

Definition at line 61 of file MeanInRadiusFilter.cpp.

Member Data Documentation

template<typename T >
std::string grid_map::MeanInRadiusFilter< T >::inputLayer_
private

Input layer name.

Definition at line 53 of file MeanInRadiusFilter.hpp.

template<typename T >
std::string grid_map::MeanInRadiusFilter< T >::outputLayer_
private

Output layer name.

Definition at line 56 of file MeanInRadiusFilter.hpp.

template<typename T >
double grid_map::MeanInRadiusFilter< T >::radius_
private

Radius to take the mean from.

Definition at line 50 of file MeanInRadiusFilter.hpp.


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


grid_map_filters
Author(s): P├ęter Fankhauser , Martin Wermelinger
autogenerated on Fri Feb 19 2021 03:15:19