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

In Edge::build, return false if steering method failed.

parent 17159fc1
No related branches found
No related tags found
No related merge requests found
...@@ -281,7 +281,7 @@ namespace hpp { ...@@ -281,7 +281,7 @@ namespace hpp {
if (constraints->isSatisfied (q1)) { if (constraints->isSatisfied (q1)) {
if (constraints->isSatisfied (q2)) { if (constraints->isSatisfied (q2)) {
path = (*steeringMethod_->get()) (q1, q2); path = (*steeringMethod_->get()) (q1, q2);
return true; return path;
} }
hppDout(info, "q2 does not satisfy the constraints"); hppDout(info, "q2 does not satisfy the constraints");
} }
...@@ -295,7 +295,7 @@ namespace hpp { ...@@ -295,7 +295,7 @@ namespace hpp {
throw std::runtime_error (oss.str ().c_str ()); throw std::runtime_error (oss.str ().c_str ());
} }
path = (*sm) (q1, q2); path = (*sm) (q1, q2);
return true; return path;
} }
bool Edge::applyConstraints (core::NodePtr_t nnear, ConfigurationOut_t q) const bool Edge::applyConstraints (core::NodePtr_t nnear, ConfigurationOut_t q) const
......
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