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