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