DefaultScoreContainer.cpp
Go to the documentation of this file.
1 
21 #include <ostream>
22 
23 namespace next_best_view {
24  DefaultScoreContainer::DefaultScoreContainer() : BaseScoreContainer(), mMovementCostsBaseTranslation(0.0),
25  mMovementCostsBaseRotation(0.0),
26  mMovementCostsPTU(0.0),
27  mRecognitionCosts(0.0) {
28  }
29 
31 
32  std::ostream& operator<<(std::ostream &strm, const next_best_view::DefaultScoreContainer &score) {
33  using std::endl;
34  strm << "UnweightedInverseMovementCostsBaseTranslation: " << score.getUnweightedInverseMovementCostsBaseTranslation() << endl
35  << "unweightedInverseMovementCostsBaseRotation: " << score.getUnweightedInverseMovementCostsBaseRotation() << endl
36  << "unweightedInverseMovementCostsPTU: " << score.getUnweightedInverseMovementCostsPTU() << endl
37  << "unweightedInverseRecognitionCosts: " << score.getUnweightedInverseRecognitionCosts() << endl
38  << "utilityNormalization: " << score.getUtilityNormalization() << endl
39  << "unweightedUnnormalizedUtility: " << score.getUnweightedUnnormalizedUtility() << endl
40  << "weightedNormalizedUtility: " << score.getWeightedNormalizedUtility() << endl
41  << "weightedInverseCosts: " << score.getWeightedInverseCosts() << endl
42  << "objectUtility: {" << endl;
43  auto ratedObjects = score.getObjectTypes();
44  for (auto objType : *ratedObjects) {
45  strm << *objType << " -> " << score.getUnweightedUnnormalizedObjectUtility(*objType) << endl;
46  }
47  return strm << "}" << endl;
48  }
49 
50  std::ostream& operator<<(std::ostream &strm, const next_best_view::DefaultScoreContainerPtr &score) {
51  return strm << *score;
52  }
53 }
DefaultScoreContainer()
constructor of the DefaultRating object.
float getUnweightedUnnormalizedUtility() const
returns the weighted unnormalized utility
float getUnweightedInverseMovementCostsPTU() const
returns the inverse costs for the PTU movement
float getUtilityNormalization() const
returns the utility normalization
BaseScore implements no such functionalities, but the corresponding RatingModule has to implement a B...
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.
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
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


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