RecognitionResult.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <string>
21 #include <sstream>
22 #include <vector>
23 #include <map>
24 #include <cstdint>
25 #include <cmath>
26 #include <boost/shared_ptr.hpp>
27 #include "typedef.hpp"
28 #include "ObjectSet.hpp"
29 #include "Pose.hpp"
30 #include "recognizer/VotedPose.hpp"
31 
32 
33 namespace ISM {
34 
36 
37 typedef boost::shared_ptr<RecognitionResult> RecognitionResultPtr;
38 
43 {
44  std::string patternName;
49  double confidence;
50  std::vector<RecognitionResultPtr> subPatterns;
52 
53  static constexpr double epsilon = 1e-6;
54 
55  RecognitionResult( const std::string patternName, const PosePtr referencePose, const ObjectSetPtr recognizedSet,
56  const double confidence, SummarizedVotedPosePtrs summarizedVotes = SummarizedVotedPosePtrs())
57  :
58  patternName(patternName), referencePose(referencePose), recognizedSet(recognizedSet),
59  confidence(confidence), summarizedVotes(summarizedVotes), numberOfCombinations(0)
60  {}
61 
68  u_int64_t getNumberOfCombinations();
69 
70 private:
72 
73 };
74 
75 typedef boost::shared_ptr<RecognitionResult> RecognitionResultPtr;
76 
77 bool operator==(const RecognitionResultPtr& recogRes1, const RecognitionResultPtr& recogRes2);
78 bool operator==(const RecognitionResult& recogRes1, const RecognitionResult& recogRes2);
79 
80 std::ostream& operator<<(std::ostream &strm, ISM::RecognitionResult &o);
81 std::ostream& operator<<(std::ostream &strm, ISM::RecognitionResultPtr &o);
82 }
std::vector< RecognitionResultPtr > subPatterns
SummarizedVotedPosePtrs summarizedVotes
static constexpr double epsilon
std::ostream & operator<<(std::ostream &strm, const ISM::ObjectRelation &r)
boost::shared_ptr< ObjectSet > ObjectSetPtr
Definition: ObjectSet.hpp:53
boost::shared_ptr< RecognitionResult > RecognitionResultPtr
bool operator==(const PointPtr &p1, const PointPtr &p2)
Definition: Point.cpp:39
boost::shared_ptr< Pose > PosePtr
Definition: Pose.hpp:79
std::vector< SummarizedVotedPosePtr > SummarizedVotedPosePtrs
Definition: typedef.hpp:75
PosePtr referencePose
Pose of ism reference in this object configuration.
this namespace contains all generally usable classes.
ObjectSetPtr recognizedSet
Objects that have been assigned to scene instance. That match scene model.
RecognitionResult(const std::string patternName, const PosePtr referencePose, const ObjectSetPtr recognizedSet, const double confidence, SummarizedVotedPosePtrs summarizedVotes=SummarizedVotedPosePtrs())


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40