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. More... | |
~Dither () | |
Destructor. More... | |
Static Public Member Functions | |
static double | generateRandomSeed () |
Private Attributes | |
double | amplitude_ |
std::mt19937 | generator_ |
bool | has_saved_value_ |
double | s_ |
double | saved_value_ |
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.
control_toolbox::Dither::Dither | ( | ) |
Definition at line 43 of file dither.cpp.
control_toolbox::Dither::~Dither | ( | ) |
Destructor.
Definition at line 48 of file dither.cpp.
|
inlinestatic |
|
inline |
double control_toolbox::Dither::update | ( | ) |
Get next Gaussian white noise point. Called in RT loop.
Definition at line 52 of file dither.cpp.
|
private |
|
private |