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