20 #ifndef DEFAULTSCORECONTAINER_HPP_ 21 #define DEFAULTSCORECONTAINER_HPP_ 24 #include <boost/make_shared.hpp> 69 mMovementCostsBaseTranslation = value;
85 mMovementCostsBaseRotation = value;
101 mMovementCostsPTU = value;
117 mRecognitionCosts = value;
150 mObjectUtilities[objectType] = value;
159 if (mObjectUtilities.count(objectType) == 0) {
162 return mObjectUtilities.at(objectType);
170 mUtilityNormalization = value;
186 auto objectTypes = boost::make_shared<std::vector<boost::shared_ptr<std::string>>>();
187 if (mObjectUtilities.size() == 0)
189 for (
auto object : mObjectUtilities) {
191 objectTypes->push_back(objectType);
void setUnweightedInverseMovementCostsBaseTranslation(float value)
sets the inverse movement costs for the base translation
DefaultScoreContainer()
constructor of the DefaultRating object.
void setUnweightedInverseMovementCostsBaseRotation(float value)
sets the inverse movement costs for the base rotation
float getUnweightedUnnormalizedUtility() const
returns the weighted unnormalized utility
void setUnweightedInverseMovementCostsPTU(float value)
sets the inverse costs for the PTU movement
float getUnweightedInverseMovementCostsPTU() const
returns the inverse costs for the PTU movement
float getUtilityNormalization() const
returns the utility normalization
void setUtilityNormalization(float value)
sets the utility normalization
BaseScore implements no such functionalities, but the corresponding RatingModule has to implement a B...
float mMovementCostsBaseRotation
boost::shared_ptr< DefaultScoreContainer > DefaultScoreContainerPtr
Definition for the shared pointer type of the class.
float mMovementCostsBaseTranslation
void setUnweightedUnnormalizedObjectUtilitiy(std::string objectType, float value)
sets the utilitiy for an object type
this namespace contains all generally usable classes.
virtual ~DefaultScoreContainer()
destructor of the DefaultRating object.
float getUnweightedInverseMovementCostsBaseRotation() const
returns the inverse movement costs for the base rotation
DefaultScoreContainer implements the BaseScoreContainer base class.
void setUnweightedUnnormalizedUtility(float value)
sets the weighted unnormalized utility
float mUtilityNormalization
std::map< std::string, float > mObjectUtilities
float getUnweightedInverseMovementCostsBaseTranslation() const
returns the inverse movement costs for the base translation
float getUnweightedInverseRecognitionCosts() const
returns the inverse costs for the recognition of the objects
void setUnweightedInverseRecognitionCosts(float value)
sets the inverse costs for the recognition of the objects
boost::shared_ptr< std::vector< boost::shared_ptr< std::string > > > getObjectTypes() const
getObjectTypes
std::ostream & operator<<(std::ostream &strm, const next_best_view::DefaultViewportPoint &p)
float getUnweightedUnnormalizedObjectUtility(std::string objectType) const
returns the utility for a given object type