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

#include <filters.h>

Inheritance diagram for MovingAverageFilter< T >:
Inheritance graph
[legend]

Public Member Functions

void clear ()
 
void input (T input_value)
 
 MovingAverageFilter (int num_data)
 
output ()
 
 ~MovingAverageFilter ()
 
- Public Member Functions inherited from Filter< T >
void add (const EventType &evt)
 
 Filter ()=default
 
virtual ~Filter ()=default
 
- Public Member Functions inherited from SimpleFilter< Msg >
const std::string & getName ()
 
Connection registerCallback (const boost::function< void(P)> &callback)
 
Connection registerCallback (const C &callback)
 
Connection registerCallback (void(*callback)(P))
 
Connection registerCallback (void(T::*callback)(P), T *t)
 
void setName (const std::string &name)
 

Private Attributes

T * buffer_
 
int idx_
 
int num_data_
 
sum_
 

Additional Inherited Members

- Public Types inherited from Filter< T >
typedef ros::MessageEvent< Msg const > EventType
 
- Public Types inherited from SimpleFilter< Msg >
typedef boost::function< void(const MConstPtr &)> Callback
 
typedef boost::function< void(const EventType &)> EventCallback
 
typedef ros::MessageEvent< Msg const > EventType
 
typedef boost::shared_ptr< Msg const > MConstPtr
 
- Protected Member Functions inherited from SimpleFilter< Msg >
void signalMessage (const MConstPtr &msg)
 
void signalMessage (const ros::MessageEvent< Msg const > &event)
 

Detailed Description

template<typename T>
class MovingAverageFilter< T >

Definition at line 87 of file filters.h.

Constructor & Destructor Documentation

◆ MovingAverageFilter()

template<typename T >
MovingAverageFilter< T >::MovingAverageFilter ( int  num_data)
explicit

Definition at line 40 of file filters.cpp.

◆ ~MovingAverageFilter()

template<typename T >
MovingAverageFilter< T >::~MovingAverageFilter

Definition at line 70 of file filters.cpp.

Member Function Documentation

◆ clear()

template<typename T >
void MovingAverageFilter< T >::clear
virtual

Implements Filter< T >.

Definition at line 63 of file filters.cpp.

◆ input()

template<typename T >
void MovingAverageFilter< T >::input ( input_value)
virtual

Implements Filter< T >.

Definition at line 47 of file filters.cpp.

◆ output()

template<typename T >
T MovingAverageFilter< T >::output
virtual

Implements Filter< T >.

Definition at line 57 of file filters.cpp.

Member Data Documentation

◆ buffer_

template<typename T >
T* MovingAverageFilter< T >::buffer_
private

Definition at line 97 of file filters.h.

◆ idx_

template<typename T >
int MovingAverageFilter< T >::idx_
private

Definition at line 99 of file filters.h.

◆ num_data_

template<typename T >
int MovingAverageFilter< T >::num_data_
private

Definition at line 98 of file filters.h.

◆ sum_

template<typename T >
T MovingAverageFilter< T >::sum_
private

Definition at line 100 of file filters.h.


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


rm_common
Author(s):
autogenerated on Thu Mar 6 2025 03:23:29