Public Member Functions | Private Attributes
sr_math_utils::filters::LowPassFilter Class Reference

#include <sr_math_utils.hpp>

List of all members.

Public Member Functions

std::pair< double, double > compute (double q, double timestamp)
 LowPassFilter (double tau=0.05)

Private Attributes

double dt
bool is_first
double q_prev
double tau
double timestamp_1
std::pair< double, double > value_derivative

Detailed Description

Definition at line 165 of file sr_math_utils.hpp.


Constructor & Destructor Documentation

Definition at line 168 of file sr_math_utils.hpp.


Member Function Documentation

std::pair<double, double> sr_math_utils::filters::LowPassFilter::compute ( double  q,
double  timestamp 
) [inline]

Computes the filtered value and its derivative.

Parameters:
qthe newly received value.
timestampthe time at which the last measurement was made (in sec).
Returns:
a pair containing the filtered value first, then the derivative.

Definition at line 187 of file sr_math_utils.hpp.


Member Data Documentation

Definition at line 215 of file sr_math_utils.hpp.

Definition at line 211 of file sr_math_utils.hpp.

Definition at line 215 of file sr_math_utils.hpp.

Definition at line 215 of file sr_math_utils.hpp.

Definition at line 215 of file sr_math_utils.hpp.

std::pair<double, double> sr_math_utils::filters::LowPassFilter::value_derivative [private]

Definition at line 217 of file sr_math_utils.hpp.


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


sr_utilities
Author(s): Ugo Cupcic
autogenerated on Fri Aug 28 2015 13:08:44