Skip to content
Snippets Groups Projects
Commit 71020de6 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Reimplement ProblemSolver::initializeProblem

parent a6493252
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,9 @@ namespace hpp {
return problem_;
}
protected:
void initializeProblem (ProblemPtr_t problem);
private:
typedef std::map <const std::string, DevicePtr_t> RobotsandObjects_t;
RobotPtr_t robot_;
......
......@@ -78,11 +78,13 @@ namespace hpp {
{
if (problem_)
delete (problem_);
problem_ = new Problem (robot_);
roadmap (core::Roadmap::create (problem_->distance (), problem_->robot()));
problem_->constraints ();
problem_->constraintGraph (constraintGraph_);
core::ProblemSolver::problem (problem_);
initializeProblem (new Problem (robot_));
}
void ProblemSolver::initializeProblem (ProblemPtr_t problem)
{
problem_ = problem;
core::ProblemSolver::initializeProblem (problem_);
}
void ProblemSolver::constraintGraph (const graph::GraphPtr_t& graph)
......
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