complete_patterns_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 <set>
23 
24 
25 // ROS Main Inclusion
26 #include <ros/ros.h>
27 
28 // Local Inclusion
29 #include "asr_world_model/CompletePattern.h"
30 #include "asr_world_model/EmptyCompletePatterns.h"
31 #include "asr_world_model/GetCompletePatterns.h"
32 #include "asr_world_model/PushCompletePatterns.h"
33 
35 
36 namespace world_model
37 {
38 
39 typedef std::map<std::string, asr_world_model::CompletePattern> CompletePatterns;
40 
41 std::ostream& operator<<(std::ostream &strm, const CompletePatterns &complete_patterns);
42 std::ostream& operator<<(std::ostream &strm, const std::vector<asr_world_model::CompletePattern> &complete_patterns);
43 
45 {
46 public:
47  /* ----------------- Public members ------------------ */
48  // Wrapped Constants
49 
50  // PushCompletePatterns
51  static const inline std::string GetPushCompletePatternsServiceName ()
52  { return "push_complete_patterns"; }
53 
54  // EmptyCompletePatterns
55  static const inline std::string GetEmptyCompletePatternsServiceName()
56  { return "empty_complete_patterns"; }
57 
58  // GetCompletePatterns
59  static const inline std::string GetGetCompletePatternsServiceName()
60  { return "get_complete_patterns"; }
61 
62 private:
63  /* ----------------- Private members ------------------ */
64 
65  CompletePatterns completePatterns;
66 
68 
69 public:
70  /* ----------------- Public functions ------------------ */
75 
76  bool processEmptyCompletePatternsServiceCall(asr_world_model::EmptyCompletePatterns::Request &request,
77  asr_world_model::EmptyCompletePatterns::Response &response);
78 
79  bool processGetCompletePatternsServiceCall(asr_world_model::GetCompletePatterns::Request &request,
80  asr_world_model::GetCompletePatterns::Response &response);
81 
82  bool processPushCompletePatternsCall(asr_world_model::PushCompletePatterns::Request &request,
83  asr_world_model::PushCompletePatterns::Response &response);
84 
85 };
86 
87 }
88 
bool processEmptyCompletePatternsServiceCall(asr_world_model::EmptyCompletePatterns::Request &request, asr_world_model::EmptyCompletePatterns::Response &response)
static const std::string GetGetCompletePatternsServiceName()
bool processGetCompletePatternsServiceCall(asr_world_model::GetCompletePatterns::Request &request, asr_world_model::GetCompletePatterns::Response &response)
CompletePatternsHandler()
Creates a new instance of the CompletePatternsHandler.
bool processPushCompletePatternsCall(asr_world_model::PushCompletePatterns::Request &request, asr_world_model::PushCompletePatterns::Response &response)
static const std::string GetEmptyCompletePatternsServiceName()
std::ostream & operator<<(std::ostream &strm, const CompletePatterns &complete_patterns)
static const std::string GetPushCompletePatternsServiceName()
std::map< std::string, asr_world_model::CompletePattern > CompletePatterns


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