Skip to content
Snippets Groups Projects
Commit 427b1568 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Fix GraspQualityMeasureWrenchSpaceNotNormalized

parent 945b0800
No related branches found
No related merge requests found
...@@ -63,7 +63,9 @@ namespace GraspStudio ...@@ -63,7 +63,9 @@ namespace GraspStudio
if (contactPointsM.empty()) if (contactPointsM.empty())
{ {
if (verbose && printAll) if (verbose && printAll)
{
printf("Contact points not set.\n"); printf("Contact points not set.\n");
}
return; return;
} }
...@@ -294,7 +296,7 @@ namespace GraspStudio ...@@ -294,7 +296,7 @@ namespace GraspStudio
nWrongFacets++; nWrongFacets++;
continue; continue;
} }
fRes = std::max(fRes, -dist); fRes = std::min(fRes, -dist);
} }
if (nWrongFacets > 0) if (nWrongFacets > 0)
......
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