lipm_walking_controller
1.6.0
|
Compute velocity by finite difference of position measurements, applying a low-pass filter to it. More...
#include <lipm_walking/utils/LowPassVelocityFilter.h>
Public Member Functions | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | LowPassVelocityFilter (double dt) |
Constructor. More... | |
LowPassVelocityFilter (double dt, double period) | |
Constructor with cutoff period. More... | |
double | cutoffPeriod () const |
Get cutoff period. More... | |
void | cutoffPeriod (double period) |
Set cutoff period. More... | |
void | reset (T pos) |
Reset position to an initial rest value. More... | |
void | update (const T &newPos) |
Update velocity estimate from new position value. More... | |
void | updatePositionOnly (const T &newPos) |
Update position only. More... | |
const T & | vel () |
Get filtered velocity. More... | |
Compute velocity by finite difference of position measurements, applying a low-pass filter to it.
Definition at line 40 of file LowPassVelocityFilter.h.
|
inline |
|
inline |
Constructor with cutoff period.
dt | Sampling period. |
period | Cutoff period. |
Definition at line 61 of file LowPassVelocityFilter.h.
|
inline |
Get cutoff period.
Definition at line 70 of file LowPassVelocityFilter.h.
|
inline |
Set cutoff period.
period | New cutoff period. |
Definition at line 80 of file LowPassVelocityFilter.h.
|
inline |
Reset position to an initial rest value.
pos | New position. |
Definition at line 91 of file LowPassVelocityFilter.h.
|
inline |
Update velocity estimate from new position value.
newPos | New observed position. |
Definition at line 102 of file LowPassVelocityFilter.h.
|
inline |
Update position only.
Definition at line 114 of file LowPassVelocityFilter.h.
|
inline |
Get filtered velocity.
Definition at line 122 of file LowPassVelocityFilter.h.