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

Fix validity check of cases in graph::helper.

parent f53b4f69
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ namespace hpp {
static const bool valid =
( (gCase & WithPreGrasp) || (gCase & GraspOnly) || (gCase & NoGrasp) )
&& ( (gCase & WithPrePlace) || (gCase & PlaceOnly) || (gCase & NoPlace) )
&& !(gCase == (NoGrasp | NoPlace));
&& !((gCase & NoGrasp) && (gCase & NoPlace));
static const std::size_t nbWaypoints = (pregrasp?1:0) + (intersec?1:0) + (preplace?1:0);
static const std::size_t Nnodes = 2 + nbWaypoints;
......
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