$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_knowledge/srv/GetObjectsOnTray.srv */ 00002 #ifndef SRS_KNOWLEDGE_SERVICE_GETOBJECTSONTRAY_H 00003 #define SRS_KNOWLEDGE_SERVICE_GETOBJECTSONTRAY_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 00022 namespace srs_knowledge 00023 { 00024 template <class ContainerAllocator> 00025 struct GetObjectsOnTrayRequest_ { 00026 typedef GetObjectsOnTrayRequest_<ContainerAllocator> Type; 00027 00028 GetObjectsOnTrayRequest_() 00029 : map() 00030 { 00031 } 00032 00033 GetObjectsOnTrayRequest_(const ContainerAllocator& _alloc) 00034 : map(_alloc) 00035 { 00036 } 00037 00038 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _map_type; 00039 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > map; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "srs_knowledge/GetObjectsOnTrayRequest"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "aa8aee7f6c8d5b8306117b46af679744"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getServerMD5Sum_() { return "d1c7206bb704b11ba6287c8557045c46"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "\n\ 00065 \n\ 00066 \n\ 00067 string map\n\ 00068 \n\ 00069 \n\ 00070 "; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00073 00074 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00077 { 00078 ros::serialization::OStream stream(write_ptr, 1000000000); 00079 ros::serialization::serialize(stream, map); 00080 return stream.getData(); 00081 } 00082 00083 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00084 { 00085 ros::serialization::IStream stream(read_ptr, 1000000000); 00086 ros::serialization::deserialize(stream, map); 00087 return stream.getData(); 00088 } 00089 00090 ROS_DEPRECATED virtual uint32_t serializationLength() const 00091 { 00092 uint32_t size = 0; 00093 size += ros::serialization::serializationLength(map); 00094 return size; 00095 } 00096 00097 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > Ptr; 00098 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> const> ConstPtr; 00099 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00100 }; // struct GetObjectsOnTrayRequest 00101 typedef ::srs_knowledge::GetObjectsOnTrayRequest_<std::allocator<void> > GetObjectsOnTrayRequest; 00102 00103 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayRequest> GetObjectsOnTrayRequestPtr; 00104 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayRequest const> GetObjectsOnTrayRequestConstPtr; 00105 00106 00107 template <class ContainerAllocator> 00108 struct GetObjectsOnTrayResponse_ { 00109 typedef GetObjectsOnTrayResponse_<ContainerAllocator> Type; 00110 00111 GetObjectsOnTrayResponse_() 00112 : objects() 00113 , classesOfObjects() 00114 { 00115 } 00116 00117 GetObjectsOnTrayResponse_(const ContainerAllocator& _alloc) 00118 : objects(_alloc) 00119 , classesOfObjects(_alloc) 00120 { 00121 } 00122 00123 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; 00124 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; 00125 00126 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; 00127 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; 00128 00129 00130 ROS_DEPRECATED uint32_t get_objects_size() const { return (uint32_t)objects.size(); } 00131 ROS_DEPRECATED void set_objects_size(uint32_t size) { objects.resize((size_t)size); } 00132 ROS_DEPRECATED void get_objects_vec(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 > & vec) const { vec = this->objects; } 00133 ROS_DEPRECATED void set_objects_vec(const 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 > & vec) { this->objects = vec; } 00134 ROS_DEPRECATED uint32_t get_classesOfObjects_size() const { return (uint32_t)classesOfObjects.size(); } 00135 ROS_DEPRECATED void set_classesOfObjects_size(uint32_t size) { classesOfObjects.resize((size_t)size); } 00136 ROS_DEPRECATED void get_classesOfObjects_vec(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 > & vec) const { vec = this->classesOfObjects; } 00137 ROS_DEPRECATED void set_classesOfObjects_vec(const 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 > & vec) { this->classesOfObjects = vec; } 00138 private: 00139 static const char* __s_getDataType_() { return "srs_knowledge/GetObjectsOnTrayResponse"; } 00140 public: 00141 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00142 00143 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00144 00145 private: 00146 static const char* __s_getMD5Sum_() { return "8a7d9cb8b7900b713af1072e5d51ae5e"; } 00147 public: 00148 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00149 00150 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00151 00152 private: 00153 static const char* __s_getServerMD5Sum_() { return "d1c7206bb704b11ba6287c8557045c46"; } 00154 public: 00155 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00156 00157 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00158 00159 private: 00160 static const char* __s_getMessageDefinition_() { return "\n\ 00161 \n\ 00162 string[] objects\n\ 00163 string[] classesOfObjects\n\ 00164 \n\ 00165 \n\ 00166 \n\ 00167 \n\ 00168 \n\ 00169 "; } 00170 public: 00171 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00172 00173 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00174 00175 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00176 { 00177 ros::serialization::OStream stream(write_ptr, 1000000000); 00178 ros::serialization::serialize(stream, objects); 00179 ros::serialization::serialize(stream, classesOfObjects); 00180 return stream.getData(); 00181 } 00182 00183 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00184 { 00185 ros::serialization::IStream stream(read_ptr, 1000000000); 00186 ros::serialization::deserialize(stream, objects); 00187 ros::serialization::deserialize(stream, classesOfObjects); 00188 return stream.getData(); 00189 } 00190 00191 ROS_DEPRECATED virtual uint32_t serializationLength() const 00192 { 00193 uint32_t size = 0; 00194 size += ros::serialization::serializationLength(objects); 00195 size += ros::serialization::serializationLength(classesOfObjects); 00196 return size; 00197 } 00198 00199 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > Ptr; 00200 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> const> ConstPtr; 00201 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00202 }; // struct GetObjectsOnTrayResponse 00203 typedef ::srs_knowledge::GetObjectsOnTrayResponse_<std::allocator<void> > GetObjectsOnTrayResponse; 00204 00205 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayResponse> GetObjectsOnTrayResponsePtr; 00206 typedef boost::shared_ptr< ::srs_knowledge::GetObjectsOnTrayResponse const> GetObjectsOnTrayResponseConstPtr; 00207 00208 struct GetObjectsOnTray 00209 { 00210 00211 typedef GetObjectsOnTrayRequest Request; 00212 typedef GetObjectsOnTrayResponse Response; 00213 Request request; 00214 Response response; 00215 00216 typedef Request RequestType; 00217 typedef Response ResponseType; 00218 }; // struct GetObjectsOnTray 00219 } // namespace srs_knowledge 00220 00221 namespace ros 00222 { 00223 namespace message_traits 00224 { 00225 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > : public TrueType {}; 00226 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> const> : public TrueType {}; 00227 template<class ContainerAllocator> 00228 struct MD5Sum< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > { 00229 static const char* value() 00230 { 00231 return "aa8aee7f6c8d5b8306117b46af679744"; 00232 } 00233 00234 static const char* value(const ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> &) { return value(); } 00235 static const uint64_t static_value1 = 0xaa8aee7f6c8d5b83ULL; 00236 static const uint64_t static_value2 = 0x06117b46af679744ULL; 00237 }; 00238 00239 template<class ContainerAllocator> 00240 struct DataType< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > { 00241 static const char* value() 00242 { 00243 return "srs_knowledge/GetObjectsOnTrayRequest"; 00244 } 00245 00246 static const char* value(const ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> &) { return value(); } 00247 }; 00248 00249 template<class ContainerAllocator> 00250 struct Definition< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "\n\ 00254 \n\ 00255 \n\ 00256 string map\n\ 00257 \n\ 00258 \n\ 00259 "; 00260 } 00261 00262 static const char* value(const ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> &) { return value(); } 00263 }; 00264 00265 } // namespace message_traits 00266 } // namespace ros 00267 00268 00269 namespace ros 00270 { 00271 namespace message_traits 00272 { 00273 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > : public TrueType {}; 00274 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> const> : public TrueType {}; 00275 template<class ContainerAllocator> 00276 struct MD5Sum< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > { 00277 static const char* value() 00278 { 00279 return "8a7d9cb8b7900b713af1072e5d51ae5e"; 00280 } 00281 00282 static const char* value(const ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> &) { return value(); } 00283 static const uint64_t static_value1 = 0x8a7d9cb8b7900b71ULL; 00284 static const uint64_t static_value2 = 0x3af1072e5d51ae5eULL; 00285 }; 00286 00287 template<class ContainerAllocator> 00288 struct DataType< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > { 00289 static const char* value() 00290 { 00291 return "srs_knowledge/GetObjectsOnTrayResponse"; 00292 } 00293 00294 static const char* value(const ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> &) { return value(); } 00295 }; 00296 00297 template<class ContainerAllocator> 00298 struct Definition< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > { 00299 static const char* value() 00300 { 00301 return "\n\ 00302 \n\ 00303 string[] objects\n\ 00304 string[] classesOfObjects\n\ 00305 \n\ 00306 \n\ 00307 \n\ 00308 \n\ 00309 \n\ 00310 "; 00311 } 00312 00313 static const char* value(const ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> &) { return value(); } 00314 }; 00315 00316 } // namespace message_traits 00317 } // namespace ros 00318 00319 namespace ros 00320 { 00321 namespace serialization 00322 { 00323 00324 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > 00325 { 00326 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00327 { 00328 stream.next(m.map); 00329 } 00330 00331 ROS_DECLARE_ALLINONE_SERIALIZER; 00332 }; // struct GetObjectsOnTrayRequest_ 00333 } // namespace serialization 00334 } // namespace ros 00335 00336 00337 namespace ros 00338 { 00339 namespace serialization 00340 { 00341 00342 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > 00343 { 00344 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00345 { 00346 stream.next(m.objects); 00347 stream.next(m.classesOfObjects); 00348 } 00349 00350 ROS_DECLARE_ALLINONE_SERIALIZER; 00351 }; // struct GetObjectsOnTrayResponse_ 00352 } // namespace serialization 00353 } // namespace ros 00354 00355 namespace ros 00356 { 00357 namespace service_traits 00358 { 00359 template<> 00360 struct MD5Sum<srs_knowledge::GetObjectsOnTray> { 00361 static const char* value() 00362 { 00363 return "d1c7206bb704b11ba6287c8557045c46"; 00364 } 00365 00366 static const char* value(const srs_knowledge::GetObjectsOnTray&) { return value(); } 00367 }; 00368 00369 template<> 00370 struct DataType<srs_knowledge::GetObjectsOnTray> { 00371 static const char* value() 00372 { 00373 return "srs_knowledge/GetObjectsOnTray"; 00374 } 00375 00376 static const char* value(const srs_knowledge::GetObjectsOnTray&) { return value(); } 00377 }; 00378 00379 template<class ContainerAllocator> 00380 struct MD5Sum<srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > { 00381 static const char* value() 00382 { 00383 return "d1c7206bb704b11ba6287c8557045c46"; 00384 } 00385 00386 static const char* value(const srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> &) { return value(); } 00387 }; 00388 00389 template<class ContainerAllocator> 00390 struct DataType<srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> > { 00391 static const char* value() 00392 { 00393 return "srs_knowledge/GetObjectsOnTray"; 00394 } 00395 00396 static const char* value(const srs_knowledge::GetObjectsOnTrayRequest_<ContainerAllocator> &) { return value(); } 00397 }; 00398 00399 template<class ContainerAllocator> 00400 struct MD5Sum<srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > { 00401 static const char* value() 00402 { 00403 return "d1c7206bb704b11ba6287c8557045c46"; 00404 } 00405 00406 static const char* value(const srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> &) { return value(); } 00407 }; 00408 00409 template<class ContainerAllocator> 00410 struct DataType<srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> > { 00411 static const char* value() 00412 { 00413 return "srs_knowledge/GetObjectsOnTray"; 00414 } 00415 00416 static const char* value(const srs_knowledge::GetObjectsOnTrayResponse_<ContainerAllocator> &) { return value(); } 00417 }; 00418 00419 } // namespace service_traits 00420 } // namespace ros 00421 00422 #endif // SRS_KNOWLEDGE_SERVICE_GETOBJECTSONTRAY_H 00423