00001
00002 #ifndef SRS_KNOWLEDGE_SERVICE_GETROOMSONMAP_H
00003 #define SRS_KNOWLEDGE_SERVICE_GETROOMSONMAP_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "ros/service_traits.h"
00018
00019
00020
00021 #include "srs_msgs/SRSSpatialInfo.h"
00022
00023 namespace srs_knowledge
00024 {
00025 template <class ContainerAllocator>
00026 struct GetRoomsOnMapRequest_ {
00027 typedef GetRoomsOnMapRequest_<ContainerAllocator> Type;
00028
00029 GetRoomsOnMapRequest_()
00030 : map()
00031 , ifGeometryInfo(false)
00032 {
00033 }
00034
00035 GetRoomsOnMapRequest_(const ContainerAllocator& _alloc)
00036 : map(_alloc)
00037 , ifGeometryInfo(false)
00038 {
00039 }
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _map_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > map;
00043
00044 typedef uint8_t _ifGeometryInfo_type;
00045 uint8_t ifGeometryInfo;
00046
00047
00048 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::srs_knowledge::GetRoomsOnMapRequest_<std::allocator<void> > GetRoomsOnMapRequest;
00053
00054 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapRequest> GetRoomsOnMapRequestPtr;
00055 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapRequest const> GetRoomsOnMapRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct GetRoomsOnMapResponse_ {
00060 typedef GetRoomsOnMapResponse_<ContainerAllocator> Type;
00061
00062 GetRoomsOnMapResponse_()
00063 : rooms()
00064 , roomsInfo()
00065 , readableNames()
00066 , json_properties()
00067 {
00068 }
00069
00070 GetRoomsOnMapResponse_(const ContainerAllocator& _alloc)
00071 : rooms(_alloc)
00072 , roomsInfo(_alloc)
00073 , readableNames(_alloc)
00074 , json_properties(_alloc)
00075 {
00076 }
00077
00078 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _rooms_type;
00079 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > rooms;
00080
00081 typedef std::vector< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> >::other > _roomsInfo_type;
00082 std::vector< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> >::other > roomsInfo;
00083
00084 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _readableNames_type;
00085 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > readableNames;
00086
00087 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _json_properties_type;
00088 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > json_properties;
00089
00090
00091 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > Ptr;
00092 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> const> ConstPtr;
00093 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00094 };
00095 typedef ::srs_knowledge::GetRoomsOnMapResponse_<std::allocator<void> > GetRoomsOnMapResponse;
00096
00097 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapResponse> GetRoomsOnMapResponsePtr;
00098 typedef boost::shared_ptr< ::srs_knowledge::GetRoomsOnMapResponse const> GetRoomsOnMapResponseConstPtr;
00099
00100 struct GetRoomsOnMap
00101 {
00102
00103 typedef GetRoomsOnMapRequest Request;
00104 typedef GetRoomsOnMapResponse Response;
00105 Request request;
00106 Response response;
00107
00108 typedef Request RequestType;
00109 typedef Response ResponseType;
00110 };
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > : public TrueType {};
00118 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> const> : public TrueType {};
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "a14354db805feb47c061b3cb1b443b04";
00124 }
00125
00126 static const char* value(const ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0xa14354db805feb47ULL;
00128 static const uint64_t static_value2 = 0xc061b3cb1b443b04ULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "srs_knowledge/GetRoomsOnMapRequest";
00136 }
00137
00138 static const char* value(const ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "\n\
00146 \n\
00147 \n\
00148 string map\n\
00149 \n\
00150 \n\
00151 \n\
00152 \n\
00153 bool ifGeometryInfo\n\
00154 \n\
00155 \n\
00156 ";
00157 }
00158
00159 static const char* value(const ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 }
00163 }
00164
00165
00166 namespace ros
00167 {
00168 namespace message_traits
00169 {
00170 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > : public TrueType {};
00171 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> const> : public TrueType {};
00172 template<class ContainerAllocator>
00173 struct MD5Sum< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > {
00174 static const char* value()
00175 {
00176 return "45c770a53af63ba1069ed7c531fceb81";
00177 }
00178
00179 static const char* value(const ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> &) { return value(); }
00180 static const uint64_t static_value1 = 0x45c770a53af63ba1ULL;
00181 static const uint64_t static_value2 = 0x069ed7c531fceb81ULL;
00182 };
00183
00184 template<class ContainerAllocator>
00185 struct DataType< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > {
00186 static const char* value()
00187 {
00188 return "srs_knowledge/GetRoomsOnMapResponse";
00189 }
00190
00191 static const char* value(const ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> &) { return value(); }
00192 };
00193
00194 template<class ContainerAllocator>
00195 struct Definition< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > {
00196 static const char* value()
00197 {
00198 return "\n\
00199 \n\
00200 string[] rooms\n\
00201 srs_msgs/SRSSpatialInfo[] roomsInfo\n\
00202 string[] readableNames\n\
00203 \n\
00204 string[] json_properties\n\
00205 \n\
00206 ================================================================================\n\
00207 MSG: srs_msgs/SRSSpatialInfo\n\
00208 # Point point\n\
00209 # Orientation angles\n\
00210 float32 l\n\
00211 float32 w\n\
00212 float32 h\n\
00213 \n\
00214 geometry_msgs/Pose pose\n\
00215 \n\
00216 ================================================================================\n\
00217 MSG: geometry_msgs/Pose\n\
00218 # A representation of pose in free space, composed of postion and orientation. \n\
00219 Point position\n\
00220 Quaternion orientation\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: geometry_msgs/Point\n\
00224 # This contains the position of a point in free space\n\
00225 float64 x\n\
00226 float64 y\n\
00227 float64 z\n\
00228 \n\
00229 ================================================================================\n\
00230 MSG: geometry_msgs/Quaternion\n\
00231 # This represents an orientation in free space in quaternion form.\n\
00232 \n\
00233 float64 x\n\
00234 float64 y\n\
00235 float64 z\n\
00236 float64 w\n\
00237 \n\
00238 ";
00239 }
00240
00241 static const char* value(const ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> &) { return value(); }
00242 };
00243
00244 }
00245 }
00246
00247 namespace ros
00248 {
00249 namespace serialization
00250 {
00251
00252 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> >
00253 {
00254 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00255 {
00256 stream.next(m.map);
00257 stream.next(m.ifGeometryInfo);
00258 }
00259
00260 ROS_DECLARE_ALLINONE_SERIALIZER;
00261 };
00262 }
00263 }
00264
00265
00266 namespace ros
00267 {
00268 namespace serialization
00269 {
00270
00271 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> >
00272 {
00273 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00274 {
00275 stream.next(m.rooms);
00276 stream.next(m.roomsInfo);
00277 stream.next(m.readableNames);
00278 stream.next(m.json_properties);
00279 }
00280
00281 ROS_DECLARE_ALLINONE_SERIALIZER;
00282 };
00283 }
00284 }
00285
00286 namespace ros
00287 {
00288 namespace service_traits
00289 {
00290 template<>
00291 struct MD5Sum<srs_knowledge::GetRoomsOnMap> {
00292 static const char* value()
00293 {
00294 return "45b586c6f430ebabc7c413ffcc25c785";
00295 }
00296
00297 static const char* value(const srs_knowledge::GetRoomsOnMap&) { return value(); }
00298 };
00299
00300 template<>
00301 struct DataType<srs_knowledge::GetRoomsOnMap> {
00302 static const char* value()
00303 {
00304 return "srs_knowledge/GetRoomsOnMap";
00305 }
00306
00307 static const char* value(const srs_knowledge::GetRoomsOnMap&) { return value(); }
00308 };
00309
00310 template<class ContainerAllocator>
00311 struct MD5Sum<srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > {
00312 static const char* value()
00313 {
00314 return "45b586c6f430ebabc7c413ffcc25c785";
00315 }
00316
00317 static const char* value(const srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> &) { return value(); }
00318 };
00319
00320 template<class ContainerAllocator>
00321 struct DataType<srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> > {
00322 static const char* value()
00323 {
00324 return "srs_knowledge/GetRoomsOnMap";
00325 }
00326
00327 static const char* value(const srs_knowledge::GetRoomsOnMapRequest_<ContainerAllocator> &) { return value(); }
00328 };
00329
00330 template<class ContainerAllocator>
00331 struct MD5Sum<srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > {
00332 static const char* value()
00333 {
00334 return "45b586c6f430ebabc7c413ffcc25c785";
00335 }
00336
00337 static const char* value(const srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> &) { return value(); }
00338 };
00339
00340 template<class ContainerAllocator>
00341 struct DataType<srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> > {
00342 static const char* value()
00343 {
00344 return "srs_knowledge/GetRoomsOnMap";
00345 }
00346
00347 static const char* value(const srs_knowledge::GetRoomsOnMapResponse_<ContainerAllocator> &) { return value(); }
00348 };
00349
00350 }
00351 }
00352
00353 #endif // SRS_KNOWLEDGE_SERVICE_GETROOMSONMAP_H
00354