$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/UpdatePosInfo.srv */ 00002 #ifndef SRS_KNOWLEDGE_SERVICE_UPDATEPOSINFO_H 00003 #define SRS_KNOWLEDGE_SERVICE_UPDATEPOSINFO_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 #include "srs_msgs/SRSSpatialInfo.h" 00020 00021 00022 00023 namespace srs_knowledge 00024 { 00025 template <class ContainerAllocator> 00026 struct UpdatePosInfoRequest_ { 00027 typedef UpdatePosInfoRequest_<ContainerAllocator> Type; 00028 00029 UpdatePosInfoRequest_() 00030 : objectName() 00031 , hhObjectID(0) 00032 , spatialInfo() 00033 , objectURI() 00034 { 00035 } 00036 00037 UpdatePosInfoRequest_(const ContainerAllocator& _alloc) 00038 : objectName(_alloc) 00039 , hhObjectID(0) 00040 , spatialInfo(_alloc) 00041 , objectURI(_alloc) 00042 { 00043 } 00044 00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _objectName_type; 00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > objectName; 00047 00048 typedef uint32_t _hhObjectID_type; 00049 uint32_t hhObjectID; 00050 00051 typedef ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> _spatialInfo_type; 00052 ::srs_msgs::SRSSpatialInfo_<ContainerAllocator> spatialInfo; 00053 00054 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _objectURI_type; 00055 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > objectURI; 00056 00057 00058 private: 00059 static const char* __s_getDataType_() { return "srs_knowledge/UpdatePosInfoRequest"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "c78c3aca32d4c1731c1e02b813f9a187"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getServerMD5Sum_() { return "870a2e0b3efb754b5f3e5f212cb3b217"; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00076 00077 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00078 00079 private: 00080 static const char* __s_getMessageDefinition_() { return "\n\ 00081 \n\ 00082 string objectName\n\ 00083 \n\ 00084 \n\ 00085 uint32 hhObjectID\n\ 00086 \n\ 00087 srs_msgs/SRSSpatialInfo spatialInfo\n\ 00088 \n\ 00089 \n\ 00090 \n\ 00091 \n\ 00092 string objectURI\n\ 00093 \n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: srs_msgs/SRSSpatialInfo\n\ 00097 # Point point\n\ 00098 # Orientation angles\n\ 00099 float32 l\n\ 00100 float32 w\n\ 00101 float32 h\n\ 00102 \n\ 00103 geometry_msgs/Pose pose\n\ 00104 \n\ 00105 ================================================================================\n\ 00106 MSG: geometry_msgs/Pose\n\ 00107 # A representation of pose in free space, composed of postion and orientation. \n\ 00108 Point position\n\ 00109 Quaternion orientation\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: geometry_msgs/Point\n\ 00113 # This contains the position of a point in free space\n\ 00114 float64 x\n\ 00115 float64 y\n\ 00116 float64 z\n\ 00117 \n\ 00118 ================================================================================\n\ 00119 MSG: geometry_msgs/Quaternion\n\ 00120 # This represents an orientation in free space in quaternion form.\n\ 00121 \n\ 00122 float64 x\n\ 00123 float64 y\n\ 00124 float64 z\n\ 00125 float64 w\n\ 00126 \n\ 00127 "; } 00128 public: 00129 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00132 00133 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00134 { 00135 ros::serialization::OStream stream(write_ptr, 1000000000); 00136 ros::serialization::serialize(stream, objectName); 00137 ros::serialization::serialize(stream, hhObjectID); 00138 ros::serialization::serialize(stream, spatialInfo); 00139 ros::serialization::serialize(stream, objectURI); 00140 return stream.getData(); 00141 } 00142 00143 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00144 { 00145 ros::serialization::IStream stream(read_ptr, 1000000000); 00146 ros::serialization::deserialize(stream, objectName); 00147 ros::serialization::deserialize(stream, hhObjectID); 00148 ros::serialization::deserialize(stream, spatialInfo); 00149 ros::serialization::deserialize(stream, objectURI); 00150 return stream.getData(); 00151 } 00152 00153 ROS_DEPRECATED virtual uint32_t serializationLength() const 00154 { 00155 uint32_t size = 0; 00156 size += ros::serialization::serializationLength(objectName); 00157 size += ros::serialization::serializationLength(hhObjectID); 00158 size += ros::serialization::serializationLength(spatialInfo); 00159 size += ros::serialization::serializationLength(objectURI); 00160 return size; 00161 } 00162 00163 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > Ptr; 00164 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> const> ConstPtr; 00165 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00166 }; // struct UpdatePosInfoRequest 00167 typedef ::srs_knowledge::UpdatePosInfoRequest_<std::allocator<void> > UpdatePosInfoRequest; 00168 00169 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoRequest> UpdatePosInfoRequestPtr; 00170 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoRequest const> UpdatePosInfoRequestConstPtr; 00171 00172 00173 template <class ContainerAllocator> 00174 struct UpdatePosInfoResponse_ { 00175 typedef UpdatePosInfoResponse_<ContainerAllocator> Type; 00176 00177 UpdatePosInfoResponse_() 00178 : success(false) 00179 { 00180 } 00181 00182 UpdatePosInfoResponse_(const ContainerAllocator& _alloc) 00183 : success(false) 00184 { 00185 } 00186 00187 typedef uint8_t _success_type; 00188 uint8_t success; 00189 00190 00191 private: 00192 static const char* __s_getDataType_() { return "srs_knowledge/UpdatePosInfoResponse"; } 00193 public: 00194 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00195 00196 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00197 00198 private: 00199 static const char* __s_getMD5Sum_() { return "358e233cde0c8a8bcfea4ce193f8fc15"; } 00200 public: 00201 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00202 00203 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00204 00205 private: 00206 static const char* __s_getServerMD5Sum_() { return "870a2e0b3efb754b5f3e5f212cb3b217"; } 00207 public: 00208 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00209 00210 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00211 00212 private: 00213 static const char* __s_getMessageDefinition_() { return "bool success\n\ 00214 \n\ 00215 "; } 00216 public: 00217 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00218 00219 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00220 00221 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00222 { 00223 ros::serialization::OStream stream(write_ptr, 1000000000); 00224 ros::serialization::serialize(stream, success); 00225 return stream.getData(); 00226 } 00227 00228 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00229 { 00230 ros::serialization::IStream stream(read_ptr, 1000000000); 00231 ros::serialization::deserialize(stream, success); 00232 return stream.getData(); 00233 } 00234 00235 ROS_DEPRECATED virtual uint32_t serializationLength() const 00236 { 00237 uint32_t size = 0; 00238 size += ros::serialization::serializationLength(success); 00239 return size; 00240 } 00241 00242 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > Ptr; 00243 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> const> ConstPtr; 00244 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00245 }; // struct UpdatePosInfoResponse 00246 typedef ::srs_knowledge::UpdatePosInfoResponse_<std::allocator<void> > UpdatePosInfoResponse; 00247 00248 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoResponse> UpdatePosInfoResponsePtr; 00249 typedef boost::shared_ptr< ::srs_knowledge::UpdatePosInfoResponse const> UpdatePosInfoResponseConstPtr; 00250 00251 struct UpdatePosInfo 00252 { 00253 00254 typedef UpdatePosInfoRequest Request; 00255 typedef UpdatePosInfoResponse Response; 00256 Request request; 00257 Response response; 00258 00259 typedef Request RequestType; 00260 typedef Response ResponseType; 00261 }; // struct UpdatePosInfo 00262 } // namespace srs_knowledge 00263 00264 namespace ros 00265 { 00266 namespace message_traits 00267 { 00268 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > : public TrueType {}; 00269 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> const> : public TrueType {}; 00270 template<class ContainerAllocator> 00271 struct MD5Sum< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > { 00272 static const char* value() 00273 { 00274 return "c78c3aca32d4c1731c1e02b813f9a187"; 00275 } 00276 00277 static const char* value(const ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> &) { return value(); } 00278 static const uint64_t static_value1 = 0xc78c3aca32d4c173ULL; 00279 static const uint64_t static_value2 = 0x1c1e02b813f9a187ULL; 00280 }; 00281 00282 template<class ContainerAllocator> 00283 struct DataType< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > { 00284 static const char* value() 00285 { 00286 return "srs_knowledge/UpdatePosInfoRequest"; 00287 } 00288 00289 static const char* value(const ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> &) { return value(); } 00290 }; 00291 00292 template<class ContainerAllocator> 00293 struct Definition< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > { 00294 static const char* value() 00295 { 00296 return "\n\ 00297 \n\ 00298 string objectName\n\ 00299 \n\ 00300 \n\ 00301 uint32 hhObjectID\n\ 00302 \n\ 00303 srs_msgs/SRSSpatialInfo spatialInfo\n\ 00304 \n\ 00305 \n\ 00306 \n\ 00307 \n\ 00308 string objectURI\n\ 00309 \n\ 00310 \n\ 00311 ================================================================================\n\ 00312 MSG: srs_msgs/SRSSpatialInfo\n\ 00313 # Point point\n\ 00314 # Orientation angles\n\ 00315 float32 l\n\ 00316 float32 w\n\ 00317 float32 h\n\ 00318 \n\ 00319 geometry_msgs/Pose pose\n\ 00320 \n\ 00321 ================================================================================\n\ 00322 MSG: geometry_msgs/Pose\n\ 00323 # A representation of pose in free space, composed of postion and orientation. \n\ 00324 Point position\n\ 00325 Quaternion orientation\n\ 00326 \n\ 00327 ================================================================================\n\ 00328 MSG: geometry_msgs/Point\n\ 00329 # This contains the position of a point in free space\n\ 00330 float64 x\n\ 00331 float64 y\n\ 00332 float64 z\n\ 00333 \n\ 00334 ================================================================================\n\ 00335 MSG: geometry_msgs/Quaternion\n\ 00336 # This represents an orientation in free space in quaternion form.\n\ 00337 \n\ 00338 float64 x\n\ 00339 float64 y\n\ 00340 float64 z\n\ 00341 float64 w\n\ 00342 \n\ 00343 "; 00344 } 00345 00346 static const char* value(const ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> &) { return value(); } 00347 }; 00348 00349 } // namespace message_traits 00350 } // namespace ros 00351 00352 00353 namespace ros 00354 { 00355 namespace message_traits 00356 { 00357 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > : public TrueType {}; 00358 template<class ContainerAllocator> struct IsMessage< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> const> : public TrueType {}; 00359 template<class ContainerAllocator> 00360 struct MD5Sum< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > { 00361 static const char* value() 00362 { 00363 return "358e233cde0c8a8bcfea4ce193f8fc15"; 00364 } 00365 00366 static const char* value(const ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> &) { return value(); } 00367 static const uint64_t static_value1 = 0x358e233cde0c8a8bULL; 00368 static const uint64_t static_value2 = 0xcfea4ce193f8fc15ULL; 00369 }; 00370 00371 template<class ContainerAllocator> 00372 struct DataType< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > { 00373 static const char* value() 00374 { 00375 return "srs_knowledge/UpdatePosInfoResponse"; 00376 } 00377 00378 static const char* value(const ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> &) { return value(); } 00379 }; 00380 00381 template<class ContainerAllocator> 00382 struct Definition< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > { 00383 static const char* value() 00384 { 00385 return "bool success\n\ 00386 \n\ 00387 "; 00388 } 00389 00390 static const char* value(const ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> &) { return value(); } 00391 }; 00392 00393 template<class ContainerAllocator> struct IsFixedSize< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > : public TrueType {}; 00394 } // namespace message_traits 00395 } // namespace ros 00396 00397 namespace ros 00398 { 00399 namespace serialization 00400 { 00401 00402 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > 00403 { 00404 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00405 { 00406 stream.next(m.objectName); 00407 stream.next(m.hhObjectID); 00408 stream.next(m.spatialInfo); 00409 stream.next(m.objectURI); 00410 } 00411 00412 ROS_DECLARE_ALLINONE_SERIALIZER; 00413 }; // struct UpdatePosInfoRequest_ 00414 } // namespace serialization 00415 } // namespace ros 00416 00417 00418 namespace ros 00419 { 00420 namespace serialization 00421 { 00422 00423 template<class ContainerAllocator> struct Serializer< ::srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > 00424 { 00425 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00426 { 00427 stream.next(m.success); 00428 } 00429 00430 ROS_DECLARE_ALLINONE_SERIALIZER; 00431 }; // struct UpdatePosInfoResponse_ 00432 } // namespace serialization 00433 } // namespace ros 00434 00435 namespace ros 00436 { 00437 namespace service_traits 00438 { 00439 template<> 00440 struct MD5Sum<srs_knowledge::UpdatePosInfo> { 00441 static const char* value() 00442 { 00443 return "870a2e0b3efb754b5f3e5f212cb3b217"; 00444 } 00445 00446 static const char* value(const srs_knowledge::UpdatePosInfo&) { return value(); } 00447 }; 00448 00449 template<> 00450 struct DataType<srs_knowledge::UpdatePosInfo> { 00451 static const char* value() 00452 { 00453 return "srs_knowledge/UpdatePosInfo"; 00454 } 00455 00456 static const char* value(const srs_knowledge::UpdatePosInfo&) { return value(); } 00457 }; 00458 00459 template<class ContainerAllocator> 00460 struct MD5Sum<srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > { 00461 static const char* value() 00462 { 00463 return "870a2e0b3efb754b5f3e5f212cb3b217"; 00464 } 00465 00466 static const char* value(const srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> &) { return value(); } 00467 }; 00468 00469 template<class ContainerAllocator> 00470 struct DataType<srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> > { 00471 static const char* value() 00472 { 00473 return "srs_knowledge/UpdatePosInfo"; 00474 } 00475 00476 static const char* value(const srs_knowledge::UpdatePosInfoRequest_<ContainerAllocator> &) { return value(); } 00477 }; 00478 00479 template<class ContainerAllocator> 00480 struct MD5Sum<srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > { 00481 static const char* value() 00482 { 00483 return "870a2e0b3efb754b5f3e5f212cb3b217"; 00484 } 00485 00486 static const char* value(const srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> &) { return value(); } 00487 }; 00488 00489 template<class ContainerAllocator> 00490 struct DataType<srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> > { 00491 static const char* value() 00492 { 00493 return "srs_knowledge/UpdatePosInfo"; 00494 } 00495 00496 static const char* value(const srs_knowledge::UpdatePosInfoResponse_<ContainerAllocator> &) { return value(); } 00497 }; 00498 00499 } // namespace service_traits 00500 } // namespace ros 00501 00502 #endif // SRS_KNOWLEDGE_SERVICE_UPDATEPOSINFO_H 00503