#include <gain-adaptive.hh>
Public Member Functions | |
virtual void | display (std::ostream &os) const |
void | forceConstant (void) |
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) | |
virtual const std::string & | getClassName (void) const |
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 and the percentage of accomplishment between both to be reached when the error is errorReference . More... | |
Public Member Functions inherited from dynamicgraph::Entity | |
std::ostream & | displaySignalList (std::ostream &os) const |
Entity (const std::string &name) | |
const std::string & | getCommandList () const |
virtual std::string | getDocString () const |
LoggerVerbosity | getLoggerVerbosityLevel () |
LoggerVerbosity | getLoggerVerbosityLevel () |
const std::string & | getName () const |
command::Command * | getNewStyleCommand (const std::string &cmdName) |
CommandMap_t | getNewStyleCommandMap () |
SignalBase< int > & | getSignal (const std::string &signalName) |
const SignalBase< int > & | getSignal (const std::string &signalName) const |
SignalMap | getSignalMap () const |
double | getStreamPrintPeriod () |
double | getStreamPrintPeriod () |
double | getTimeSample () |
double | getTimeSample () |
bool | hasSignal (const std::string &signame) const |
Logger & | logger () |
Logger const & | logger () const |
Logger & | logger () |
Logger const & | logger () const |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
bool | setStreamPrintPeriod (double t) |
bool | setStreamPrintPeriod (double t) |
bool | setTimeSample (double t) |
bool | setTimeSample (double t) |
virtual SignalBase< int > * | test () |
virtual void | test2 (SignalBase< int > *) |
virtual std::ostream & | writeCompletionList (std::ostream &os) const |
virtual std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~Entity () |
Public Attributes | |
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > | errorSIN |
dynamicgraph::SignalTimeDependent< double, int > | gainSOUT |
Static Public Attributes | |
static const std::string | CLASS_NAME |
static const double | INFTY_DEFAULT = .1 |
static const double | TAN_DEFAULT = 1 |
static const double | ZERO_DEFAULT = .1 |
Protected Member Functions | |
double & | computeGain (double &res, int t) |
Protected Member Functions inherited from dynamicgraph::Entity | |
void | addCommand (const std::string &name, command::Command *command) |
void | entityDeregistration () |
void | entityRegistration () |
void | signalDeregistration (const std::string &name) |
void | signalRegistration (const SignalArray< int > &signals) |
Protected Attributes | |
double | coeff_a |
double | coeff_b |
double | coeff_c |
Protected Attributes inherited from dynamicgraph::Entity | |
CommandMap_t | commandMap |
Logger | logger_ |
std::string | name |
SignalMap | signalMap |
Private Member Functions | |
void | addCommands () |
Additional Inherited Members | |
Public Types inherited from dynamicgraph::Entity | |
typedef std::map< const std::string, command::Command *> | CommandMap_t |
typedef std::map< std::string, SignalBase< int > *> | SignalMap |
Exponentially decreasing gain. It follows the law
.
The default values for
Definition at line 53 of file gain-adaptive.hh.
GainAdaptive::GainAdaptive | ( | const std::string & | name | ) |
Definition at line 80 of file gain-adaptive.cpp.
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 | ||
) |
|
private |
Definition at line 42 of file gain-adaptive.cpp.
Definition at line 166 of file gain-adaptive.cpp.
|
virtual |
Reimplemented from dynamicgraph::Entity.
Definition at line 154 of file gain-adaptive.cpp.
void GainAdaptive::forceConstant | ( | void | ) |
Definition at line 148 of file gain-adaptive.cpp.
|
inlinevirtual |
Reimplemented from dynamicgraph::Entity.
Definition at line 63 of file gain-adaptive.hh.
|
inline |
Definition at line 79 of file gain-adaptive.hh.
|
inline |
Definition at line 80 of file gain-adaptive.hh.
void dynamicgraph::sot::GainAdaptive::init | ( | const double & | valueAt0, |
const double & | valueAtInfty, | ||
const double & | tanAt0 | ||
) |
void GainAdaptive::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 reached when the error is errorReference
.
To visualize the curve of the gain versus the error, use
Definition at line 133 of file gain-adaptive.cpp.
|
static |
Definition at line 61 of file gain-adaptive.hh.
|
protected |
Definition at line 68 of file gain-adaptive.hh.
|
protected |
Definition at line 69 of file gain-adaptive.hh.
|
protected |
Definition at line 70 of file gain-adaptive.hh.
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::GainAdaptive::errorSIN |
Definition at line 119 of file gain-adaptive.hh.
dynamicgraph::SignalTimeDependent<double, int> dynamicgraph::sot::GainAdaptive::gainSOUT |
Definition at line 120 of file gain-adaptive.hh.
|
static |
Definition at line 57 of file gain-adaptive.hh.
|
static |
Definition at line 58 of file gain-adaptive.hh.
|
static |
Definition at line 56 of file gain-adaptive.hh.