20 #ifndef DEFAULTSCORECONTAINER_HPP_ 21 #define DEFAULTSCORECONTAINER_HPP_ 25 #include <boost/make_shared.hpp> 70 mMovementCostsBaseTranslation = value;
86 mMovementCostsBaseRotation = value;
102 mMovementCostsPTU = value;
118 mRecognitionCosts = value;
151 mObjectUtilities[objectType] = value;
160 if (mObjectUtilities.count(objectType) == 0) {
163 return mObjectUtilities.at(objectType);
171 mUtilityNormalization = value;
187 auto objectTypes = boost::make_shared<std::vector<boost::shared_ptr<std::string>>>();
188 if (mObjectUtilities.size() == 0)
190 for (
auto object : mObjectUtilities) {
192 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
boost::shared_ptr< std::vector< boost::shared_ptr< std::string > > > getObjectTypes() const
getObjectTypes
void setUnweightedInverseMovementCostsPTU(float value)
sets the inverse costs for the PTU movement
void setUtilityNormalization(float value)
sets the utility normalization
BaseScore implements no such functionalities, but the corresponding RatingModule has to implement a B...
float getUnweightedUnnormalizedObjectUtility(std::string objectType) const
returns the utility for a given object type
float getUnweightedUnnormalizedUtility() const
returns the weighted unnormalized utility
float getUnweightedInverseMovementCostsBaseTranslation() const
returns the inverse movement costs for the base translation
float getUnweightedInverseMovementCostsBaseRotation() const
returns the inverse movement costs for the base rotation
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.
DefaultScoreContainer implements the BaseScoreContainer base class.
void setUnweightedUnnormalizedUtility(float value)
sets the weighted unnormalized utility
float getUtilityNormalization() const
returns the utility normalization
float mUtilityNormalization
std::map< std::string, float > mObjectUtilities
float getUnweightedInverseMovementCostsPTU() const
returns the inverse costs for the PTU movement
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
std::ostream & operator<<(std::ostream &strm, const next_best_view::DefaultViewportPoint &p)