10 #ifndef __SOT_DERIVATOR_H__ 11 #define __SOT_DERIVATOR_H__ 22 #include <dynamic-graph/entity.h> 55 timestep(TIMESTEP_DEFAULT),
56 SIN(NULL,
"sotDerivator<" +
getTypeName() +
">(" + name +
")::input(" +
59 "sotDerivator<" +
getTypeName() +
">(" + name +
")::output(" +
62 ")::input(double)::dt") {
82 if (timestep != 1.) res *= (1. /
timestep);
100 res.coeffs() +=
memory.coeffs();
114 #endif // #ifndef __SOT_DERIVATOR_H__
Eigen::Quaternion< double > SOT_CORE_EXPORT VectorQuaternion
void signalRegistration(const SignalArray< int > &signals)
dynamicgraph::SignalPtr< T, int > SIN
static std::string getTypeName(void)
Derivator(const std::string &name)
static const double TIMESTEP_DEFAULT
DYNAMIC_GRAPH_ENTITY_DECL()
void setKeepReference(const bool &b)
virtual void setReferenceNonConstant(T *t, Mutex *mutexref=NULL)
dynamicgraph::Signal< double, int > timestepSIN
dynamicgraph::SignalTimeDependent< T, int > SOUT
T & computeDerivation(T &res, int time)