RatingModule.hpp
Go to the documentation of this file.
1 
20 #ifndef RATING_MODULE_HPP_
21 #define RATING_MODULE_HPP_
22 
25 #include <robot_model_services/robot_model/RobotState.hpp>
26 
27 namespace next_best_view {
36  class RatingModule : public CommonClass {
37  public:
41  RatingModule();
42 
46  virtual ~RatingModule();
47 
60  virtual bool setBestScoreContainer(const ViewportPoint &currentViewport,
61  ViewportPoint &candidateViewport) = 0;
62 
70  virtual bool setSingleScoreContainer(const ViewportPoint &currentViewport,
71  ViewportPoint &candidateViewport) = 0;
72 
77 
84  virtual bool getBestViewport(ViewportPointCloudPtr &viewports, ViewportPoint &bestViewport) = 0;
85 
92  virtual bool compareViewports(const ViewportPoint &a, const ViewportPoint &b) = 0;
93 
100  virtual bool compareScoreContainer(const BaseScoreContainerPtr &a, const BaseScoreContainerPtr &b) = 0;
101 
107  virtual float getRating(const BaseScoreContainerPtr &a) = 0;
108 
113  virtual void setRobotState(robot_model_services::RobotStatePtr robotState) = 0;
114 
118  virtual void resetCache() = 0;
119  };
120 
125 }
126 
127 #endif /* RATING_MODULE_HPP_ */
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 &currentViewport, 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
Definition: typedef.hpp:97
virtual bool setBestScoreContainer(const ViewportPoint &currentViewport, 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.


asr_next_best_view
Author(s): Aumann Florian, Borella Jocelyn, Heller Florian, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Stroh Daniel, Trautmann Jeremias, Walter Milena, Wittenbeck Valerij
autogenerated on Thu Jan 9 2020 07:20:18