00001
00002 #ifndef SRS_KNOWLEDGE_SERVICE_GETWORKSPACEONMAP_H
00003 #define SRS_KNOWLEDGE_SERVICE_GETWORKSPACEONMAP_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 GetWorkspaceOnMapRequest_ {
00027 typedef GetWorkspaceOnMapRequest_<ContainerAllocator> Type;
00028
00029 GetWorkspaceOnMapRequest_()
00030 : map()
00031 , ifGeometryInfo(false)
00032 {
00033 }
00034
00035 GetWorkspaceOnMapRequest_(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::GetWorkspaceOnMapRequest_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::srs_knowledge::GetWorkspaceOnMapRequest_<std::allocator<void> > GetWorkspaceOnMapRequest;
00053
00054 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapRequest> GetWorkspaceOnMapRequestPtr;
00055 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapRequest const> GetWorkspaceOnMapRequestConstPtr;
00056
00057
00058 template <class ContainerAllocator>
00059 struct GetWorkspaceOnMapResponse_ {
00060 typedef GetWorkspaceOnMapResponse_<ContainerAllocator> Type;
00061
00062 GetWorkspaceOnMapResponse_()
00063 : objects()
00064 , classesOfObjects()
00065 , objectsInfo()
00066 , houseHoldId()
00067 , readableNames()
00068 , json_properties()
00069 {
00070 }
00071
00072 GetWorkspaceOnMapResponse_(const ContainerAllocator& _alloc)
00073 : objects(_alloc)
00074 , classesOfObjects(_alloc)
00075 , objectsInfo(_alloc)
00076 , houseHoldId(_alloc)
00077 , readableNames(_alloc)
00078 , json_properties(_alloc)
00079 {
00080 }
00081
00082 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 > _objects_type;
00083 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 > objects;
00084
00085 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 > _classesOfObjects_type;
00086 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 > classesOfObjects;
00087
00088 typedef std::vector< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> >::other > _objectsInfo_type;
00089 std::vector< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> >::other > objectsInfo;
00090
00091 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 > _houseHoldId_type;
00092 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 > houseHoldId;
00093
00094 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;
00095 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;
00096
00097 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;
00098 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;
00099
00100
00101 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > Ptr;
00102 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> const> ConstPtr;
00103 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00104 };
00105 typedef ::srs_knowledge::GetWorkspaceOnMapResponse_<std::allocator<void> > GetWorkspaceOnMapResponse;
00106
00107 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapResponse> GetWorkspaceOnMapResponsePtr;
00108 typedef boost::shared_ptr< ::srs_knowledge::GetWorkspaceOnMapResponse const> GetWorkspaceOnMapResponseConstPtr;
00109
00110 struct GetWorkspaceOnMap
00111 {
00112
00113 typedef GetWorkspaceOnMapRequest Request;
00114 typedef GetWorkspaceOnMapResponse Response;
00115 Request request;
00116 Response response;
00117
00118 typedef Request RequestType;
00119 typedef Response ResponseType;
00120 };
00121 }
00122
00123 namespace ros
00124 {
00125 namespace message_traits
00126 {
00127 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> > : public TrueType {};
00128 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> const> : public TrueType {};
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "a14354db805feb47c061b3cb1b443b04";
00134 }
00135
00136 static const char* value(const ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0xa14354db805feb47ULL;
00138 static const uint64_t static_value2 = 0xc061b3cb1b443b04ULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "srs_knowledge/GetWorkspaceOnMapRequest";
00146 }
00147
00148 static const char* value(const ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "\n\
00156 \n\
00157 string map\n\
00158 \n\
00159 \n\
00160 \n\
00161 \n\
00162 bool ifGeometryInfo\n\
00163 \n\
00164 \n\
00165 ";
00166 }
00167
00168 static const char* value(const ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> &) { return value(); }
00169 };
00170
00171 }
00172 }
00173
00174
00175 namespace ros
00176 {
00177 namespace message_traits
00178 {
00179 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > : public TrueType {};
00180 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> const> : public TrueType {};
00181 template<class ContainerAllocator>
00182 struct MD5Sum< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > {
00183 static const char* value()
00184 {
00185 return "21691f80ef18dad76901b04f8c957e5a";
00186 }
00187
00188 static const char* value(const ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> &) { return value(); }
00189 static const uint64_t static_value1 = 0x21691f80ef18dad7ULL;
00190 static const uint64_t static_value2 = 0x6901b04f8c957e5aULL;
00191 };
00192
00193 template<class ContainerAllocator>
00194 struct DataType< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > {
00195 static const char* value()
00196 {
00197 return "srs_knowledge/GetWorkspaceOnMapResponse";
00198 }
00199
00200 static const char* value(const ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> &) { return value(); }
00201 };
00202
00203 template<class ContainerAllocator>
00204 struct Definition< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > {
00205 static const char* value()
00206 {
00207 return "\n\
00208 \n\
00209 \n\
00210 string[] objects\n\
00211 string[] classesOfObjects\n\
00212 srs_msgs/SRSSpatialInfo[] objectsInfo\n\
00213 string[] houseHoldId\n\
00214 string[] readableNames\n\
00215 \n\
00216 string[] json_properties\n\
00217 \n\
00218 ================================================================================\n\
00219 MSG: srs_msgs/SRSSpatialInfo\n\
00220 # Point point\n\
00221 # Orientation angles\n\
00222 float32 l\n\
00223 float32 w\n\
00224 float32 h\n\
00225 \n\
00226 geometry_msgs/Pose pose\n\
00227 \n\
00228 ================================================================================\n\
00229 MSG: geometry_msgs/Pose\n\
00230 # A representation of pose in free space, composed of postion and orientation. \n\
00231 Point position\n\
00232 Quaternion orientation\n\
00233 \n\
00234 ================================================================================\n\
00235 MSG: geometry_msgs/Point\n\
00236 # This contains the position of a point in free space\n\
00237 float64 x\n\
00238 float64 y\n\
00239 float64 z\n\
00240 \n\
00241 ================================================================================\n\
00242 MSG: geometry_msgs/Quaternion\n\
00243 # This represents an orientation in free space in quaternion form.\n\
00244 \n\
00245 float64 x\n\
00246 float64 y\n\
00247 float64 z\n\
00248 float64 w\n\
00249 \n\
00250 ";
00251 }
00252
00253 static const char* value(const ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> &) { return value(); }
00254 };
00255
00256 }
00257 }
00258
00259 namespace ros
00260 {
00261 namespace serialization
00262 {
00263
00264 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> >
00265 {
00266 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00267 {
00268 stream.next(m.map);
00269 stream.next(m.ifGeometryInfo);
00270 }
00271
00272 ROS_DECLARE_ALLINONE_SERIALIZER;
00273 };
00274 }
00275 }
00276
00277
00278 namespace ros
00279 {
00280 namespace serialization
00281 {
00282
00283 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> >
00284 {
00285 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00286 {
00287 stream.next(m.objects);
00288 stream.next(m.classesOfObjects);
00289 stream.next(m.objectsInfo);
00290 stream.next(m.houseHoldId);
00291 stream.next(m.readableNames);
00292 stream.next(m.json_properties);
00293 }
00294
00295 ROS_DECLARE_ALLINONE_SERIALIZER;
00296 };
00297 }
00298 }
00299
00300 namespace ros
00301 {
00302 namespace service_traits
00303 {
00304 template<>
00305 struct MD5Sum<srs_knowledge::GetWorkspaceOnMap> {
00306 static const char* value()
00307 {
00308 return "393f57e68602fb156d7190ddd8c649b2";
00309 }
00310
00311 static const char* value(const srs_knowledge::GetWorkspaceOnMap&) { return value(); }
00312 };
00313
00314 template<>
00315 struct DataType<srs_knowledge::GetWorkspaceOnMap> {
00316 static const char* value()
00317 {
00318 return "srs_knowledge/GetWorkspaceOnMap";
00319 }
00320
00321 static const char* value(const srs_knowledge::GetWorkspaceOnMap&) { return value(); }
00322 };
00323
00324 template<class ContainerAllocator>
00325 struct MD5Sum<srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> > {
00326 static const char* value()
00327 {
00328 return "393f57e68602fb156d7190ddd8c649b2";
00329 }
00330
00331 static const char* value(const srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> &) { return value(); }
00332 };
00333
00334 template<class ContainerAllocator>
00335 struct DataType<srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> > {
00336 static const char* value()
00337 {
00338 return "srs_knowledge/GetWorkspaceOnMap";
00339 }
00340
00341 static const char* value(const srs_knowledge::GetWorkspaceOnMapRequest_<ContainerAllocator> &) { return value(); }
00342 };
00343
00344 template<class ContainerAllocator>
00345 struct MD5Sum<srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > {
00346 static const char* value()
00347 {
00348 return "393f57e68602fb156d7190ddd8c649b2";
00349 }
00350
00351 static const char* value(const srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> &) { return value(); }
00352 };
00353
00354 template<class ContainerAllocator>
00355 struct DataType<srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> > {
00356 static const char* value()
00357 {
00358 return "srs_knowledge/GetWorkspaceOnMap";
00359 }
00360
00361 static const char* value(const srs_knowledge::GetWorkspaceOnMapResponse_<ContainerAllocator> &) { return value(); }
00362 };
00363
00364 }
00365 }
00366
00367 #endif // SRS_KNOWLEDGE_SERVICE_GETWORKSPACEONMAP_H
00368