Gives white noise at specified amplitude. More...
#include <dither.h>
Public Member Functions | |
Dither () | |
bool | init (const double &litude, const double &seed) |
double | update () |
Get next Gaussian white noise point. Called in RT loop. | |
~Dither () | |
Destructor. | |
Private Attributes | |
double | amplitude_ |
bool | has_saved_value_ |
double | s_ |
double | saved_value_ |
unsigned short | seed_ [3] |
double | x_ |
Gives white noise at specified amplitude.
This class gives white noise at the given amplitude when update() is called. It can be used to vibrate joints or to break static friction.
Definition at line 41 of file dither.cpp.
Destructor.
Definition at line 46 of file dither.cpp.
bool control_toolbox::Dither::init | ( | const double & | amplitude, |
const double & | seed | ||
) | [inline] |
double control_toolbox::Dither::update | ( | void | ) |
Get next Gaussian white noise point. Called in RT loop.
Definition at line 50 of file dither.cpp.
double control_toolbox::Dither::amplitude_ [private] |
bool control_toolbox::Dither::has_saved_value_ [private] |
double control_toolbox::Dither::s_ [private] |
double control_toolbox::Dither::saved_value_ [private] |
unsigned short control_toolbox::Dither::seed_[3] [private] |
double control_toolbox::Dither::x_ [private] |