One-dimensional digital filter class. More...
#include <transfer_function.hpp>

Public Member Functions | |
| virtual bool | configure () | 
| Configure the filter with the correct number of channels and params.  More... | |
| SingleChannelTransferFunctionFilter () | |
| Construct the filter.  More... | |
| virtual bool | update (const T &data_in, T &data_out) | 
| Update the filter and return the data seperately.  More... | |
| ~SingleChannelTransferFunctionFilter () | |
| Destructor to clean up.  More... | |
  Public Member Functions inherited from filters::FilterBase< T > | |
| bool | configure (const std::string ¶m_name, ros::NodeHandle node_handle=ros::NodeHandle()) | 
| Configure the filter from the parameter server.  More... | |
| bool | configure (XmlRpc::XmlRpcValue &config) | 
| The public method to configure a filter from XML.  More... | |
| FilterBase () | |
| Default constructor used by Filter Factories.  More... | |
| const std::string & | getName () const | 
| Get the name of the filter as a string.  More... | |
| std::string | getType () | 
| Get the type of the filter as a string.  More... | |
| virtual | ~FilterBase () | 
| Virtual Destructor.  More... | |
Protected Attributes | |
| std::vector< double > | a_ | 
| std::vector< double > | b_ | 
| std::unique_ptr< RealtimeCircularBuffer< T > > | input_buffer_ | 
| std::unique_ptr< RealtimeCircularBuffer< T > > | output_buffer_ | 
| T | temp_ | 
  Protected Attributes inherited from filters::FilterBase< T > | |
| bool | configured_ | 
| Whether the filter has been configured.  More...  | |
| std::string | filter_name_ | 
| The name of the filter.  More... | |
| std::string | filter_type_ | 
| The type of the filter (Used by FilterChain for Factory construction)  More... | |
| string_map_t | params_ | 
| Storage of the parsed xml parameters.  More... | |
Additional Inherited Members | |
  Protected Member Functions inherited from filters::FilterBase< T > | |
| 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) | 
One-dimensional digital filter class.
This class calculates the output for 
 one-dimensional digital filters. The filter is described by vectors 
 and 
 and implemented using the standard difference equation:
If 
 is not equal to 1, the coefficients are normalized by 
.
Example xml config:
<filter type="TransferFunctionFilter" name="filter_name">
 <params a="1.0 0.5" b="0.2 0.2">
 </filter>
 
Definition at line 73 of file transfer_function.hpp.
| filters::SingleChannelTransferFunctionFilter< T >::SingleChannelTransferFunctionFilter | 
Construct the filter.
Definition at line 112 of file transfer_function.hpp.
| filters::SingleChannelTransferFunctionFilter< T >::~SingleChannelTransferFunctionFilter | 
Destructor to clean up.
Definition at line 117 of file transfer_function.hpp.
      
  | 
  virtual | 
Configure the filter with the correct number of channels and params.
| number_of_channels | The number of inputs filtered. | 
| config | The xml that is parsed to configure the filter. | 
Implements filters::FilterBase< T >.
Definition at line 122 of file transfer_function.hpp.
      
  | 
  virtual | 
Update the filter and return the data seperately.
| data_in | vector<T> with number_of_channels elements | 
| data_out | vector<T> with number_of_channels elements | 
Implements filters::FilterBase< T >.
Definition at line 169 of file transfer_function.hpp.
      
  | 
  protected | 
Definition at line 106 of file transfer_function.hpp.
      
  | 
  protected | 
Definition at line 107 of file transfer_function.hpp.
      
  | 
  protected | 
Definition at line 101 of file transfer_function.hpp.
      
  | 
  protected | 
Definition at line 102 of file transfer_function.hpp.
      
  | 
  protected | 
Definition at line 104 of file transfer_function.hpp.