#include <mc_filter/LowPassCompose.h>
Public Member Functions | |
LowPassCompose (double dt, double period=0) | |
double | cutoffPeriod () const |
void | cutoffPeriod (double period) |
void | reset (const T &value) |
void | update (const T &newValue_hp, const T &newValue_lp) |
const T & | eval () const |
const T & | input_lp () const |
const T & | input_hp () const |
double | dt () const |
void | dt (double dt) |
Protected Attributes | |
double | dt_ = 0.005 |
Compose filter of Low-pass and High-pass filter from two series of measurements.
Expects T to have:
|
inline |
Constructor with cutoff period.
dt | Sampling period. |
period | Cutoff period. |
|
inline |
Get cutoff period of the high pass filter.
|
inline |
Set cutoff period.
period | New cutoff period. |
|
inline |
Get sampling period.
|
inline |
Set sampling period.
dt | Sampling period. |
|
inline |
Get filtered velocity.
|
inline |
|
inline |
|
inline |
Reset position to an initial rest value.
pos | New position. |
|
inline |
Update estimate from new two sources
newValue_hp | New observed value filtered throught high pass. |
newValue_lp | New observed value filtered throught low pass. |
|
protected |