dynamicgraph::sot::IntegratorAbstract< sigT, coefT > Class Template Referenceabstract

integrates an ODE. If Y is the output and X the input, the following equation is integrated: a_p * d(p)Y / dt^p + .... + a_0 Y = b_m * d(m)X / dt^m + ... . b_0 X a_i are the coefficients of the denominator of the associated transfer function between X and Y, while the b_i are those of the numerator. More...

#include <sot/core/integrator-abstract.hh>

Inheritance diagram for dynamicgraph::sot::IntegratorAbstract< sigT, coefT >:
[legend]

Public Member Functions

 IntegratorAbstract (const std::string &name)
 
virtual ~IntegratorAbstract ()
 
virtual sigT & integrate (sigT &res, int time)=0
 
void pushNumCoef (const coefT &numCoef)
 
void pushDenomCoef (const coefT &denomCoef)
 
void popNumCoef ()
 
void popDenomCoef ()
 

Public Attributes

dg::SignalPtr< sigT, int > SIN
 
dg::SignalTimeDependent< sigT, int > SOUT
 

Protected Attributes

std::vector< coefT > numerator
 
std::vector< coefT > denominator
 

Detailed Description

template<class sigT, class coefT>
class dynamicgraph::sot::IntegratorAbstract< sigT, coefT >

integrates an ODE. If Y is the output and X the input, the following equation is integrated: a_p * d(p)Y / dt^p + .... + a_0 Y = b_m * d(m)X / dt^m + ... . b_0 X a_i are the coefficients of the denominator of the associated transfer function between X and Y, while the b_i are those of the numerator.

Constructor & Destructor Documentation

◆ IntegratorAbstract()

◆ ~IntegratorAbstract()

template<class sigT , class coefT >
virtual dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::~IntegratorAbstract ( )
inlinevirtual

Member Function Documentation

◆ integrate()

template<class sigT , class coefT >
virtual sigT& dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::integrate ( sigT &  res,
int  time 
)
pure virtual

◆ popDenomCoef()

◆ popNumCoef()

◆ pushDenomCoef()

template<class sigT , class coefT >
void dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::pushDenomCoef ( const coefT &  denomCoef)
inline

◆ pushNumCoef()

template<class sigT , class coefT >
void dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::pushNumCoef ( const coefT &  numCoef)
inline

Member Data Documentation

◆ denominator

template<class sigT , class coefT >
std::vector<coefT> dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::denominator
protected

◆ numerator

template<class sigT , class coefT >
std::vector<coefT> dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::numerator
protected

◆ SIN

template<class sigT , class coefT >
dg::SignalPtr<sigT, int> dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::SIN

◆ SOUT

template<class sigT , class coefT >
dg::SignalTimeDependent<sigT, int> dynamicgraph::sot::IntegratorAbstract< sigT, coefT >::SOUT