Skip to content
Snippets Groups Projects
Unverified Commit 59aeecc3 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

Merge pull request #41 from florent-lamiraux/devel

Remove assert in WaypointEdge::build.
parents f2f0975f ae1d8639
No related branches found
No related tags found
No related merge requests found
......@@ -430,8 +430,11 @@ namespace hpp {
lastSucceeded_ = false;
return false;
}
if (configs_.col(i) != configs_.col (i+1)) {
assert ((configs_.col(i) - configs_.col (i+1)).norm () > 1e-8);
assert (configConstraint ());
assert (configConstraint ()->configProjector ());
value_type eps
(configConstraint ()->configProjector ()->errorThreshold ());
if ((configs_.col(i) - configs_.col (i+1)).squaredNorm () > eps*eps) {
if (!edges_[i]->build (p, configs_.col(i), configs_.col (i+1))) {
hppDout (info, "Waypoint edge " << name()
<< ": build failed at waypoint " << i << "."
......
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