10 #ifndef __SOT_GAIN_HYPERBOLIC_HH__
11 #define __SOT_GAIN_HYPERBOLIC_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_hyperbolic_EXPORTS)
30 #define SOTGAINHYPERBOLIC_EXPORT __declspec(dllexport)
32 #define SOTGAINHYPERBOLIC_EXPORT __declspec(dllimport)
35 #define SOTGAINHYPERBOLIC_EXPORT
62 virtual void display(std::ostream &os)
const;
63 virtual const std::string &
getClassName(
void)
const {
return CLASS_NAME; }
77 const double &valueAtInfty,
const double &tanAt0,
78 const double &decal0);
81 inline void init(
void) {
init(ZERO_DEFAULT, INFTY_DEFAULT, TAN_DEFAULT, 0); }
82 inline void init(
const double &lambda) {
init(lambda, lambda, 1., 0); }
89 void init(
const double &valueAt0,
const double &valueAtInfty,
90 const double &tanAt0,
const double &decal0);
94 dynamicgraph::SignalPtr<dynamicgraph::Vector, int>
errorSIN;
95 dynamicgraph::SignalTimeDependent<double, int>
gainSOUT;
Hyperbolic gain. It follows the law.
Definition: gain-hyperbolic.hh:53
virtual const std::string & getClassName(void) const
Definition: gain-hyperbolic.hh:63
void init(void)
Definition: gain-hyperbolic.hh:81
static const double INFTY_DEFAULT
Definition: gain-hyperbolic.hh:57
double coeff_c
Definition: gain-hyperbolic.hh:70
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > errorSIN
Definition: gain-hyperbolic.hh:94
void init(const double &lambda)
Definition: gain-hyperbolic.hh:82
dynamicgraph::SignalTimeDependent< double, int > gainSOUT
Definition: gain-hyperbolic.hh:95
static const std::string CLASS_NAME
Definition: gain-hyperbolic.hh:61
static const double TAN_DEFAULT
Definition: gain-hyperbolic.hh:58
void init(const double &valueAt0, const double &valueAtInfty, const double &tanAt0, const double &decal0)
static const double ZERO_DEFAULT
Definition: gain-hyperbolic.hh:56
double coeff_b
Definition: gain-hyperbolic.hh:69
GainHyperbolic(const std::string &name, const double &valueAt0, const double &valueAtInfty, const double &tanAt0, const double &decal0)
double coeff_a
Definition: gain-hyperbolic.hh:68
double & computeGain(double &res, int t)
GainHyperbolic(const std::string &name)
GainHyperbolic(const std::string &name, const double &lambda)
virtual void display(std::ostream &os) const
double coeff_d
Definition: gain-hyperbolic.hh:71
#define SOTGAINHYPERBOLIC_EXPORT
Definition: gain-hyperbolic.hh:35
Definition: abstract-sot-external-interface.hh:17