model_object.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <asr_msgs/AsrObject.h>
21 
22 namespace world_model {
23 
24  typedef std::pair<asr_msgs::AsrObject, int> PbdObjectCluster;
25  typedef std::list<PbdObjectCluster> PbdObjectClusterList;
26 
27  struct ModelObject {
28  public:
29  std::string id;
30  //The number of expected instances
31  unsigned int objectCount;
32  //Contains the current best object hypotheses
33  PbdObjectClusterList bestHypotheses;
34  //Contains all clusters accumulated during object_detection
35  PbdObjectClusterList allFoundHypotheses;
36  ModelObject(std::string id);
37  virtual ~ModelObject();
38  };
39 
41  typedef std::map<std::string, ModelObjectPtr> ModelObjectPtrPerIdMap;
42 
43 
44  std::ostream& operator<<(std::ostream &strm, const PbdObjectCluster &pbd_object_cluster);
45  std::ostream& operator<<(std::ostream &strm, const PbdObjectClusterList &pbd_object_cluster_list);
46 
47  std::ostream& operator<<(std::ostream &strm, const ModelObject &model_object);
48  std::ostream& operator<<(std::ostream &strm, const ModelObjectPtr &model_object_ptr);
49  std::ostream& operator<<(std::ostream &strm, const ModelObjectPtrPerIdMap &model_object_ptr_per_id_map);
50 }
51 
52 
53 
boost::shared_ptr< ModelObject > ModelObjectPtr
ModelObject(std::string id)
std::map< std::string, ModelObjectPtr > ModelObjectPtrPerIdMap
std::ostream & operator<<(std::ostream &strm, const CompletePatterns &complete_patterns)
PbdObjectClusterList bestHypotheses
PbdObjectClusterList allFoundHypotheses
std::list< PbdObjectCluster > PbdObjectClusterList
std::pair< asr_msgs::AsrObject, int > PbdObjectCluster


asr_world_model
Author(s): Aumann Florian, Borella Jocelyn, Hutmacher Robin, Karrenbauer Oliver, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Trautmann Jeremias
autogenerated on Thu Jan 9 2020 07:20:01