Skip to content
Snippets Groups Projects
Commit 0a751dbe authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

[ManipulationPlanner] Remove tests that are always false.

  - add assert to check that tests are always false.
parent af18593a
No related branches found
No related tags found
No related merge requests found
...@@ -398,10 +398,7 @@ namespace hpp { ...@@ -398,10 +398,7 @@ namespace hpp {
itn2 != knearest.end (); ++itn2) { itn2 != knearest.end (); ++itn2) {
bool _1to2 = (*itn1)->isOutNeighbor (*itn2); bool _1to2 = (*itn1)->isOutNeighbor (*itn2);
bool _2to1 = (*itn1)->isInNeighbor (*itn2); bool _2to1 = (*itn1)->isInNeighbor (*itn2);
if (_1to2 && _2to1) { assert (!_1to2 || !_2to1);
hppDout (info, "the two nodes are already connected");
continue;
}
const Configuration_t& q2 (*(*itn2)->configuration ()); const Configuration_t& q2 (*(*itn2)->configuration ());
graph::StatePtr_t s2 = getState (graph, *itn2); graph::StatePtr_t s2 = getState (graph, *itn2);
...@@ -445,10 +442,7 @@ namespace hpp { ...@@ -445,10 +442,7 @@ namespace hpp {
continue; continue;
bool _1to2 = (*itn1)->isOutNeighbor (*itn2); bool _1to2 = (*itn1)->isOutNeighbor (*itn2);
bool _2to1 = (*itn1)->isInNeighbor (*itn2); bool _2to1 = (*itn1)->isInNeighbor (*itn2);
if (_1to2 && _2to1) { assert (!_1to2 || !_2to1);
hppDout (info, "the two nodes are already connected");
continue;
}
const Configuration_t& q2 (*(*itn2)->configuration ()); const Configuration_t& q2 (*(*itn2)->configuration ());
graph::StatePtr_t s2 = getState (graph, *itn2); graph::StatePtr_t s2 = getState (graph, *itn2);
assert (q1 != q2); assert (q1 != q2);
......
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