20 #ifndef RATING_MODULE_HPP_ 21 #define RATING_MODULE_HPP_ 25 #include <robot_model_services/robot_model/RobotState.hpp> 113 virtual void setRobotState(robot_model_services::RobotStatePtr robotState) = 0;
virtual void resetCache()=0
resets the cached data for a call of setBestScoreContainer
virtual ~RatingModule()
destructor of the RatingModule object.
virtual bool setSingleScoreContainer(const ViewportPoint ¤tViewport, ViewportPoint &candidateViewport)=0
sets the score container for one filtered camera viewport Before calling this method, the method resetCache() should be called.
virtual void setRobotState(robot_model_services::RobotStatePtr robotState)=0
setRobotState sets the robot state, which might have an influence on the rating.
virtual bool compareScoreContainer(const BaseScoreContainerPtr &a, const BaseScoreContainerPtr &b)=0
compares two ratings.
ViewportPointCloud::Ptr ViewportPointCloudPtr
virtual bool setBestScoreContainer(const ViewportPoint ¤tViewport, ViewportPoint &candidateViewport)=0
Sets the best score for the given candidate camera viewport by choosing the best combination of objec...
RatingModule()
constructor of the RatingModule object
boost::shared_ptr< RatingModule > RatingModulePtr
Definition for the shared pointer type of the class.
virtual bool compareViewports(const ViewportPoint &a, const ViewportPoint &b)=0
compares two viewports
this namespace contains all generally usable classes.
virtual bool getBestViewport(ViewportPointCloudPtr &viewports, ViewportPoint &bestViewport)=0
Sets the best viewport from the given viewports cloud.
RatingModule is a generalization for the rating of the point cloud objects and viewports.
virtual BaseScoreContainerPtr getScoreContainerInstance()=0
virtual float getRating(const BaseScoreContainerPtr &a)=0
returns the weighted rating of a rating object.