common_information_handler.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 // Global Inclusion
21 #include <boost/shared_ptr.hpp>
22 #include <vector>
23 #include <map>
24 #include <list>
25 
26 
27 // ROS Main Inclusion
28 #include <ros/ros.h>
29 
30 
31 // ROS-wide Inclusion
32 #include <asr_msgs/AsrTypeAndId.h>
33 #include <asr_msgs/AsrObject.h>
34 
35 
36 // Local Inclusion
37 #include "asr_world_model/GetRecognizerName.h"
38 #include "asr_world_model/GetIntermediateObjectWeight.h"
39 #include "asr_world_model/GetAllObjectsList.h"
40 #include "asr_world_model/GetMissingObjectList.h"
41 
46 
47 namespace world_model
48 {
49 
51 {
52 public:
53  /* ----------------- Public members ------------------ */
54  // Wrapped Constants
55 
56  // GetMissingObjectList
57  static const inline std::string GetGetMissingObjectListServiceName ()
58  { return "get_missing_object_list"; }
59 
60  // GetRecognizerName
61  static const inline std::string GetGetRecognizerNameServiceName()
62  { return "get_recognizer_name"; }
63 
64  // GetAllObjectsList
65  static const inline std::string GetGetAllObjectsListServiceName()
66  { return "get_all_objects_list"; }
67 
68  // GetIntermediateObjectWeight
69  static const inline std::string GetGetIntermediateObjectWeightServiceName()
70  { return "get_intermediate_object_weight"; }
71 
72 private:
73  /* ----------------- Private members ------------------ */
74 
76 
79 
80 public:
81  /* ----------------- Public functions ------------------ */
85  CommonInformationHandler(ModelTypePtrPerTypeMapPtr model_type_ptr_per_type_map_ptr, SettingsPtr settings_ptr);
86 
93  bool processGetRecognizerNameServiceCall(asr_world_model::GetRecognizerName::Request &request,
94  asr_world_model::GetRecognizerName::Response &response);
95 
102  bool processGetIntermediateObjectWeightServiceCall(asr_world_model::GetIntermediateObjectWeight::Request &request,
103  asr_world_model::GetIntermediateObjectWeight::Response &response);
104 
111  bool processGetAllObjectsListServiceCall(asr_world_model::GetAllObjectsList::Request &request,
112  asr_world_model::GetAllObjectsList::Response &response);
113 
120  bool processGetMissingObjectListServiceCall(asr_world_model::GetMissingObjectList::Request &request,
121  asr_world_model::GetMissingObjectList::Response &response);
122 
123 private:
124  void pushTypeAndId(std::vector<asr_msgs::AsrTypeAndId> &typeAndIds, const std::string type, const std::string identifier) const;
125 };
126 
127 }
128 
void pushTypeAndId(std::vector< asr_msgs::AsrTypeAndId > &typeAndIds, const std::string type, const std::string identifier) const
bool processGetRecognizerNameServiceCall(asr_world_model::GetRecognizerName::Request &request, asr_world_model::GetRecognizerName::Response &response)
get the associated recognizer name for a given object
ModelTypePtrPerTypeMapPtr model_type_ptr_per_type_map_ptr_
static const std::string GetGetMissingObjectListServiceName()
static const std::string GetGetIntermediateObjectWeightServiceName()
bool processGetAllObjectsListServiceCall(asr_world_model::GetAllObjectsList::Request &request, asr_world_model::GetAllObjectsList::Response &response)
returns all objects in the current scenes
static const std::string GetGetRecognizerNameServiceName()
bool processGetIntermediateObjectWeightServiceCall(asr_world_model::GetIntermediateObjectWeight::Request &request, asr_world_model::GetIntermediateObjectWeight::Response &response)
get the associated Intermediate Object Weight for a given object
static const std::string GetGetAllObjectsListServiceName()
CommonInformationHandler(ModelTypePtrPerTypeMapPtr model_type_ptr_per_type_map_ptr, SettingsPtr settings_ptr)
Creates a new instance of CommonInformationHandler.
bool processGetMissingObjectListServiceCall(asr_world_model::GetMissingObjectList::Request &request, asr_world_model::GetMissingObjectList::Response &response)
returns all missing objects in the current scene


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