From 9ec7a21387a60dc9ec4b93d80da7a5069f54227b Mon Sep 17 00:00:00 2001
From: Fabian Reister <fabian.reister@kit.edu>
Date: Fri, 27 May 2022 11:50:07 +0200
Subject: [PATCH] graspset: equals op

---
 VirtualRobot/Grasping/GraspSet.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/VirtualRobot/Grasping/GraspSet.h b/VirtualRobot/Grasping/GraspSet.h
index e0b21f4cc..65814d221 100644
--- a/VirtualRobot/Grasping/GraspSet.h
+++ b/VirtualRobot/Grasping/GraspSet.h
@@ -96,6 +96,12 @@ namespace VirtualRobot
         {
             return grasps.end();
         }
+
+        bool operator==(const GraspSet& rhs) const
+        {
+            return (name == rhs.name) and (robotType == rhs.robotType) 
+                and (eef == rhs.eef) and (grasps.size() == rhs.grasps.size());
+        }
         
     protected:
         std::vector< GraspPtr > grasps;
@@ -106,4 +112,3 @@ namespace VirtualRobot
     };
 
 } // namespace
-
-- 
GitLab