10 #include <dynamic-graph/factory.h> 44 static const double rk_fact[4] = {1., 2., 2., 1.};
53 long int nf = force.size(),
nv = friction.cols();
67 sotDEBUG(25) <<
"Mi = " << massInverse;
69 sotDEBUG(25) <<
"dt = " << dt << std::endl;
71 std::vector<dynamicgraph::Vector>
v(4);
76 for (
unsigned int i = 0;
i < 4; ++
i) {
82 ki = massInverse * fi;
91 sotDEBUG(35) <<
"sum_k" <<
i <<
" = " << res;
int nv(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
dg::SignalPtr< dynamicgraph::Vector, int > velocityPrecSIN
virtual ~IntegratorForceRK4(void)
#define sotDEBUGOUT(level)
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(Latch, "Latch")
dg::SignalPtr< dynamicgraph::Matrix, int > massInverseSIN
#define sotDEBUGIN(level)
dg::SignalTimeDependent< dynamicgraph::Vector, int > velocityDerivativeSOUT
static const double rk_fact[4]
dg::SignalPtr< dynamicgraph::Matrix, int > frictionSIN
IntegratorForceRK4(const std::string &name)
dg::SignalPtr< dynamicgraph::Vector, int > forceSIN
dynamicgraph::Vector & computeDerivativeRK4(dynamicgraph::Vector &res, const int &time)
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)