#include <ObjectEvidence.h>
Public Member Functions | |
void | getEvidences (std::vector< ISM::Object > &pEvidences) |
bool | hasWaitingEvidences () |
ObjectEvidence () | |
void | push (const boost::shared_ptr< const ISM::Object > &pObject) |
void | update () |
~ObjectEvidence () | |
Private Attributes | |
std::vector< ISM::Object > | mBuffer |
std::map< std::string, std::map< std::string, KalmanFilter > > | mObjectEvidences |
int | mTimeout |
This class acts as a container for the object evidence. It states whether a given evidence is an update of an already known object or a new one. It is possible to return the evidences as a vector that can be distributed to the parts of the model that require the evicendes.
The container is able to forgot already seen objects if the specified threshold is exceeded.
Definition at line 46 of file ObjectEvidence.h.
ProbabilisticSceneRecognition::ObjectEvidence::ObjectEvidence | ( | ) |
Constructor.
Definition at line 22 of file ObjectEvidence.cpp.
ProbabilisticSceneRecognition::ObjectEvidence::~ObjectEvidence | ( | ) |
Destructor.
Definition at line 31 of file ObjectEvidence.cpp.
void ProbabilisticSceneRecognition::ObjectEvidence::getEvidences | ( | std::vector< ISM::Object > & | pEvidences | ) |
Returns a list of all evidences found till now.
pEvidences | A vector containing all evidences. |
Definition at line 119 of file ObjectEvidence.cpp.
bool ProbabilisticSceneRecognition::ObjectEvidence::hasWaitingEvidences | ( | ) |
Checks, if new evidence has been added since the last model update.
Definition at line 41 of file ObjectEvidence.cpp.
void ProbabilisticSceneRecognition::ObjectEvidence::push | ( | const boost::shared_ptr< const ISM::Object > & | pObject | ) |
Adds an object evidence to the buffer.
pObject | AsrObject message containing information about the evidence. |
Definition at line 35 of file ObjectEvidence.cpp.
void ProbabilisticSceneRecognition::ObjectEvidence::update | ( | ) |
Integrates all evidences into the list and checks whether there are new evidences found. This method must be called before the evidence list can be requested.
Definition at line 46 of file ObjectEvidence.cpp.
|
private |
A temporary buffer for accumulating evidences.
Definition at line 96 of file ObjectEvidence.h.
|
private |
A map for storing the object evidences, indexed by the object type and identifier. The tuple (object type, object identifier) is an unique key for every found object.
Definition at line 102 of file ObjectEvidence.h.
|
private |
Evidences older than this time in milliseconds are erased from the list.
Definition at line 91 of file ObjectEvidence.h.