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

Fix bug regarding Nodes without neighbors in ManipulationPlanner::extend.

parent 139f872c
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,9 @@ namespace hpp {
// Select next node in the constraint graph.
const ConfigurationPtr_t q_near = n_near->configuration ();
graph::NodePtr_t node = graph->getNode (*q_near);
if (node->neighbors ().totalWeight () == 0) {
return false;
}
graph::EdgePtr_t edge = graph->chooseEdge (node);
qProj_ = *q_rand;
if (!edge->applyConstraints (n_near, qProj_)) {
......
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