model_object.cpp
Go to the documentation of this file.
1 
19 #include <ostream>
20 
21 namespace world_model {
22  ModelObject::ModelObject(std::string id) : id(id), objectCount(0), bestHypotheses(), allFoundHypotheses() { }
24 
25 
26  std::ostream& operator<<(std::ostream &strm, const PbdObjectCluster &pbd_object_cluster) {
27  strm << "AsrObject:" << '\n';
28  strm << pbd_object_cluster.first;
29  strm << "with neighborhood count: " << pbd_object_cluster.second << '\n';
30  return strm;
31  }
32 
33  std::ostream& operator<<(std::ostream &strm, const PbdObjectClusterList &pbd_object_cluster_list) {
34  for (const PbdObjectCluster &pbd_object_cluster : pbd_object_cluster_list) {
35  strm << pbd_object_cluster;
36  }
37  return strm;
38  }
39 
40 
41  std::ostream& operator<<(std::ostream &strm, const ModelObject &model_object) {
42  strm << '\t' << '\t' << "id: " << model_object.id << '\n';
43  strm << '\t' << '\t' << "objectCount: " << model_object.objectCount << '\n';
44 
45  strm << '\t' << '\t' << "bestHypotheses:" << '\n';
46  strm << model_object.bestHypotheses;
47 
48  strm << '\t' << '\t' << "allFoundHypotheses:" << '\n';
49  strm << model_object.allFoundHypotheses;
50 
51  return strm;
52  }
53 
54  std::ostream& operator<<(std::ostream &strm, const ModelObjectPtr &model_object_ptr) {
55  return strm << *model_object_ptr;
56  }
57 
58  std::ostream& operator<<(std::ostream &strm, const ModelObjectPtrPerIdMap &model_object_ptr_per_id_map) {
59  for (const std::pair<std::string, ModelObjectPtr> &model_object_ptr_per_id_pair : model_object_ptr_per_id_map) {
60  strm << '\t' << "ModelObject:" << '\n';
61  strm << model_object_ptr_per_id_pair.second;
62  }
63  return strm;
64  }
65 }
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