SemanticObject.h
Go to the documentation of this file.
1 /*
2  * ObjectTest.h
3  *
4  * Created on: Apr 27, 2011
5  * Author: sdries
6  */
7 
8 #ifndef MHT_SEMANTICOBJECT_H_
9 #define MHT_SEMANTICOBJECT_H_
10 
11 #include "wire/core/PropertySet.h"
12 #include <list>
13 
14 namespace mhf {
15 
16 class ClassModel;
17 class Evidence;
18 class Assignment;
19 class Hypothesis;
20 
21 class SemanticObject : public PropertySet {
22 
23 public:
24 
25  static int N_SEMANTICOBJECT;
26 
28 
29  SemanticObject(long ID);
30 
31  SemanticObject(const SemanticObject& orig);
32 
33  virtual ~SemanticObject();
34 
35  void init(const Evidence& z);
36 
37  void update(const Evidence& z);
38 
39  SemanticObject* clone() const;
40 
41  double getLastUpdateTime() const;
42 
43  double getTimestamp() const;
44 
45  const ClassModel& getExpectedObjectModel() const;
46 
47  double getLikelihood(const PropertySet& ev) const;
48 
49  void addPotentialAssignment(const Evidence& ev, double probability);
50 
51  ObjectID getID() const;
52 
53  void addToHypothesis(Hypothesis* hyp);
54 
56 
57  unsigned int getNumParentHypotheses() const;
58 
59 protected:
60 
62 
63  std::string expected_class_;
64 
65  std::set<Hypothesis*> parent_hypotheses_;
66 
67 };
68 
69 }
70 
71 #endif /* SEMANTICOBJECT_H_ */
SemanticObject * clone() const
std::set< Hypothesis * > parent_hypotheses_
void update(const Evidence &z)
static int N_SEMANTICOBJECT
iterator(field< oT > &in_M, const bool at_end=false)
long ObjectID
Definition: datatypes.h:46
std::list< SemanticObject * >::iterator it_obj_storage_
double getLastUpdateTime() const
The class Evidence represents a set of properties (PropertySet) that all originate from one physical ...
Definition: Evidence.h:61
unsigned int getNumParentHypotheses() const
void init(const Evidence &z)
std::string expected_class_
double getLikelihood(const PropertySet &ev) const
Contains knowledge about a specific object class on where to expect new objects of that class (new) a...
Definition: ClassModel.h:57
void removeFromHypothesis(Hypothesis *hyp)
double getTimestamp() const
ObjectID getID() const
const ClassModel & getExpectedObjectModel() const
void addPotentialAssignment(const Evidence &ev, double probability)
void addToHypothesis(Hypothesis *hyp)
Definition: ClassModel.h:44


wire_core
Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:27