|
mc_rtc
2.14.0
|
#include <mc_filter/LowPass.h>

Public Member Functions | |
| LowPass (double dt, double period=0) | |
| double | cutoffPeriod () const |
| void | cutoffPeriod (double period) |
| void | reset (const T &value) |
| void | update (const T &newValue) |
| const T & | eval () const |
| double | dt () const |
| void | dt (double dt) |
Protected Attributes | |
| double | dt_ = 0.005 |
Low-pass filter from series of velocity measurements.
Expects T to have:
|
inline |
Constructor with cutoff period.
| dt | Sampling period. |
| period | Cutoff period. |
|
inline |
Get cutoff period.
|
inline |
Set cutoff period.
| period | New cutoff period. |
|
inline |
Get sampling period.
|
inline |
Set sampling period.
| dt | Sampling period. |
|
inline |
Get filtered velocity.
|
inline |
Reset position to an initial rest value.
| pos | New position. |
|
inline |
Update velocity estimate from new position value.
| newPos | New observed position. |
|
protected |