00001
00002 #ifndef CHECKERBOARD_DETECTOR2_SERVICE_DETECT_H
00003 #define CHECKERBOARD_DETECTOR2_SERVICE_DETECT_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 #include "sensor_msgs/Image.h"
00016 #include "sensor_msgs/CameraInfo.h"
00017
00018
00019 #include "checkerboard_detector2/ObjectDetection.h"
00020
00021 namespace checkerboard_detector2
00022 {
00023 template <class ContainerAllocator>
00024 struct DetectRequest_ : public ros::Message
00025 {
00026 typedef DetectRequest_<ContainerAllocator> Type;
00027
00028 DetectRequest_()
00029 : image()
00030 , camera_info()
00031 {
00032 }
00033
00034 DetectRequest_(const ContainerAllocator& _alloc)
00035 : image(_alloc)
00036 , camera_info(_alloc)
00037 {
00038 }
00039
00040 typedef ::sensor_msgs::Image_<ContainerAllocator> _image_type;
00041 ::sensor_msgs::Image_<ContainerAllocator> image;
00042
00043 typedef ::sensor_msgs::CameraInfo_<ContainerAllocator> _camera_info_type;
00044 ::sensor_msgs::CameraInfo_<ContainerAllocator> camera_info;
00045
00046
00047 private:
00048 static const char* __s_getDataType_() { return "checkerboard_detector2/DetectRequest"; }
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 "bfee1901edaf2aa4d9f0844a03ff634f"; }
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 "7d2841c5eef2578fbb718be68316c081"; }
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 sensor_msgs/Image image\n\
00071 sensor_msgs/CameraInfo camera_info\n\
00072 \n\
00073 ================================================================================\n\
00074 MSG: sensor_msgs/Image\n\
00075 # This message contains an uncompressed image\n\
00076 # (0, 0) is at top-left corner of image\n\
00077 #\n\
00078 \n\
00079 Header header # Header timestamp should be acquisition time of image\n\
00080 # Header frame_id should be optical frame of camera\n\
00081 # origin of frame should be optical center of cameara\n\
00082 # +x should point to the right in the image\n\
00083 # +y should point down in the image\n\
00084 # +z should point into to plane of the image\n\
00085 # If the frame_id here and the frame_id of the CameraInfo\n\
00086 # message associated with the image conflict\n\
00087 # the behavior is undefined\n\
00088 \n\
00089 uint32 height # image height, that is, number of rows\n\
00090 uint32 width # image width, that is, number of columns\n\
00091 \n\
00092 # The legal values for encoding are in file src/image_encodings.cpp\n\
00093 # If you want to standardize a new string format, join\n\
00094 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00095 \n\
00096 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00097 # taken from the list of strings in src/image_encodings.cpp\n\
00098 \n\
00099 uint8 is_bigendian # is this data bigendian?\n\
00100 uint32 step # Full row length in bytes\n\
00101 uint8[] data # actual matrix data, size is (step * rows)\n\
00102 \n\
00103 ================================================================================\n\
00104 MSG: std_msgs/Header\n\
00105 # Standard metadata for higher-level stamped data types.\n\
00106 # This is generally used to communicate timestamped data \n\
00107 # in a particular coordinate frame.\n\
00108 # \n\
00109 # sequence ID: consecutively increasing ID \n\
00110 uint32 seq\n\
00111 #Two-integer timestamp that is expressed as:\n\
00112 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00113 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00114 # time-handling sugar is provided by the client library\n\
00115 time stamp\n\
00116 #Frame this data is associated with\n\
00117 # 0: no frame\n\
00118 # 1: global frame\n\
00119 string frame_id\n\
00120 \n\
00121 ================================================================================\n\
00122 MSG: sensor_msgs/CameraInfo\n\
00123 # This message defines meta information for a camera. It should be in a\n\
00124 # camera namespace on topic \"camera_info\" and accompanied by up to five\n\
00125 # image topics named:\n\
00126 #\n\
00127 # image_raw - raw data from the camera driver, possibly Bayer encoded\n\
00128 # image - monochrome, distorted\n\
00129 # image_color - color, distorted\n\
00130 # image_rect - monochrome, rectified\n\
00131 # image_rect_color - color, rectified\n\
00132 #\n\
00133 # The image_pipeline contains packages (image_proc, stereo_image_proc)\n\
00134 # for producing the four processed image topics from image_raw and\n\
00135 # camera_info. The meaning of the camera parameters are described in\n\
00136 # detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.\n\
00137 #\n\
00138 # The image_geometry package provides a user-friendly interface to\n\
00139 # common operations using this meta information. If you want to, e.g.,\n\
00140 # project a 3d point into image coordinates, we strongly recommend\n\
00141 # using image_geometry.\n\
00142 #\n\
00143 # If the camera is uncalibrated, the matrices D, K, R, P should be left\n\
00144 # zeroed out. In particular, clients may assume that K[0] == 0.0\n\
00145 # indicates an uncalibrated camera.\n\
00146 \n\
00147 #######################################################################\n\
00148 # Image acquisition info #\n\
00149 #######################################################################\n\
00150 \n\
00151 # Time of image acquisition, camera coordinate frame ID\n\
00152 Header header # Header timestamp should be acquisition time of image\n\
00153 # Header frame_id should be optical frame of camera\n\
00154 # origin of frame should be optical center of camera\n\
00155 # +x should point to the right in the image\n\
00156 # +y should point down in the image\n\
00157 # +z should point into the plane of the image\n\
00158 \n\
00159 \n\
00160 #######################################################################\n\
00161 # Calibration Parameters #\n\
00162 #######################################################################\n\
00163 # These are fixed during camera calibration. Their values will be the #\n\
00164 # same in all messages until the camera is recalibrated. Note that #\n\
00165 # self-calibrating systems may \"recalibrate\" frequently. #\n\
00166 # #\n\
00167 # The internal parameters can be used to warp a raw (distorted) image #\n\
00168 # to: #\n\
00169 # 1. An undistorted image (requires D and K) #\n\
00170 # 2. A rectified image (requires D, K, R) #\n\
00171 # The projection matrix P projects 3D points into the rectified image.#\n\
00172 #######################################################################\n\
00173 \n\
00174 # The image dimensions with which the camera was calibrated. Normally\n\
00175 # this will be the full camera resolution in pixels.\n\
00176 uint32 height\n\
00177 uint32 width\n\
00178 \n\
00179 # The distortion model used. Supported models are listed in\n\
00180 # sensor_msgs/distortion_models.h. For most cameras, \"plumb_bob\" - a\n\
00181 # simple model of radial and tangential distortion - is sufficent.\n\
00182 string distortion_model\n\
00183 \n\
00184 # The distortion parameters, size depending on the distortion model.\n\
00185 # For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).\n\
00186 float64[] D\n\
00187 \n\
00188 # Intrinsic camera matrix for the raw (distorted) images.\n\
00189 # [fx 0 cx]\n\
00190 # K = [ 0 fy cy]\n\
00191 # [ 0 0 1]\n\
00192 # Projects 3D points in the camera coordinate frame to 2D pixel\n\
00193 # coordinates using the focal lengths (fx, fy) and principal point\n\
00194 # (cx, cy).\n\
00195 float64[9] K # 3x3 row-major matrix\n\
00196 \n\
00197 # Rectification matrix (stereo cameras only)\n\
00198 # A rotation matrix aligning the camera coordinate system to the ideal\n\
00199 # stereo image plane so that epipolar lines in both stereo images are\n\
00200 # parallel.\n\
00201 float64[9] R # 3x3 row-major matrix\n\
00202 \n\
00203 # Projection/camera matrix\n\
00204 # [fx' 0 cx' Tx]\n\
00205 # P = [ 0 fy' cy' Ty]\n\
00206 # [ 0 0 1 0]\n\
00207 # By convention, this matrix specifies the intrinsic (camera) matrix\n\
00208 # of the processed (rectified) image. That is, the left 3x3 portion\n\
00209 # is the normal camera intrinsic matrix for the rectified image.\n\
00210 # It projects 3D points in the camera coordinate frame to 2D pixel\n\
00211 # coordinates using the focal lengths (fx', fy') and principal point\n\
00212 # (cx', cy') - these may differ from the values in K.\n\
00213 # For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will\n\
00214 # also have R = the identity and P[1:3,1:3] = K.\n\
00215 # For a stereo pair, the fourth column [Tx Ty 0]' is related to the\n\
00216 # position of the optical center of the second camera in the first\n\
00217 # camera's frame. We assume Tz = 0 so both cameras are in the same\n\
00218 # stereo image plane. The first camera always has Tx = Ty = 0. For\n\
00219 # the right (second) camera of a horizontal stereo pair, Ty = 0 and\n\
00220 # Tx = -fx' * B, where B is the baseline between the cameras.\n\
00221 # Given a 3D point [X Y Z]', the projection (x, y) of the point onto\n\
00222 # the rectified image is given by:\n\
00223 # [u v w]' = P * [X Y Z 1]'\n\
00224 # x = u / w\n\
00225 # y = v / w\n\
00226 # This holds for both images of a stereo pair.\n\
00227 float64[12] P # 3x4 row-major matrix\n\
00228 \n\
00229 \n\
00230 #######################################################################\n\
00231 # Operational Parameters #\n\
00232 #######################################################################\n\
00233 # These define the image region actually captured by the camera #\n\
00234 # driver. Although they affect the geometry of the output image, they #\n\
00235 # may be changed freely without recalibrating the camera. #\n\
00236 #######################################################################\n\
00237 \n\
00238 # Binning refers here to any camera setting which combines rectangular\n\
00239 # neighborhoods of pixels into larger \"super-pixels.\" It reduces the\n\
00240 # resolution of the output image to\n\
00241 # (width / binning_x) x (height / binning_y).\n\
00242 # The default values binning_x = binning_y = 0 is considered the same\n\
00243 # as binning_x = binning_y = 1 (no subsampling).\n\
00244 uint32 binning_x\n\
00245 uint32 binning_y\n\
00246 \n\
00247 # Region of interest (subwindow of full camera resolution), given in\n\
00248 # full resolution (unbinned) image coordinates. A particular ROI\n\
00249 # always denotes the same window of pixels on the camera sensor,\n\
00250 # regardless of binning settings.\n\
00251 # The default setting of roi (all values 0) is considered the same as\n\
00252 # full resolution (roi.width = width, roi.height = height).\n\
00253 RegionOfInterest roi\n\
00254 \n\
00255 ================================================================================\n\
00256 MSG: sensor_msgs/RegionOfInterest\n\
00257 # This message is used to specify a region of interest within an image.\n\
00258 #\n\
00259 # When used to specify the ROI setting of the camera when the image was\n\
00260 # taken, the height and width fields should either match the height and\n\
00261 # width fields for the associated image; or height = width = 0\n\
00262 # indicates that the full resolution image was captured.\n\
00263 \n\
00264 uint32 x_offset # Leftmost pixel of the ROI\n\
00265 # (0 if the ROI includes the left edge of the image)\n\
00266 uint32 y_offset # Topmost pixel of the ROI\n\
00267 # (0 if the ROI includes the top edge of the image)\n\
00268 uint32 height # Height of ROI\n\
00269 uint32 width # Width of ROI\n\
00270 \n\
00271 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
00272 # ROI in this message. Typically this should be False if the full image\n\
00273 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
00274 # used).\n\
00275 bool do_rectify\n\
00276 \n\
00277 "; }
00278 public:
00279 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00280
00281 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00282
00283 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00284 {
00285 ros::serialization::OStream stream(write_ptr, 1000000000);
00286 ros::serialization::serialize(stream, image);
00287 ros::serialization::serialize(stream, camera_info);
00288 return stream.getData();
00289 }
00290
00291 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00292 {
00293 ros::serialization::IStream stream(read_ptr, 1000000000);
00294 ros::serialization::deserialize(stream, image);
00295 ros::serialization::deserialize(stream, camera_info);
00296 return stream.getData();
00297 }
00298
00299 ROS_DEPRECATED virtual uint32_t serializationLength() const
00300 {
00301 uint32_t size = 0;
00302 size += ros::serialization::serializationLength(image);
00303 size += ros::serialization::serializationLength(camera_info);
00304 return size;
00305 }
00306
00307 typedef boost::shared_ptr< ::checkerboard_detector2::DetectRequest_<ContainerAllocator> > Ptr;
00308 typedef boost::shared_ptr< ::checkerboard_detector2::DetectRequest_<ContainerAllocator> const> ConstPtr;
00309 };
00310 typedef ::checkerboard_detector2::DetectRequest_<std::allocator<void> > DetectRequest;
00311
00312 typedef boost::shared_ptr< ::checkerboard_detector2::DetectRequest> DetectRequestPtr;
00313 typedef boost::shared_ptr< ::checkerboard_detector2::DetectRequest const> DetectRequestConstPtr;
00314
00315
00316 template <class ContainerAllocator>
00317 struct DetectResponse_ : public ros::Message
00318 {
00319 typedef DetectResponse_<ContainerAllocator> Type;
00320
00321 DetectResponse_()
00322 : object_detection()
00323 {
00324 }
00325
00326 DetectResponse_(const ContainerAllocator& _alloc)
00327 : object_detection(_alloc)
00328 {
00329 }
00330
00331 typedef ::checkerboard_detector2::ObjectDetection_<ContainerAllocator> _object_detection_type;
00332 ::checkerboard_detector2::ObjectDetection_<ContainerAllocator> object_detection;
00333
00334
00335 private:
00336 static const char* __s_getDataType_() { return "checkerboard_detector2/DetectResponse"; }
00337 public:
00338 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00339
00340 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00341
00342 private:
00343 static const char* __s_getMD5Sum_() { return "fa5565282e26025bb768b1b949144e94"; }
00344 public:
00345 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00346
00347 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00348
00349 private:
00350 static const char* __s_getServerMD5Sum_() { return "7d2841c5eef2578fbb718be68316c081"; }
00351 public:
00352 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00353
00354 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00355
00356 private:
00357 static const char* __s_getMessageDefinition_() { return "ObjectDetection object_detection\n\
00358 \n\
00359 \n\
00360 ================================================================================\n\
00361 MSG: checkerboard_detector2/ObjectDetection\n\
00362 Header header\n\
00363 Object6DPose[] objects\n\
00364 # unique image id these objects were taken from\n\
00365 \n\
00366 ================================================================================\n\
00367 MSG: std_msgs/Header\n\
00368 # Standard metadata for higher-level stamped data types.\n\
00369 # This is generally used to communicate timestamped data \n\
00370 # in a particular coordinate frame.\n\
00371 # \n\
00372 # sequence ID: consecutively increasing ID \n\
00373 uint32 seq\n\
00374 #Two-integer timestamp that is expressed as:\n\
00375 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00376 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00377 # time-handling sugar is provided by the client library\n\
00378 time stamp\n\
00379 #Frame this data is associated with\n\
00380 # 0: no frame\n\
00381 # 1: global frame\n\
00382 string frame_id\n\
00383 \n\
00384 ================================================================================\n\
00385 MSG: checkerboard_detector2/Object6DPose\n\
00386 # 6D pose of object\n\
00387 geometry_msgs/Pose pose\n\
00388 \n\
00389 # type of object, usually contains the filename of the object that allows the receiving side to visualize it\n\
00390 # can also be used as a unique type id\n\
00391 string type \n\
00392 uint32 id\n\
00393 ================================================================================\n\
00394 MSG: geometry_msgs/Pose\n\
00395 # A representation of pose in free space, composed of postion and orientation. \n\
00396 Point position\n\
00397 Quaternion orientation\n\
00398 \n\
00399 ================================================================================\n\
00400 MSG: geometry_msgs/Point\n\
00401 # This contains the position of a point in free space\n\
00402 float64 x\n\
00403 float64 y\n\
00404 float64 z\n\
00405 \n\
00406 ================================================================================\n\
00407 MSG: geometry_msgs/Quaternion\n\
00408 # This represents an orientation in free space in quaternion form.\n\
00409 \n\
00410 float64 x\n\
00411 float64 y\n\
00412 float64 z\n\
00413 float64 w\n\
00414 \n\
00415 "; }
00416 public:
00417 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00418
00419 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00420
00421 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00422 {
00423 ros::serialization::OStream stream(write_ptr, 1000000000);
00424 ros::serialization::serialize(stream, object_detection);
00425 return stream.getData();
00426 }
00427
00428 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00429 {
00430 ros::serialization::IStream stream(read_ptr, 1000000000);
00431 ros::serialization::deserialize(stream, object_detection);
00432 return stream.getData();
00433 }
00434
00435 ROS_DEPRECATED virtual uint32_t serializationLength() const
00436 {
00437 uint32_t size = 0;
00438 size += ros::serialization::serializationLength(object_detection);
00439 return size;
00440 }
00441
00442 typedef boost::shared_ptr< ::checkerboard_detector2::DetectResponse_<ContainerAllocator> > Ptr;
00443 typedef boost::shared_ptr< ::checkerboard_detector2::DetectResponse_<ContainerAllocator> const> ConstPtr;
00444 };
00445 typedef ::checkerboard_detector2::DetectResponse_<std::allocator<void> > DetectResponse;
00446
00447 typedef boost::shared_ptr< ::checkerboard_detector2::DetectResponse> DetectResponsePtr;
00448 typedef boost::shared_ptr< ::checkerboard_detector2::DetectResponse const> DetectResponseConstPtr;
00449
00450 struct Detect
00451 {
00452
00453 typedef DetectRequest Request;
00454 typedef DetectResponse Response;
00455 Request request;
00456 Response response;
00457
00458 typedef Request RequestType;
00459 typedef Response ResponseType;
00460 };
00461 }
00462
00463 namespace ros
00464 {
00465 namespace message_traits
00466 {
00467 template<class ContainerAllocator>
00468 struct MD5Sum< ::checkerboard_detector2::DetectRequest_<ContainerAllocator> > {
00469 static const char* value()
00470 {
00471 return "bfee1901edaf2aa4d9f0844a03ff634f";
00472 }
00473
00474 static const char* value(const ::checkerboard_detector2::DetectRequest_<ContainerAllocator> &) { return value(); }
00475 static const uint64_t static_value1 = 0xbfee1901edaf2aa4ULL;
00476 static const uint64_t static_value2 = 0xd9f0844a03ff634fULL;
00477 };
00478
00479 template<class ContainerAllocator>
00480 struct DataType< ::checkerboard_detector2::DetectRequest_<ContainerAllocator> > {
00481 static const char* value()
00482 {
00483 return "checkerboard_detector2/DetectRequest";
00484 }
00485
00486 static const char* value(const ::checkerboard_detector2::DetectRequest_<ContainerAllocator> &) { return value(); }
00487 };
00488
00489 template<class ContainerAllocator>
00490 struct Definition< ::checkerboard_detector2::DetectRequest_<ContainerAllocator> > {
00491 static const char* value()
00492 {
00493 return "\n\
00494 sensor_msgs/Image image\n\
00495 sensor_msgs/CameraInfo camera_info\n\
00496 \n\
00497 ================================================================================\n\
00498 MSG: sensor_msgs/Image\n\
00499 # This message contains an uncompressed image\n\
00500 # (0, 0) is at top-left corner of image\n\
00501 #\n\
00502 \n\
00503 Header header # Header timestamp should be acquisition time of image\n\
00504 # Header frame_id should be optical frame of camera\n\
00505 # origin of frame should be optical center of cameara\n\
00506 # +x should point to the right in the image\n\
00507 # +y should point down in the image\n\
00508 # +z should point into to plane of the image\n\
00509 # If the frame_id here and the frame_id of the CameraInfo\n\
00510 # message associated with the image conflict\n\
00511 # the behavior is undefined\n\
00512 \n\
00513 uint32 height # image height, that is, number of rows\n\
00514 uint32 width # image width, that is, number of columns\n\
00515 \n\
00516 # The legal values for encoding are in file src/image_encodings.cpp\n\
00517 # If you want to standardize a new string format, join\n\
00518 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00519 \n\
00520 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00521 # taken from the list of strings in src/image_encodings.cpp\n\
00522 \n\
00523 uint8 is_bigendian # is this data bigendian?\n\
00524 uint32 step # Full row length in bytes\n\
00525 uint8[] data # actual matrix data, size is (step * rows)\n\
00526 \n\
00527 ================================================================================\n\
00528 MSG: std_msgs/Header\n\
00529 # Standard metadata for higher-level stamped data types.\n\
00530 # This is generally used to communicate timestamped data \n\
00531 # in a particular coordinate frame.\n\
00532 # \n\
00533 # sequence ID: consecutively increasing ID \n\
00534 uint32 seq\n\
00535 #Two-integer timestamp that is expressed as:\n\
00536 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00537 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00538 # time-handling sugar is provided by the client library\n\
00539 time stamp\n\
00540 #Frame this data is associated with\n\
00541 # 0: no frame\n\
00542 # 1: global frame\n\
00543 string frame_id\n\
00544 \n\
00545 ================================================================================\n\
00546 MSG: sensor_msgs/CameraInfo\n\
00547 # This message defines meta information for a camera. It should be in a\n\
00548 # camera namespace on topic \"camera_info\" and accompanied by up to five\n\
00549 # image topics named:\n\
00550 #\n\
00551 # image_raw - raw data from the camera driver, possibly Bayer encoded\n\
00552 # image - monochrome, distorted\n\
00553 # image_color - color, distorted\n\
00554 # image_rect - monochrome, rectified\n\
00555 # image_rect_color - color, rectified\n\
00556 #\n\
00557 # The image_pipeline contains packages (image_proc, stereo_image_proc)\n\
00558 # for producing the four processed image topics from image_raw and\n\
00559 # camera_info. The meaning of the camera parameters are described in\n\
00560 # detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.\n\
00561 #\n\
00562 # The image_geometry package provides a user-friendly interface to\n\
00563 # common operations using this meta information. If you want to, e.g.,\n\
00564 # project a 3d point into image coordinates, we strongly recommend\n\
00565 # using image_geometry.\n\
00566 #\n\
00567 # If the camera is uncalibrated, the matrices D, K, R, P should be left\n\
00568 # zeroed out. In particular, clients may assume that K[0] == 0.0\n\
00569 # indicates an uncalibrated camera.\n\
00570 \n\
00571 #######################################################################\n\
00572 # Image acquisition info #\n\
00573 #######################################################################\n\
00574 \n\
00575 # Time of image acquisition, camera coordinate frame ID\n\
00576 Header header # Header timestamp should be acquisition time of image\n\
00577 # Header frame_id should be optical frame of camera\n\
00578 # origin of frame should be optical center of camera\n\
00579 # +x should point to the right in the image\n\
00580 # +y should point down in the image\n\
00581 # +z should point into the plane of the image\n\
00582 \n\
00583 \n\
00584 #######################################################################\n\
00585 # Calibration Parameters #\n\
00586 #######################################################################\n\
00587 # These are fixed during camera calibration. Their values will be the #\n\
00588 # same in all messages until the camera is recalibrated. Note that #\n\
00589 # self-calibrating systems may \"recalibrate\" frequently. #\n\
00590 # #\n\
00591 # The internal parameters can be used to warp a raw (distorted) image #\n\
00592 # to: #\n\
00593 # 1. An undistorted image (requires D and K) #\n\
00594 # 2. A rectified image (requires D, K, R) #\n\
00595 # The projection matrix P projects 3D points into the rectified image.#\n\
00596 #######################################################################\n\
00597 \n\
00598 # The image dimensions with which the camera was calibrated. Normally\n\
00599 # this will be the full camera resolution in pixels.\n\
00600 uint32 height\n\
00601 uint32 width\n\
00602 \n\
00603 # The distortion model used. Supported models are listed in\n\
00604 # sensor_msgs/distortion_models.h. For most cameras, \"plumb_bob\" - a\n\
00605 # simple model of radial and tangential distortion - is sufficent.\n\
00606 string distortion_model\n\
00607 \n\
00608 # The distortion parameters, size depending on the distortion model.\n\
00609 # For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).\n\
00610 float64[] D\n\
00611 \n\
00612 # Intrinsic camera matrix for the raw (distorted) images.\n\
00613 # [fx 0 cx]\n\
00614 # K = [ 0 fy cy]\n\
00615 # [ 0 0 1]\n\
00616 # Projects 3D points in the camera coordinate frame to 2D pixel\n\
00617 # coordinates using the focal lengths (fx, fy) and principal point\n\
00618 # (cx, cy).\n\
00619 float64[9] K # 3x3 row-major matrix\n\
00620 \n\
00621 # Rectification matrix (stereo cameras only)\n\
00622 # A rotation matrix aligning the camera coordinate system to the ideal\n\
00623 # stereo image plane so that epipolar lines in both stereo images are\n\
00624 # parallel.\n\
00625 float64[9] R # 3x3 row-major matrix\n\
00626 \n\
00627 # Projection/camera matrix\n\
00628 # [fx' 0 cx' Tx]\n\
00629 # P = [ 0 fy' cy' Ty]\n\
00630 # [ 0 0 1 0]\n\
00631 # By convention, this matrix specifies the intrinsic (camera) matrix\n\
00632 # of the processed (rectified) image. That is, the left 3x3 portion\n\
00633 # is the normal camera intrinsic matrix for the rectified image.\n\
00634 # It projects 3D points in the camera coordinate frame to 2D pixel\n\
00635 # coordinates using the focal lengths (fx', fy') and principal point\n\
00636 # (cx', cy') - these may differ from the values in K.\n\
00637 # For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will\n\
00638 # also have R = the identity and P[1:3,1:3] = K.\n\
00639 # For a stereo pair, the fourth column [Tx Ty 0]' is related to the\n\
00640 # position of the optical center of the second camera in the first\n\
00641 # camera's frame. We assume Tz = 0 so both cameras are in the same\n\
00642 # stereo image plane. The first camera always has Tx = Ty = 0. For\n\
00643 # the right (second) camera of a horizontal stereo pair, Ty = 0 and\n\
00644 # Tx = -fx' * B, where B is the baseline between the cameras.\n\
00645 # Given a 3D point [X Y Z]', the projection (x, y) of the point onto\n\
00646 # the rectified image is given by:\n\
00647 # [u v w]' = P * [X Y Z 1]'\n\
00648 # x = u / w\n\
00649 # y = v / w\n\
00650 # This holds for both images of a stereo pair.\n\
00651 float64[12] P # 3x4 row-major matrix\n\
00652 \n\
00653 \n\
00654 #######################################################################\n\
00655 # Operational Parameters #\n\
00656 #######################################################################\n\
00657 # These define the image region actually captured by the camera #\n\
00658 # driver. Although they affect the geometry of the output image, they #\n\
00659 # may be changed freely without recalibrating the camera. #\n\
00660 #######################################################################\n\
00661 \n\
00662 # Binning refers here to any camera setting which combines rectangular\n\
00663 # neighborhoods of pixels into larger \"super-pixels.\" It reduces the\n\
00664 # resolution of the output image to\n\
00665 # (width / binning_x) x (height / binning_y).\n\
00666 # The default values binning_x = binning_y = 0 is considered the same\n\
00667 # as binning_x = binning_y = 1 (no subsampling).\n\
00668 uint32 binning_x\n\
00669 uint32 binning_y\n\
00670 \n\
00671 # Region of interest (subwindow of full camera resolution), given in\n\
00672 # full resolution (unbinned) image coordinates. A particular ROI\n\
00673 # always denotes the same window of pixels on the camera sensor,\n\
00674 # regardless of binning settings.\n\
00675 # The default setting of roi (all values 0) is considered the same as\n\
00676 # full resolution (roi.width = width, roi.height = height).\n\
00677 RegionOfInterest roi\n\
00678 \n\
00679 ================================================================================\n\
00680 MSG: sensor_msgs/RegionOfInterest\n\
00681 # This message is used to specify a region of interest within an image.\n\
00682 #\n\
00683 # When used to specify the ROI setting of the camera when the image was\n\
00684 # taken, the height and width fields should either match the height and\n\
00685 # width fields for the associated image; or height = width = 0\n\
00686 # indicates that the full resolution image was captured.\n\
00687 \n\
00688 uint32 x_offset # Leftmost pixel of the ROI\n\
00689 # (0 if the ROI includes the left edge of the image)\n\
00690 uint32 y_offset # Topmost pixel of the ROI\n\
00691 # (0 if the ROI includes the top edge of the image)\n\
00692 uint32 height # Height of ROI\n\
00693 uint32 width # Width of ROI\n\
00694 \n\
00695 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
00696 # ROI in this message. Typically this should be False if the full image\n\
00697 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
00698 # used).\n\
00699 bool do_rectify\n\
00700 \n\
00701 ";
00702 }
00703
00704 static const char* value(const ::checkerboard_detector2::DetectRequest_<ContainerAllocator> &) { return value(); }
00705 };
00706
00707 }
00708 }
00709
00710
00711 namespace ros
00712 {
00713 namespace message_traits
00714 {
00715 template<class ContainerAllocator>
00716 struct MD5Sum< ::checkerboard_detector2::DetectResponse_<ContainerAllocator> > {
00717 static const char* value()
00718 {
00719 return "fa5565282e26025bb768b1b949144e94";
00720 }
00721
00722 static const char* value(const ::checkerboard_detector2::DetectResponse_<ContainerAllocator> &) { return value(); }
00723 static const uint64_t static_value1 = 0xfa5565282e26025bULL;
00724 static const uint64_t static_value2 = 0xb768b1b949144e94ULL;
00725 };
00726
00727 template<class ContainerAllocator>
00728 struct DataType< ::checkerboard_detector2::DetectResponse_<ContainerAllocator> > {
00729 static const char* value()
00730 {
00731 return "checkerboard_detector2/DetectResponse";
00732 }
00733
00734 static const char* value(const ::checkerboard_detector2::DetectResponse_<ContainerAllocator> &) { return value(); }
00735 };
00736
00737 template<class ContainerAllocator>
00738 struct Definition< ::checkerboard_detector2::DetectResponse_<ContainerAllocator> > {
00739 static const char* value()
00740 {
00741 return "ObjectDetection object_detection\n\
00742 \n\
00743 \n\
00744 ================================================================================\n\
00745 MSG: checkerboard_detector2/ObjectDetection\n\
00746 Header header\n\
00747 Object6DPose[] objects\n\
00748 # unique image id these objects were taken from\n\
00749 \n\
00750 ================================================================================\n\
00751 MSG: std_msgs/Header\n\
00752 # Standard metadata for higher-level stamped data types.\n\
00753 # This is generally used to communicate timestamped data \n\
00754 # in a particular coordinate frame.\n\
00755 # \n\
00756 # sequence ID: consecutively increasing ID \n\
00757 uint32 seq\n\
00758 #Two-integer timestamp that is expressed as:\n\
00759 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00760 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00761 # time-handling sugar is provided by the client library\n\
00762 time stamp\n\
00763 #Frame this data is associated with\n\
00764 # 0: no frame\n\
00765 # 1: global frame\n\
00766 string frame_id\n\
00767 \n\
00768 ================================================================================\n\
00769 MSG: checkerboard_detector2/Object6DPose\n\
00770 # 6D pose of object\n\
00771 geometry_msgs/Pose pose\n\
00772 \n\
00773 # type of object, usually contains the filename of the object that allows the receiving side to visualize it\n\
00774 # can also be used as a unique type id\n\
00775 string type \n\
00776 uint32 id\n\
00777 ================================================================================\n\
00778 MSG: geometry_msgs/Pose\n\
00779 # A representation of pose in free space, composed of postion and orientation. \n\
00780 Point position\n\
00781 Quaternion orientation\n\
00782 \n\
00783 ================================================================================\n\
00784 MSG: geometry_msgs/Point\n\
00785 # This contains the position of a point in free space\n\
00786 float64 x\n\
00787 float64 y\n\
00788 float64 z\n\
00789 \n\
00790 ================================================================================\n\
00791 MSG: geometry_msgs/Quaternion\n\
00792 # This represents an orientation in free space in quaternion form.\n\
00793 \n\
00794 float64 x\n\
00795 float64 y\n\
00796 float64 z\n\
00797 float64 w\n\
00798 \n\
00799 ";
00800 }
00801
00802 static const char* value(const ::checkerboard_detector2::DetectResponse_<ContainerAllocator> &) { return value(); }
00803 };
00804
00805 }
00806 }
00807
00808 namespace ros
00809 {
00810 namespace serialization
00811 {
00812
00813 template<class ContainerAllocator> struct Serializer< ::checkerboard_detector2::DetectRequest_<ContainerAllocator> >
00814 {
00815 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00816 {
00817 stream.next(m.image);
00818 stream.next(m.camera_info);
00819 }
00820
00821 ROS_DECLARE_ALLINONE_SERIALIZER;
00822 };
00823 }
00824 }
00825
00826
00827 namespace ros
00828 {
00829 namespace serialization
00830 {
00831
00832 template<class ContainerAllocator> struct Serializer< ::checkerboard_detector2::DetectResponse_<ContainerAllocator> >
00833 {
00834 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00835 {
00836 stream.next(m.object_detection);
00837 }
00838
00839 ROS_DECLARE_ALLINONE_SERIALIZER;
00840 };
00841 }
00842 }
00843
00844 namespace ros
00845 {
00846 namespace service_traits
00847 {
00848 template<>
00849 struct MD5Sum<checkerboard_detector2::Detect> {
00850 static const char* value()
00851 {
00852 return "7d2841c5eef2578fbb718be68316c081";
00853 }
00854
00855 static const char* value(const checkerboard_detector2::Detect&) { return value(); }
00856 };
00857
00858 template<>
00859 struct DataType<checkerboard_detector2::Detect> {
00860 static const char* value()
00861 {
00862 return "checkerboard_detector2/Detect";
00863 }
00864
00865 static const char* value(const checkerboard_detector2::Detect&) { return value(); }
00866 };
00867
00868 template<class ContainerAllocator>
00869 struct MD5Sum<checkerboard_detector2::DetectRequest_<ContainerAllocator> > {
00870 static const char* value()
00871 {
00872 return "7d2841c5eef2578fbb718be68316c081";
00873 }
00874
00875 static const char* value(const checkerboard_detector2::DetectRequest_<ContainerAllocator> &) { return value(); }
00876 };
00877
00878 template<class ContainerAllocator>
00879 struct DataType<checkerboard_detector2::DetectRequest_<ContainerAllocator> > {
00880 static const char* value()
00881 {
00882 return "checkerboard_detector2/Detect";
00883 }
00884
00885 static const char* value(const checkerboard_detector2::DetectRequest_<ContainerAllocator> &) { return value(); }
00886 };
00887
00888 template<class ContainerAllocator>
00889 struct MD5Sum<checkerboard_detector2::DetectResponse_<ContainerAllocator> > {
00890 static const char* value()
00891 {
00892 return "7d2841c5eef2578fbb718be68316c081";
00893 }
00894
00895 static const char* value(const checkerboard_detector2::DetectResponse_<ContainerAllocator> &) { return value(); }
00896 };
00897
00898 template<class ContainerAllocator>
00899 struct DataType<checkerboard_detector2::DetectResponse_<ContainerAllocator> > {
00900 static const char* value()
00901 {
00902 return "checkerboard_detector2/Detect";
00903 }
00904
00905 static const char* value(const checkerboard_detector2::DetectResponse_<ContainerAllocator> &) { return value(); }
00906 };
00907
00908 }
00909 }
00910
00911 #endif // CHECKERBOARD_DETECTOR2_SERVICE_DETECT_H
00912