Skip to content
Snippets Groups Projects
Commit 2ef72347 authored by Nicolas Mansard's avatar Nicolas Mansard
Browse files

Added a command to apprehend eventual changes in the Jacobian while estimating its derivative.

parent d3fb8578
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,10 @@ namespace dynamicgraph
signalRegistration( KvSIN << qdotSIN << dtSIN
<< errorDotSOUT << KvAutoSOUT
<< JdotSOUT << taskVectorSOUT );
addCommand("resetJacobianDerivative",
makeCommandVoid0(*this,&TaskDynPD::resetJacobianDerivative,
docCommandVoid0("Reset the memory of the numeric jacobian derivative.")));
}
......@@ -149,6 +153,9 @@ namespace dynamicgraph
return Jdot;
}
void TaskDynPD::resetJacobianDerivative( void ) { previousJset = false; }
ml::Vector& TaskDynPD::
taskVectorSOUT_function( ml::Vector& taskV, int time )
{
......
......@@ -83,6 +83,9 @@ namespace dynamicgraph {
ml::Matrix previousJ;
bool previousJset;
public: /* COMMANDS */
void resetJacobianDerivative( void );
}; // class TaskDynPD
} // namespace dyninv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment