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

Add Result::hasNode in graph helper

parent 33be6975
No related branches found
No related tags found
No related merge requests found
...@@ -622,6 +622,11 @@ namespace hpp { ...@@ -622,6 +622,11 @@ namespace hpp {
return iGOH; return iGOH;
} }
bool hasNode (const GraspV_t& iG)
{
return nodes.count(nodeid(iG)) > 0;
}
NodeAndManifold_t& operator() (const GraspV_t& iG) NodeAndManifold_t& operator() (const GraspV_t& iG)
{ {
return nodes [nodeid(iG)]; return nodes [nodeid(iG)];
......
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