Skip to content
Snippets Groups Projects
Commit d1a2977f authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Clear roadmap before destroying it

  Data are stored in the constraint graph. Clearing the roadmap also
  clears these data and make problem resolution re-entrant.
parent 15946675
No related branches found
No related tags found
No related merge requests found
......@@ -312,6 +312,8 @@ namespace hpp {
{
if (!problem ())
throw std::runtime_error ("The problem is not defined.");
if (roadmap())
roadmap()->clear();
RoadmapPtr_t r (Roadmap::create (problem ()->distance (), problem ()->robot ()));
if (constraintGraph_) r->constraintGraph (constraintGraph_);
roadmap (r);
......
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