diff --git a/VirtualRobot/Grasping/GraspSet.h b/VirtualRobot/Grasping/GraspSet.h index e0b21f4cc24a76a0eede5bffe98cfe9bd2a908c0..65814d221c51c42e2ac89cc5373e5f92c713cde3 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 -