diff --git a/src/path-planner/states-path-finder.cc b/src/path-planner/states-path-finder.cc index b7fcba452a0019880ba25bce9499f9a9f73027de..d31d14caa414e3037db2883f6946a9713c862393 100644 --- a/src/path-planner/states-path-finder.cc +++ b/src/path-planner/states-path-finder.cc @@ -1059,10 +1059,11 @@ namespace hpp { << " and " << it->first.second << " should be satisfied at q init"); for (NumericalConstraints_t::iterator ctrIt (constraintList.begin()); ctrIt != constraintList.end(); ++ctrIt) { - analyseSolver.add(*ctrIt); + analyseSolver.add((*ctrIt)->copy()); } } - + // initialize the right hand side with the initial config + analyseSolver.rightHandSideFromConfig(*q1_); if (analyseSolver.isSatisfied(*q1_)) { return true; }