|
sot-core
4.11.8
Hierarchical task solver plug-in for dynamic-graph.
|
#include <sot/core/gain-adaptive.hh>

Public Member Functions | |
| virtual void | display (std::ostream &os) const |
| virtual const std::string & | getClassName (void) const |
| GainAdaptive (const std::string &name) | |
| GainAdaptive (const std::string &name, const double &lambda) | |
| GainAdaptive (const std::string &name, const double &valueAt0, const double &valueAtInfty, const double &tanAt0) | |
| void | init (void) |
| void | init (const double &lambda) |
| void | init (const double &valueAt0, const double &valueAtInfty, const double &tanAt0) |
| void | initFromPassingPoint (const double &valueAt0, const double &valueAtInfty, const double &errorReference, const double &percentage) |
Set the gain by providing the value at 0, at \( \infty \) and the percentage of accomplishment between both to be reached when the error is errorReference. More... | |
| void | forceConstant (void) |
Public Attributes | |
| dynamicgraph::SignalPtr< dynamicgraph::Vector, int > | errorSIN |
| dynamicgraph::SignalTimeDependent< double, int > | gainSOUT |
Static Public Attributes | |
| static const double | ZERO_DEFAULT |
| static const double | INFTY_DEFAULT |
| static const double | TAN_DEFAULT |
| static const std::string | CLASS_NAME |
Protected Member Functions | |
| double & | computeGain (double &res, int t) |
Protected Attributes | |
| double | coeff_a |
| double | coeff_b |
| double | coeff_c |
Exponentially decreasing gain. It follows the law
\[ g(e) = a \exp (-b ||e||) + c \]
.
The default values for
| dynamicgraph::sot::GainAdaptive::GainAdaptive | ( | const std::string & | name | ) |
| dynamicgraph::sot::GainAdaptive::GainAdaptive | ( | const std::string & | name, |
| const double & | lambda | ||
| ) |
| dynamicgraph::sot::GainAdaptive::GainAdaptive | ( | const std::string & | name, |
| const double & | valueAt0, | ||
| const double & | valueAtInfty, | ||
| const double & | tanAt0 | ||
| ) |
|
protected |
|
virtual |
| void dynamicgraph::sot::GainAdaptive::forceConstant | ( | void | ) |
|
inlinevirtual |
|
inline |
| void dynamicgraph::sot::GainAdaptive::init | ( | const double & | valueAt0, |
| const double & | valueAtInfty, | ||
| const double & | tanAt0 | ||
| ) |
|
inline |
| void dynamicgraph::sot::GainAdaptive::initFromPassingPoint | ( | const double & | valueAt0, |
| const double & | valueAtInfty, | ||
| const double & | errorReference, | ||
| const double & | percentage | ||
| ) |
Set the gain by providing the value at 0, at \( \infty \) and the percentage of accomplishment between both to be reached when the error is errorReference.
To visualize the curve of the gain versus the error, use
|
static |
|
protected |
|
protected |
|
protected |
| dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::GainAdaptive::errorSIN |
| dynamicgraph::SignalTimeDependent<double, int> dynamicgraph::sot::GainAdaptive::gainSOUT |
|
static |
|
static |
|
static |