$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/perception/fast_plane_detection/srv/SetPosition.srv */ 00002 #ifndef FAST_PLANE_DETECTION_SERVICE_SETPOSITION_H 00003 #define FAST_PLANE_DETECTION_SERVICE_SETPOSITION_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 fast_plane_detection 00023 { 00024 template <class ContainerAllocator> 00025 struct SetPositionRequest_ { 00026 typedef SetPositionRequest_<ContainerAllocator> Type; 00027 00028 SetPositionRequest_() 00029 : x(0.0) 00030 , y(0.0) 00031 , z(0.0) 00032 , transform(0) 00033 , width(0) 00034 , height(0) 00035 { 00036 } 00037 00038 SetPositionRequest_(const ContainerAllocator& _alloc) 00039 : x(0.0) 00040 , y(0.0) 00041 , z(0.0) 00042 , transform(0) 00043 , width(0) 00044 , height(0) 00045 { 00046 } 00047 00048 typedef double _x_type; 00049 double x; 00050 00051 typedef double _y_type; 00052 double y; 00053 00054 typedef double _z_type; 00055 double z; 00056 00057 typedef int32_t _transform_type; 00058 int32_t transform; 00059 00060 typedef int32_t _width_type; 00061 int32_t width; 00062 00063 typedef int32_t _height_type; 00064 int32_t height; 00065 00066 00067 private: 00068 static const char* __s_getDataType_() { return "fast_plane_detection/SetPositionRequest"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00071 00072 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00073 00074 private: 00075 static const char* __s_getMD5Sum_() { return "c0616c0926ce289f15713c2df1d4fb0f"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00078 00079 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00080 00081 private: 00082 static const char* __s_getServerMD5Sum_() { return "98bf3204c7beb0638717e3f7fd31933c"; } 00083 public: 00084 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00085 00086 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00087 00088 private: 00089 static const char* __s_getMessageDefinition_() { return "float64 x\n\ 00090 float64 y\n\ 00091 float64 z\n\ 00092 int32 transform\n\ 00093 int32 width\n\ 00094 int32 height\n\ 00095 \n\ 00096 "; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00099 00100 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00101 00102 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00103 { 00104 ros::serialization::OStream stream(write_ptr, 1000000000); 00105 ros::serialization::serialize(stream, x); 00106 ros::serialization::serialize(stream, y); 00107 ros::serialization::serialize(stream, z); 00108 ros::serialization::serialize(stream, transform); 00109 ros::serialization::serialize(stream, width); 00110 ros::serialization::serialize(stream, height); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00115 { 00116 ros::serialization::IStream stream(read_ptr, 1000000000); 00117 ros::serialization::deserialize(stream, x); 00118 ros::serialization::deserialize(stream, y); 00119 ros::serialization::deserialize(stream, z); 00120 ros::serialization::deserialize(stream, transform); 00121 ros::serialization::deserialize(stream, width); 00122 ros::serialization::deserialize(stream, height); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint32_t serializationLength() const 00127 { 00128 uint32_t size = 0; 00129 size += ros::serialization::serializationLength(x); 00130 size += ros::serialization::serializationLength(y); 00131 size += ros::serialization::serializationLength(z); 00132 size += ros::serialization::serializationLength(transform); 00133 size += ros::serialization::serializationLength(width); 00134 size += ros::serialization::serializationLength(height); 00135 return size; 00136 } 00137 00138 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > Ptr; 00139 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> const> ConstPtr; 00140 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00141 }; // struct SetPositionRequest 00142 typedef ::fast_plane_detection::SetPositionRequest_<std::allocator<void> > SetPositionRequest; 00143 00144 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionRequest> SetPositionRequestPtr; 00145 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionRequest const> SetPositionRequestConstPtr; 00146 00147 00148 template <class ContainerAllocator> 00149 struct SetPositionResponse_ { 00150 typedef SetPositionResponse_<ContainerAllocator> Type; 00151 00152 SetPositionResponse_() 00153 : x(0.0) 00154 , y(0.0) 00155 , z(0.0) 00156 , transform(0) 00157 , width(0) 00158 , height(0) 00159 { 00160 } 00161 00162 SetPositionResponse_(const ContainerAllocator& _alloc) 00163 : x(0.0) 00164 , y(0.0) 00165 , z(0.0) 00166 , transform(0) 00167 , width(0) 00168 , height(0) 00169 { 00170 } 00171 00172 typedef double _x_type; 00173 double x; 00174 00175 typedef double _y_type; 00176 double y; 00177 00178 typedef double _z_type; 00179 double z; 00180 00181 typedef int32_t _transform_type; 00182 int32_t transform; 00183 00184 typedef int32_t _width_type; 00185 int32_t width; 00186 00187 typedef int32_t _height_type; 00188 int32_t height; 00189 00190 00191 private: 00192 static const char* __s_getDataType_() { return "fast_plane_detection/SetPositionResponse"; } 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 "c0616c0926ce289f15713c2df1d4fb0f"; } 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 "98bf3204c7beb0638717e3f7fd31933c"; } 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 "float64 x\n\ 00214 float64 y\n\ 00215 float64 z\n\ 00216 int32 transform\n\ 00217 int32 width\n\ 00218 int32 height\n\ 00219 \n\ 00220 \n\ 00221 "; } 00222 public: 00223 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00224 00225 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00226 00227 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00228 { 00229 ros::serialization::OStream stream(write_ptr, 1000000000); 00230 ros::serialization::serialize(stream, x); 00231 ros::serialization::serialize(stream, y); 00232 ros::serialization::serialize(stream, z); 00233 ros::serialization::serialize(stream, transform); 00234 ros::serialization::serialize(stream, width); 00235 ros::serialization::serialize(stream, height); 00236 return stream.getData(); 00237 } 00238 00239 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00240 { 00241 ros::serialization::IStream stream(read_ptr, 1000000000); 00242 ros::serialization::deserialize(stream, x); 00243 ros::serialization::deserialize(stream, y); 00244 ros::serialization::deserialize(stream, z); 00245 ros::serialization::deserialize(stream, transform); 00246 ros::serialization::deserialize(stream, width); 00247 ros::serialization::deserialize(stream, height); 00248 return stream.getData(); 00249 } 00250 00251 ROS_DEPRECATED virtual uint32_t serializationLength() const 00252 { 00253 uint32_t size = 0; 00254 size += ros::serialization::serializationLength(x); 00255 size += ros::serialization::serializationLength(y); 00256 size += ros::serialization::serializationLength(z); 00257 size += ros::serialization::serializationLength(transform); 00258 size += ros::serialization::serializationLength(width); 00259 size += ros::serialization::serializationLength(height); 00260 return size; 00261 } 00262 00263 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > Ptr; 00264 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> const> ConstPtr; 00265 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00266 }; // struct SetPositionResponse 00267 typedef ::fast_plane_detection::SetPositionResponse_<std::allocator<void> > SetPositionResponse; 00268 00269 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionResponse> SetPositionResponsePtr; 00270 typedef boost::shared_ptr< ::fast_plane_detection::SetPositionResponse const> SetPositionResponseConstPtr; 00271 00272 struct SetPosition 00273 { 00274 00275 typedef SetPositionRequest Request; 00276 typedef SetPositionResponse Response; 00277 Request request; 00278 Response response; 00279 00280 typedef Request RequestType; 00281 typedef Response ResponseType; 00282 }; // struct SetPosition 00283 } // namespace fast_plane_detection 00284 00285 namespace ros 00286 { 00287 namespace message_traits 00288 { 00289 template<class ContainerAllocator> struct IsMessage< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > : public TrueType {}; 00290 template<class ContainerAllocator> struct IsMessage< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> const> : public TrueType {}; 00291 template<class ContainerAllocator> 00292 struct MD5Sum< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > { 00293 static const char* value() 00294 { 00295 return "c0616c0926ce289f15713c2df1d4fb0f"; 00296 } 00297 00298 static const char* value(const ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> &) { return value(); } 00299 static const uint64_t static_value1 = 0xc0616c0926ce289fULL; 00300 static const uint64_t static_value2 = 0x15713c2df1d4fb0fULL; 00301 }; 00302 00303 template<class ContainerAllocator> 00304 struct DataType< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > { 00305 static const char* value() 00306 { 00307 return "fast_plane_detection/SetPositionRequest"; 00308 } 00309 00310 static const char* value(const ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> &) { return value(); } 00311 }; 00312 00313 template<class ContainerAllocator> 00314 struct Definition< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > { 00315 static const char* value() 00316 { 00317 return "float64 x\n\ 00318 float64 y\n\ 00319 float64 z\n\ 00320 int32 transform\n\ 00321 int32 width\n\ 00322 int32 height\n\ 00323 \n\ 00324 "; 00325 } 00326 00327 static const char* value(const ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> &) { return value(); } 00328 }; 00329 00330 template<class ContainerAllocator> struct IsFixedSize< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > : public TrueType {}; 00331 } // namespace message_traits 00332 } // namespace ros 00333 00334 00335 namespace ros 00336 { 00337 namespace message_traits 00338 { 00339 template<class ContainerAllocator> struct IsMessage< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > : public TrueType {}; 00340 template<class ContainerAllocator> struct IsMessage< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> const> : public TrueType {}; 00341 template<class ContainerAllocator> 00342 struct MD5Sum< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > { 00343 static const char* value() 00344 { 00345 return "c0616c0926ce289f15713c2df1d4fb0f"; 00346 } 00347 00348 static const char* value(const ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> &) { return value(); } 00349 static const uint64_t static_value1 = 0xc0616c0926ce289fULL; 00350 static const uint64_t static_value2 = 0x15713c2df1d4fb0fULL; 00351 }; 00352 00353 template<class ContainerAllocator> 00354 struct DataType< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > { 00355 static const char* value() 00356 { 00357 return "fast_plane_detection/SetPositionResponse"; 00358 } 00359 00360 static const char* value(const ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> &) { return value(); } 00361 }; 00362 00363 template<class ContainerAllocator> 00364 struct Definition< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > { 00365 static const char* value() 00366 { 00367 return "float64 x\n\ 00368 float64 y\n\ 00369 float64 z\n\ 00370 int32 transform\n\ 00371 int32 width\n\ 00372 int32 height\n\ 00373 \n\ 00374 \n\ 00375 "; 00376 } 00377 00378 static const char* value(const ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> &) { return value(); } 00379 }; 00380 00381 template<class ContainerAllocator> struct IsFixedSize< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > : public TrueType {}; 00382 } // namespace message_traits 00383 } // namespace ros 00384 00385 namespace ros 00386 { 00387 namespace serialization 00388 { 00389 00390 template<class ContainerAllocator> struct Serializer< ::fast_plane_detection::SetPositionRequest_<ContainerAllocator> > 00391 { 00392 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00393 { 00394 stream.next(m.x); 00395 stream.next(m.y); 00396 stream.next(m.z); 00397 stream.next(m.transform); 00398 stream.next(m.width); 00399 stream.next(m.height); 00400 } 00401 00402 ROS_DECLARE_ALLINONE_SERIALIZER; 00403 }; // struct SetPositionRequest_ 00404 } // namespace serialization 00405 } // namespace ros 00406 00407 00408 namespace ros 00409 { 00410 namespace serialization 00411 { 00412 00413 template<class ContainerAllocator> struct Serializer< ::fast_plane_detection::SetPositionResponse_<ContainerAllocator> > 00414 { 00415 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00416 { 00417 stream.next(m.x); 00418 stream.next(m.y); 00419 stream.next(m.z); 00420 stream.next(m.transform); 00421 stream.next(m.width); 00422 stream.next(m.height); 00423 } 00424 00425 ROS_DECLARE_ALLINONE_SERIALIZER; 00426 }; // struct SetPositionResponse_ 00427 } // namespace serialization 00428 } // namespace ros 00429 00430 namespace ros 00431 { 00432 namespace service_traits 00433 { 00434 template<> 00435 struct MD5Sum<fast_plane_detection::SetPosition> { 00436 static const char* value() 00437 { 00438 return "98bf3204c7beb0638717e3f7fd31933c"; 00439 } 00440 00441 static const char* value(const fast_plane_detection::SetPosition&) { return value(); } 00442 }; 00443 00444 template<> 00445 struct DataType<fast_plane_detection::SetPosition> { 00446 static const char* value() 00447 { 00448 return "fast_plane_detection/SetPosition"; 00449 } 00450 00451 static const char* value(const fast_plane_detection::SetPosition&) { return value(); } 00452 }; 00453 00454 template<class ContainerAllocator> 00455 struct MD5Sum<fast_plane_detection::SetPositionRequest_<ContainerAllocator> > { 00456 static const char* value() 00457 { 00458 return "98bf3204c7beb0638717e3f7fd31933c"; 00459 } 00460 00461 static const char* value(const fast_plane_detection::SetPositionRequest_<ContainerAllocator> &) { return value(); } 00462 }; 00463 00464 template<class ContainerAllocator> 00465 struct DataType<fast_plane_detection::SetPositionRequest_<ContainerAllocator> > { 00466 static const char* value() 00467 { 00468 return "fast_plane_detection/SetPosition"; 00469 } 00470 00471 static const char* value(const fast_plane_detection::SetPositionRequest_<ContainerAllocator> &) { return value(); } 00472 }; 00473 00474 template<class ContainerAllocator> 00475 struct MD5Sum<fast_plane_detection::SetPositionResponse_<ContainerAllocator> > { 00476 static const char* value() 00477 { 00478 return "98bf3204c7beb0638717e3f7fd31933c"; 00479 } 00480 00481 static const char* value(const fast_plane_detection::SetPositionResponse_<ContainerAllocator> &) { return value(); } 00482 }; 00483 00484 template<class ContainerAllocator> 00485 struct DataType<fast_plane_detection::SetPositionResponse_<ContainerAllocator> > { 00486 static const char* value() 00487 { 00488 return "fast_plane_detection/SetPosition"; 00489 } 00490 00491 static const char* value(const fast_plane_detection::SetPositionResponse_<ContainerAllocator> &) { return value(); } 00492 }; 00493 00494 } // namespace service_traits 00495 } // namespace ros 00496 00497 #endif // FAST_PLANE_DETECTION_SERVICE_SETPOSITION_H 00498