ViSP
2.8.0
|
#include <vpAdaptiveGain.h>
Public Member Functions | |
vpAdaptiveGain (void) | |
void | initFromConstant (double lambda) |
void | initFromVoid (void) |
void | initStandard (double en_zero, double en_infini, double pente_en_zero) |
double | setConstant (void) |
double | value_const (double val_e) const |
double | value (double val_e) const |
double | limitValue_const (void) const |
double | limitValue (void) const |
double | getLastValue (void) const |
double | operator() (double val_e) const |
double | operator() (const vpColVector &e) const |
double | operator() (void) const |
Static Public Attributes | |
static const double | DEFAULT_LAMBDA_ZERO = 1.666 |
static const double | DEFAULT_LAMBDA_INFINI = 0.1666 |
static const double | DEFAULT_LAMBDA_PENTE = 1.666 |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &os, const vpAdaptiveGain &lambda) |
Adaptive gain computation.
The formula used to compute the gain is the following :
where , and are parameters which must be set and is the vector error of the task.
By default, the parameters are set with default values:
with , and .
represents the gain in 0, represents the gain to infinity and represents the slope in 0.
Definition at line 78 of file vpAdaptiveGain.h.
vpAdaptiveGain::vpAdaptiveGain | ( | void | ) |
Basic constructor which initializes the parameters with a default value.
Definition at line 66 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
|
inline |
Gets the last adaptive gain value which was stored in the class.
Definition at line 155 of file vpAdaptiveGain.h.
void vpAdaptiveGain::initFromConstant | ( | double | lambda | ) |
Initializes the parameters to have a constant gain. Thus , and
lambda | : the expected constant gain. |
Definition at line 90 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
void vpAdaptiveGain::initFromVoid | ( | void | ) |
Initializes the parameters with the default value :
Definition at line 110 of file vpAdaptiveGain.cpp.
References DEFAULT_LAMBDA_INFINI, DEFAULT_LAMBDA_PENTE, DEFAULT_LAMBDA_ZERO, and vpDEBUG_TRACE.
void vpAdaptiveGain::initStandard | ( | double | en_zero, |
double | en_infini, | ||
double | pente_en_zero | ||
) |
Computes the parameters thanks to the given , and .
represents the gain in 0, represents the gain to infinity and represents the slope in 0.
en_zero | : the expected gain in 0. |
en_infini | : the expected gain to infinity. |
pente_en_zero | : the expected slope in 0. |
Definition at line 133 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
double vpAdaptiveGain::limitValue | ( | void | ) | const |
Gets the value of the gain at infinity (ie the value of )and stores it as a parameter of the class.
Definition at line 256 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
double vpAdaptiveGain::limitValue_const | ( | void | ) | const |
Gets the value of the gain at infinity (ie the value of ).
Definition at line 214 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
double vpAdaptiveGain::operator() | ( | double | val_e | ) | const |
Operator which calls the value(double val_e) method with val_e in parameter in order to compute the adaptive gain corresponding to val_e.
val_e | : Norm of the task function . |
Definition at line 287 of file vpAdaptiveGain.cpp.
double vpAdaptiveGain::operator() | ( | const vpColVector & | e | ) | const |
Operator which calls the value(double val_e) method with the infinity norm of e in parameter in order to compute the adaptive gain corresponding to .
e | : the task function . |
Definition at line 312 of file vpAdaptiveGain.cpp.
double vpAdaptiveGain::operator() | ( | void | ) | const |
Gets the value of the gain at infinity (ie the value of ).
Definition at line 298 of file vpAdaptiveGain.cpp.
double vpAdaptiveGain::setConstant | ( | void | ) |
Sets the parameters in order to obtain a constant gain equal to the gain in 0.
Definition at line 168 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
double vpAdaptiveGain::value | ( | double | val_e | ) | const |
Computes the value of the adaptive gain corresponding to the norm of the task function and stores it as a parameter of the class. The formula used for the gain computation is the following:
val_e | : Norm of the task function . |
Definition at line 238 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
double vpAdaptiveGain::value_const | ( | double | val_e | ) | const |
Computes the value of the adaptive gain corresponding to the norm of the task function. The formula is the following:
val_e | : Norm of the task function . |
Definition at line 197 of file vpAdaptiveGain.cpp.
References vpDEBUG_TRACE.
|
friend |
Prints the adaptive gain coefficients. It prints the gain in 0, the gain to infinity and the slope in 0.
os | : The stream where to print the adaptive gain parameters. |
lambda | : The adaptive gain containing the parameters to print. |
Definition at line 335 of file vpAdaptiveGain.cpp.
|
static |
Definition at line 84 of file vpAdaptiveGain.h.
Referenced by initFromVoid().
|
static |
Definition at line 85 of file vpAdaptiveGain.h.
Referenced by initFromVoid().
|
static |
Definition at line 83 of file vpAdaptiveGain.h.
Referenced by initFromVoid().