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

Use Constraint::isSatisfied instead of projecting configurations

parent 78f56597
No related branches found
No related tags found
No related merge requests found
...@@ -90,10 +90,7 @@ namespace hpp { ...@@ -90,10 +90,7 @@ namespace hpp {
ConstraintSetPtr_t constraints; ConstraintSetPtr_t constraints;
while (!possibleEdges.empty ()) { while (!possibleEdges.empty ()) {
constraints = constraintGraph_->pathConstraint (possibleEdges.back(), configAt (tmin)); constraints = constraintGraph_->pathConstraint (possibleEdges.back(), configAt (tmin));
// TODO: We need a quick way of checking that a configuration if (constraints->isSatisfied (configAt (tmax))) {
// statisfies a constraint.
Configuration_t cfg = configAt (tmax);
if (constraints->apply(cfg) && ( cfg == configAt(tmax) )) {
validPart = path; validPart = path;
return true; return true;
} }
......
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