diff --git a/src/graph/edge.cc b/src/graph/edge.cc index 2523cf4333bb1518ada9a02ae2b20615d5d12cc2..39ef8736bb9f3d8757a25d256ffcf02093ab7898 100644 --- a/src/graph/edge.cc +++ b/src/graph/edge.cc @@ -281,7 +281,7 @@ namespace hpp { if (constraints->isSatisfied (q1)) { if (constraints->isSatisfied (q2)) { path = (*steeringMethod_->get()) (q1, q2); - return true; + return path; } hppDout(info, "q2 does not satisfy the constraints"); } @@ -295,7 +295,7 @@ namespace hpp { throw std::runtime_error (oss.str ().c_str ()); } path = (*sm) (q1, q2); - return true; + return path; } bool Edge::applyConstraints (core::NodePtr_t nnear, ConfigurationOut_t q) const