diff --git a/GraspPlanning/GraspPlanner/GraspPlanner.cpp b/GraspPlanning/GraspPlanner/GraspPlanner.cpp index 86a12e21a326a984290afdf9ca629c9e9721d57d..c8c40989ca4923cb75e49e2f1fb060092aa681fd 100644 --- a/GraspPlanning/GraspPlanner/GraspPlanner.cpp +++ b/GraspPlanning/GraspPlanner/GraspPlanner.cpp @@ -21,8 +21,13 @@ namespace GraspStudio return plannedGrasps; } - GraspPlannerEvaluation GraspPlanner::getEvaluation() + GraspPlannerEvaluation GraspPlanner::getEvaluation() const { return eval; } + + void GraspPlanner::clearEvaluation() + { + this->eval = {}; + } } diff --git a/GraspPlanning/GraspPlanner/GraspPlanner.h b/GraspPlanning/GraspPlanner/GraspPlanner.h index 6513f7f0f37a38cf6bfff30a8520afc4124d1569..2fa279834354eab12f8f4404f5a8546bda169cd0 100644 --- a/GraspPlanning/GraspPlanner/GraspPlanner.h +++ b/GraspPlanning/GraspPlanner/GraspPlanner.h @@ -69,9 +69,13 @@ namespace GraspStudio * \brief getEvaluation * \return The current evaluation of the grasp planner. */ - GraspPlannerEvaluation getEvaluation(); - + GraspPlannerEvaluation getEvaluation() const; + /// Clear the evaluation. + void clearEvaluation(); + + protected: + bool verbose; VirtualRobot::GraspSetPtr graspSet; std::vector<VirtualRobot::GraspPtr> plannedGrasps;