XBotInterface
2.4.1
XBotInterface provides a generic API to model and control a robot.
|
SecondOrderFilter implements a canonical continuous-time second order filter with transfer function 1 P(s) = --------------------—, w = natural frequency, eps = damping ratio (s/w)^2 + 2*eps/w*s + 1. More...
#include <Utils.h>
Public Types | |
typedef std::shared_ptr< SecondOrderFilter< SignalType > > | Ptr |
Public Member Functions | |
SecondOrderFilter () | |
SecondOrderFilter (double omega, double eps, double ts, const SignalType &initial_state) | |
void | reset (const SignalType &initial_state) |
const SignalType & | process (const SignalType &input) |
const SignalType & | getOutput () const |
void | setOmega (double omega) |
double | getOmega () |
void | setDamping (double eps) |
double | getDamping () |
void | setTimeStep (double ts) |
double | getTimeStep () |
SecondOrderFilter implements a canonical continuous-time second order filter with transfer function 1 P(s) = --------------------—, w = natural frequency, eps = damping ratio (s/w)^2 + 2*eps/w*s + 1.
and discretized according to a trapezoidal (aka Tustin) scheme. This yields a difference equation of the following form:
a0*y + a1*yd + a2*ydd = u + b1*ud + b2*udd
where yd = y(k-1), ydd = y(k-2) and so on (d = delayed).
typedef std::shared_ptr<SecondOrderFilter<SignalType> > XBot::Utils::SecondOrderFilter< SignalType >::Ptr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |