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