Skip to content
Snippets Groups Projects
Commit b69dde3c authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

[GraphOptimizer] Fix constraints in Problem

  Copying the steering method from the edge and passing the constraints
  of the steering method to the problem does not seem to work.
parent 705cfdaa
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ PathVectorPtr_t GraphOptimizer::optimize(const PathVectorPtr_t& path) {
// p.pathValidation(gpv->innerValidation());
p->pathProjector(problem()->pathProjector());
p->steeringMethod(edge->steeringMethod()->copy());
p->constraints(p->steeringMethod()->constraints());
p->constraints(edge->pathConstraint());
if (p->constraints() && p->constraints()->configProjector()) {
p->constraints()->configProjector()->rightHandSideFromConfig(
toOpt->initial());
......
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