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

Cosmetic change in ManipulationPlanner

parent ff7e2574
No related branches found
No related tags found
No related merge requests found
...@@ -165,12 +165,7 @@ namespace hpp { ...@@ -165,12 +165,7 @@ namespace hpp {
bool success; bool success;
ConfigurationPtr_t q_new (new Configuration_t ConfigurationPtr_t q_new (new Configuration_t
((*path) (t_final, success))); ((*path) (t_final, success)));
if (!belongs (q_new, newNodes)) { delayedEdges.push_back (DelayedEdge_t (near, q_new, path));
newNodes.push_back (roadmap ()->addNodeAndEdges
(near, q_new, path));
} else {
delayedEdges.push_back (DelayedEdge_t (near, q_new, path));
}
} }
} }
} }
...@@ -185,10 +180,8 @@ namespace hpp { ...@@ -185,10 +180,8 @@ namespace hpp {
const core::PathPtr_t& validPath = itEdge-> get <2> (); const core::PathPtr_t& validPath = itEdge-> get <2> ();
core::NodePtr_t newNode = roadmap ()->addNode (q_new); core::NodePtr_t newNode = roadmap ()->addNode (q_new);
roadmap ()->addEdge (near, newNode, validPath); roadmap ()->addEdge (near, newNode, validPath);
core::interval_t timeRange = validPath->timeRange (); roadmap ()->addEdge (newNode, near, validPath->reverse());
roadmap ()->addEdge (newNode, near, validPath->extract newNodes.push_back (newNode);
(core::interval_t (timeRange.second ,
timeRange.first)));
} }
HPP_STOP_TIMECOUNTER(delayedEdges); HPP_STOP_TIMECOUNTER(delayedEdges);
......
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