10 #ifndef __SOT_GAIN_ADAPTATIVE_HH__
11 #define __SOT_GAIN_ADAPTATIVE_HH__
18 #include <dynamic-graph/linear-algebra.h>
21 #include <dynamic-graph/all-signals.h>
22 #include <dynamic-graph/entity.h>
29 #if defined(gain_adaptive_EXPORTS)
30 #define SOTGAINADAPTATIVE_EXPORT __declspec(dllexport)
32 #define SOTGAINADAPTATIVE_EXPORT __declspec(dllimport)
35 #define SOTGAINADAPTATIVE_EXPORT
62 virtual void display(std::ostream &os)
const;
63 virtual const std::string &
getClassName(
void)
const {
return CLASS_NAME; }
76 const double &valueAtInfty,
const double &tanAt0);
79 inline void init(
void) {
init(ZERO_DEFAULT, INFTY_DEFAULT, TAN_DEFAULT); }
80 inline void init(
const double &lambda) {
init(lambda, lambda, 1.); }
81 void init(
const double &valueAt0,
const double &valueAtInfty,
82 const double &tanAt0);
114 const double &errorReference,
115 const double &percentage);
119 dynamicgraph::SignalPtr<dynamicgraph::Vector, int>
errorSIN;
120 dynamicgraph::SignalTimeDependent<double, int>
gainSOUT;
Definition: gain-adaptive.hh:53
void init(void)
Definition: gain-adaptive.hh:79
virtual void display(std::ostream &os) const
static const double ZERO_DEFAULT
Definition: gain-adaptive.hh:56
double coeff_b
Definition: gain-adaptive.hh:69
void init(const double &lambda)
Definition: gain-adaptive.hh:80
static const std::string CLASS_NAME
Definition: gain-adaptive.hh:61
void init(const double &valueAt0, const double &valueAtInfty, const double &tanAt0)
static const double TAN_DEFAULT
Definition: gain-adaptive.hh:58
GainAdaptive(const std::string &name, const double &lambda)
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > errorSIN
Definition: gain-adaptive.hh:119
void initFromPassingPoint(const double &valueAt0, const double &valueAtInfty, const double &errorReference, const double &percentage)
Set the gain by providing the value at 0, at and the percentage of accomplishment between both to be...
double & computeGain(double &res, int t)
GainAdaptive(const std::string &name)
virtual const std::string & getClassName(void) const
Definition: gain-adaptive.hh:63
GainAdaptive(const std::string &name, const double &valueAt0, const double &valueAtInfty, const double &tanAt0)
dynamicgraph::SignalTimeDependent< double, int > gainSOUT
Definition: gain-adaptive.hh:120
double coeff_a
Definition: gain-adaptive.hh:68
double coeff_c
Definition: gain-adaptive.hh:70
static const double INFTY_DEFAULT
Definition: gain-adaptive.hh:57
#define SOTGAINADAPTATIVE_EXPORT
Definition: gain-adaptive.hh:35
Definition: abstract-sot-external-interface.hh:17