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

GraphOptimizer run optimizer on consecutive path lying in the node.

parent 077f2f79
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <hpp/core/steering-method-straight.hh> #include <hpp/core/steering-method-straight.hh>
#include <hpp/manipulation/graph/edge.hh>
namespace hpp { namespace hpp {
namespace manipulation { namespace manipulation {
PathVectorPtr_t GraphOptimizer::optimize (const PathVectorPtr_t& path) PathVectorPtr_t GraphOptimizer::optimize (const PathVectorPtr_t& path)
...@@ -51,7 +53,7 @@ namespace hpp { ...@@ -51,7 +53,7 @@ namespace hpp {
current = expanded->pathAtRank (i_e); current = expanded->pathAtRank (i_e);
c = HPP_DYNAMIC_PTR_CAST (ConstraintSet, current->constraints ()); c = HPP_DYNAMIC_PTR_CAST (ConstraintSet, current->constraints ());
if (!c && edge) break; if (!c && edge) break;
if (c && edge != c->edge ()) break; if (c && edge->node() != c->edge ()->node()) break;
toOpt->appendPath (current); toOpt->appendPath (current);
} }
pathOptimizer_ = factory_ (this->problem ()); pathOptimizer_ = factory_ (this->problem ());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment