One-pole quaternion filter. More...
#include <ignition/math/Filter.hh>
Public Member Functions | |
| OnePoleQuaternion () | |
| Constructor. | |
| OnePoleQuaternion (double _fc, double _fs) | |
| Constructor. | |
| const math::Quaterniond & | Process (const math::Quaterniond &_x) |
| Update the filter's output. | |
Public Member Functions inherited from ignition::math::IGNITION_MATH_VERSION_NAMESPACE::OnePole< math::Quaterniond > | |
| OnePole ()=default | |
| Constructor. | |
| OnePole ()=default | |
| Constructor. | |
| OnePole (double _fc, double _fs) | |
| Constructor. | |
| OnePole (double _fc, double _fs) | |
| Constructor. | |
| virtual void | Fc (double _fc, double _fs) |
| Set the cutoff frequency and sample rate. | |
| virtual void | Fc (double _fc, double _fs) |
| Set the cutoff frequency and sample rate. | |
| const math::Quaterniond & | Process (const math::Quaterniond &_x) |
| Update the filter's output. | |
| const math::Quaterniond & | Process (const math::Quaterniond &_x) |
| Update the filter's output. | |
Public Member Functions inherited from ignition::math::IGNITION_MATH_VERSION_NAMESPACE::Filter< T > | |
| virtual | ~Filter () |
| Destructor. | |
| virtual void | Fc (double _fc, double _fs)=0 |
| Set the cutoff frequency and sample rate. | |
| virtual void | Set (const T &_val) |
| Set the output of the filter. | |
| virtual const T & | Value () const |
| Get the output of the filter. | |
Additional Inherited Members | |
Protected Attributes inherited from ignition::math::IGNITION_MATH_VERSION_NAMESPACE::OnePole< math::Quaterniond > | |
| double | a0 |
| Input gain control. | |
| double | a0 |
| Input gain control. | |
| double | b1 |
| Gain of the feedback. | |
| double | b1 |
| Gain of the feedback. | |
Protected Attributes inherited from ignition::math::IGNITION_MATH_VERSION_NAMESPACE::Filter< T > | |
| T | y0 {} |
| Output. | |
One-pole quaternion filter.
|
inline |
Constructor.
References ignition::math::IGNITION_MATH_VERSION_NAMESPACE::Filter< T >::Set().
|
inline |
Constructor.
| [in] | _fc | Cutoff frequency. |
| [in] | _fs | Sample rate. |
References ignition::math::IGNITION_MATH_VERSION_NAMESPACE::Filter< T >::Set().
|
inline |
Update the filter's output.
\paran[in] _x Input value.
References ignition::math::IGNITION_MATH_VERSION_NAMESPACE::OnePole< math::Quaterniond >::a0, ignition::math::IGNITION_MATH_VERSION_NAMESPACE::Quaternion< T >::Slerp(), and ignition::math::IGNITION_MATH_VERSION_NAMESPACE::Filter< T >::y0.