Commit 3d736e7f authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Do not connect a node with itself.

parent 186af0f6
......@@ -141,7 +141,7 @@ namespace hpp {
for (Nodes_t::iterator it = neighbors.begin ();
it != neighbors.end (); ++it) {
// Connect only nodes that are not already connected
if (!(*it)->isOutNeighbor (node)) {
if (!(*it)->isOutNeighbor (node) && (node != *it)) {
PathPtr_t p ((*sm) (*node->configuration (),
*(*it)->configuration ()));
PathValidationReportPtr_t report;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment