Skip to content
Snippets Groups Projects
Commit 50e8a019 authored by Francesco Morsillo's avatar Francesco Morsillo
Browse files

Modified function name and command to set second order kinematics in order to...

Modified function name and command to set second order kinematics in order to uniform it to Device::setSecondOrderIntegration
parent 1060be49
No related branches found
No related tags found
No related merge requests found
......@@ -155,11 +155,11 @@ namespace dynamicgraph
"\n"
" If true, check that the solver is empty, since second order\n"
" kinematics requires tasks to be of type TaskDynPD.";
addCommand("setSecondOrderKine",
makeCommandVoid1(*this,&SolverKine::setSecondOrderKine,
addCommand("setSecondOrderKinematics",
makeCommandVoid0(*this,&SolverKine::setSecondOrderKinematics,
docstring));
addCommand("getSecondOrderKine",
addCommand("getSecondOrderKinematics",
makeDirectGetter(*this,&secondOrderKinematics_,
docDirectGetter("second order kinematic inversion","bool")));
......@@ -191,15 +191,13 @@ namespace dynamicgraph
}
}
void SolverKine::setSecondOrderKine (const bool& secondOrder)
void SolverKine::setSecondOrderKinematics ()
{
if (secondOrder) {
if (stack.size() != 0) {
throw std::runtime_error
("The solver should contain no task before switching to second order mode.");
}
if (stack.size() != 0) {
throw std::runtime_error
("The solver should contain no task before switching to second order mode.");
}
secondOrderKinematics_ = secondOrder;
secondOrderKinematics_ = true;
}
SolverKine::TaskDependancyList_t SolverKine::
......
......@@ -99,7 +99,7 @@ namespace dynamicgraph {
/// Call parent implementation anc check that task is
/// of type dynamic if necessary
virtual void push( TaskAbstract& task );
void setSecondOrderKine (const bool& secondOrder);
void setSecondOrderKinematics ();
private: /* --- INTERNAL COMPUTATIONS --- */
void refreshTaskTime( int time );
......
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