A Base filter class to provide a standard interface for all filters.
More...
#include <filter_base.hpp>
|
virtual bool | configure ()=0 |
| Pure virtual function for the sub class to configure the filter This function must be implemented in the derived class. More...
|
|
bool | getParam (const std::string &name, bool &value) const |
| Get a filter parameter as a boolean. More...
|
|
bool | getParam (const std::string &name, double &value) const |
| Get a filter parameter as a double. More...
|
|
bool | getParam (const std::string &name, int &value) const |
| Get a filter parameter as a int. More...
|
|
bool | getParam (const std::string &name, std::string &value) const |
| Get a filter parameter as a string. More...
|
|
bool | getParam (const std::string &name, std::vector< double > &value) const |
| Get a filter parameter as a std::vector<double> More...
|
|
bool | getParam (const std::string &name, std::vector< std::string > &value) const |
| Get a filter parameter as a std::vector<string> More...
|
|
bool | getParam (const std::string &name, unsigned int &value) const |
| Get a filter parameter as an unsigned int. More...
|
|
bool | getParam (const std::string &name, XmlRpc::XmlRpcValue &value) const |
| Get a filter parameter as a XmlRpcValue. More...
|
|
bool | loadConfiguration (XmlRpc::XmlRpcValue &config) |
|
template<typename T>
class filters::FilterBase< T >
A Base filter class to provide a standard interface for all filters.
Definition at line 47 of file filter_base.hpp.
◆ FilterBase()
Default constructor used by Filter Factories.
Definition at line 52 of file filter_base.hpp.
◆ ~FilterBase()
◆ configure() [1/3]
◆ configure() [2/3]
Configure the filter from the parameter server.
- Parameters
-
The | parameter from which to read the configuration |
node_handle | The optional node handle, useful if operating in a different namespace. |
Definition at line 62 of file filter_base.hpp.
◆ configure() [3/3]
The public method to configure a filter from XML.
- Parameters
-
config | The XmlRpcValue from which the filter should be initialized |
Definition at line 77 of file filter_base.hpp.
◆ getName()
◆ getParam() [1/8]
Get a filter parameter as a boolean.
- Parameters
-
name | The name of the parameter |
value | The boolean to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 140 of file filter_base.hpp.
◆ getParam() [2/8]
Get a filter parameter as a double.
- Parameters
-
name | The name of the parameter |
value | The double to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 162 of file filter_base.hpp.
◆ getParam() [3/8]
Get a filter parameter as a int.
- Parameters
-
name | The name of the parameter |
value | The int to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 184 of file filter_base.hpp.
◆ getParam() [4/8]
template<typename T >
bool filters::FilterBase< T >::getParam |
( |
const std::string & |
name, |
|
|
std::string & |
value |
|
) |
| const |
|
inlineprotected |
Get a filter parameter as a string.
- Parameters
-
name | The name of the parameter |
value | The string to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 118 of file filter_base.hpp.
◆ getParam() [5/8]
template<typename T >
bool filters::FilterBase< T >::getParam |
( |
const std::string & |
name, |
|
|
std::vector< double > & |
value |
|
) |
| const |
|
inlineprotected |
Get a filter parameter as a std::vector<double>
- Parameters
-
name | The name of the parameter |
value | The std::vector<double> to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 221 of file filter_base.hpp.
◆ getParam() [6/8]
template<typename T >
bool filters::FilterBase< T >::getParam |
( |
const std::string & |
name, |
|
|
std::vector< std::string > & |
value |
|
) |
| const |
|
inlineprotected |
Get a filter parameter as a std::vector<string>
- Parameters
-
name | The name of the parameter |
value | The std::vector<sgring> to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 255 of file filter_base.hpp.
◆ getParam() [7/8]
template<typename T >
bool filters::FilterBase< T >::getParam |
( |
const std::string & |
name, |
|
|
unsigned int & |
value |
|
) |
| const |
|
inlineprotected |
Get a filter parameter as an unsigned int.
- Parameters
-
name | The name of the parameter |
value | The int to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 206 of file filter_base.hpp.
◆ getParam() [8/8]
Get a filter parameter as a XmlRpcValue.
- Parameters
-
name | The name of the parameter |
value | The XmlRpcValue to set with the value |
- Returns
- Whether or not the parameter of name/type was set
Definition at line 288 of file filter_base.hpp.
◆ getType()
◆ loadConfiguration()
◆ setNameAndType()
Set the name and type of the filter from the parameter server.
- Parameters
-
param_name | The parameter from which to read |
Definition at line 315 of file filter_base.hpp.
◆ update()
◆ configured_
◆ filter_name_
◆ filter_type_
◆ params_
The documentation for this class was generated from the following file: