$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/stereo_msgs/msg/DisparityImage.msg */ 00002 #ifndef STEREO_MSGS_MESSAGE_DISPARITYIMAGE_H 00003 #define STEREO_MSGS_MESSAGE_DISPARITYIMAGE_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 "std_msgs/Header.h" 00018 #include "sensor_msgs/Image.h" 00019 #include "sensor_msgs/RegionOfInterest.h" 00020 00021 namespace stereo_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct DisparityImage_ { 00025 typedef DisparityImage_<ContainerAllocator> Type; 00026 00027 DisparityImage_() 00028 : header() 00029 , image() 00030 , f(0.0) 00031 , T(0.0) 00032 , valid_window() 00033 , min_disparity(0.0) 00034 , max_disparity(0.0) 00035 , delta_d(0.0) 00036 { 00037 } 00038 00039 DisparityImage_(const ContainerAllocator& _alloc) 00040 : header(_alloc) 00041 , image(_alloc) 00042 , f(0.0) 00043 , T(0.0) 00044 , valid_window(_alloc) 00045 , min_disparity(0.0) 00046 , max_disparity(0.0) 00047 , delta_d(0.0) 00048 { 00049 } 00050 00051 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00052 ::std_msgs::Header_<ContainerAllocator> header; 00053 00054 typedef ::sensor_msgs::Image_<ContainerAllocator> _image_type; 00055 ::sensor_msgs::Image_<ContainerAllocator> image; 00056 00057 typedef float _f_type; 00058 float f; 00059 00060 typedef float _T_type; 00061 float T; 00062 00063 typedef ::sensor_msgs::RegionOfInterest_<ContainerAllocator> _valid_window_type; 00064 ::sensor_msgs::RegionOfInterest_<ContainerAllocator> valid_window; 00065 00066 typedef float _min_disparity_type; 00067 float min_disparity; 00068 00069 typedef float _max_disparity_type; 00070 float max_disparity; 00071 00072 typedef float _delta_d_type; 00073 float delta_d; 00074 00075 00076 private: 00077 static const char* __s_getDataType_() { return "stereo_msgs/DisparityImage"; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00080 00081 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00082 00083 private: 00084 static const char* __s_getMD5Sum_() { return "04a177815f75271039fa21f16acad8c9"; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00087 00088 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00089 00090 private: 00091 static const char* __s_getMessageDefinition_() { return "# Separate header for compatibility with current TimeSynchronizer.\n\ 00092 # Likely to be removed in a later release, use image.header instead.\n\ 00093 Header header\n\ 00094 \n\ 00095 # Floating point disparity image. The disparities are pre-adjusted for any\n\ 00096 # x-offset between the principal points of the two cameras (in the case\n\ 00097 # that they are verged). That is: d = x_l - x_r - (cx_l - cx_r)\n\ 00098 sensor_msgs/Image image\n\ 00099 \n\ 00100 # Stereo geometry. For disparity d, the depth from the camera is Z = fT/d.\n\ 00101 float32 f # Focal length, pixels\n\ 00102 float32 T # Baseline, world units\n\ 00103 \n\ 00104 # Subwindow of (potentially) valid disparity values.\n\ 00105 sensor_msgs/RegionOfInterest valid_window\n\ 00106 \n\ 00107 # The range of disparities searched.\n\ 00108 # In the disparity image, any disparity less than min_disparity is invalid.\n\ 00109 # The disparity search range defines the horopter, or 3D volume that the\n\ 00110 # stereo algorithm can \"see\". Points with Z outside of:\n\ 00111 # Z_min = fT / max_disparity\n\ 00112 # Z_max = fT / min_disparity\n\ 00113 # could not be found.\n\ 00114 float32 min_disparity\n\ 00115 float32 max_disparity\n\ 00116 \n\ 00117 # Smallest allowed disparity increment. The smallest achievable depth range\n\ 00118 # resolution is delta_Z = (Z^2/fT)*delta_d.\n\ 00119 float32 delta_d\n\ 00120 \n\ 00121 ================================================================================\n\ 00122 MSG: std_msgs/Header\n\ 00123 # Standard metadata for higher-level stamped data types.\n\ 00124 # This is generally used to communicate timestamped data \n\ 00125 # in a particular coordinate frame.\n\ 00126 # \n\ 00127 # sequence ID: consecutively increasing ID \n\ 00128 uint32 seq\n\ 00129 #Two-integer timestamp that is expressed as:\n\ 00130 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00131 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00132 # time-handling sugar is provided by the client library\n\ 00133 time stamp\n\ 00134 #Frame this data is associated with\n\ 00135 # 0: no frame\n\ 00136 # 1: global frame\n\ 00137 string frame_id\n\ 00138 \n\ 00139 ================================================================================\n\ 00140 MSG: sensor_msgs/Image\n\ 00141 # This message contains an uncompressed image\n\ 00142 # (0, 0) is at top-left corner of image\n\ 00143 #\n\ 00144 \n\ 00145 Header header # Header timestamp should be acquisition time of image\n\ 00146 # Header frame_id should be optical frame of camera\n\ 00147 # origin of frame should be optical center of cameara\n\ 00148 # +x should point to the right in the image\n\ 00149 # +y should point down in the image\n\ 00150 # +z should point into to plane of the image\n\ 00151 # If the frame_id here and the frame_id of the CameraInfo\n\ 00152 # message associated with the image conflict\n\ 00153 # the behavior is undefined\n\ 00154 \n\ 00155 uint32 height # image height, that is, number of rows\n\ 00156 uint32 width # image width, that is, number of columns\n\ 00157 \n\ 00158 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00159 # If you want to standardize a new string format, join\n\ 00160 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00161 \n\ 00162 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00163 # taken from the list of strings in src/image_encodings.cpp\n\ 00164 \n\ 00165 uint8 is_bigendian # is this data bigendian?\n\ 00166 uint32 step # Full row length in bytes\n\ 00167 uint8[] data # actual matrix data, size is (step * rows)\n\ 00168 \n\ 00169 ================================================================================\n\ 00170 MSG: sensor_msgs/RegionOfInterest\n\ 00171 # This message is used to specify a region of interest within an image.\n\ 00172 #\n\ 00173 # When used to specify the ROI setting of the camera when the image was\n\ 00174 # taken, the height and width fields should either match the height and\n\ 00175 # width fields for the associated image; or height = width = 0\n\ 00176 # indicates that the full resolution image was captured.\n\ 00177 \n\ 00178 uint32 x_offset # Leftmost pixel of the ROI\n\ 00179 # (0 if the ROI includes the left edge of the image)\n\ 00180 uint32 y_offset # Topmost pixel of the ROI\n\ 00181 # (0 if the ROI includes the top edge of the image)\n\ 00182 uint32 height # Height of ROI\n\ 00183 uint32 width # Width of ROI\n\ 00184 \n\ 00185 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\ 00186 # ROI in this message. Typically this should be False if the full image\n\ 00187 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\ 00188 # used).\n\ 00189 bool do_rectify\n\ 00190 \n\ 00191 "; } 00192 public: 00193 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00194 00195 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00196 00197 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00198 { 00199 ros::serialization::OStream stream(write_ptr, 1000000000); 00200 ros::serialization::serialize(stream, header); 00201 ros::serialization::serialize(stream, image); 00202 ros::serialization::serialize(stream, f); 00203 ros::serialization::serialize(stream, T); 00204 ros::serialization::serialize(stream, valid_window); 00205 ros::serialization::serialize(stream, min_disparity); 00206 ros::serialization::serialize(stream, max_disparity); 00207 ros::serialization::serialize(stream, delta_d); 00208 return stream.getData(); 00209 } 00210 00211 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00212 { 00213 ros::serialization::IStream stream(read_ptr, 1000000000); 00214 ros::serialization::deserialize(stream, header); 00215 ros::serialization::deserialize(stream, image); 00216 ros::serialization::deserialize(stream, f); 00217 ros::serialization::deserialize(stream, T); 00218 ros::serialization::deserialize(stream, valid_window); 00219 ros::serialization::deserialize(stream, min_disparity); 00220 ros::serialization::deserialize(stream, max_disparity); 00221 ros::serialization::deserialize(stream, delta_d); 00222 return stream.getData(); 00223 } 00224 00225 ROS_DEPRECATED virtual uint32_t serializationLength() const 00226 { 00227 uint32_t size = 0; 00228 size += ros::serialization::serializationLength(header); 00229 size += ros::serialization::serializationLength(image); 00230 size += ros::serialization::serializationLength(f); 00231 size += ros::serialization::serializationLength(T); 00232 size += ros::serialization::serializationLength(valid_window); 00233 size += ros::serialization::serializationLength(min_disparity); 00234 size += ros::serialization::serializationLength(max_disparity); 00235 size += ros::serialization::serializationLength(delta_d); 00236 return size; 00237 } 00238 00239 typedef boost::shared_ptr< ::stereo_msgs::DisparityImage_<ContainerAllocator> > Ptr; 00240 typedef boost::shared_ptr< ::stereo_msgs::DisparityImage_<ContainerAllocator> const> ConstPtr; 00241 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00242 }; // struct DisparityImage 00243 typedef ::stereo_msgs::DisparityImage_<std::allocator<void> > DisparityImage; 00244 00245 typedef boost::shared_ptr< ::stereo_msgs::DisparityImage> DisparityImagePtr; 00246 typedef boost::shared_ptr< ::stereo_msgs::DisparityImage const> DisparityImageConstPtr; 00247 00248 00249 template<typename ContainerAllocator> 00250 std::ostream& operator<<(std::ostream& s, const ::stereo_msgs::DisparityImage_<ContainerAllocator> & v) 00251 { 00252 ros::message_operations::Printer< ::stereo_msgs::DisparityImage_<ContainerAllocator> >::stream(s, "", v); 00253 return s;} 00254 00255 } // namespace stereo_msgs 00256 00257 namespace ros 00258 { 00259 namespace message_traits 00260 { 00261 template<class ContainerAllocator> struct IsMessage< ::stereo_msgs::DisparityImage_<ContainerAllocator> > : public TrueType {}; 00262 template<class ContainerAllocator> struct IsMessage< ::stereo_msgs::DisparityImage_<ContainerAllocator> const> : public TrueType {}; 00263 template<class ContainerAllocator> 00264 struct MD5Sum< ::stereo_msgs::DisparityImage_<ContainerAllocator> > { 00265 static const char* value() 00266 { 00267 return "04a177815f75271039fa21f16acad8c9"; 00268 } 00269 00270 static const char* value(const ::stereo_msgs::DisparityImage_<ContainerAllocator> &) { return value(); } 00271 static const uint64_t static_value1 = 0x04a177815f752710ULL; 00272 static const uint64_t static_value2 = 0x39fa21f16acad8c9ULL; 00273 }; 00274 00275 template<class ContainerAllocator> 00276 struct DataType< ::stereo_msgs::DisparityImage_<ContainerAllocator> > { 00277 static const char* value() 00278 { 00279 return "stereo_msgs/DisparityImage"; 00280 } 00281 00282 static const char* value(const ::stereo_msgs::DisparityImage_<ContainerAllocator> &) { return value(); } 00283 }; 00284 00285 template<class ContainerAllocator> 00286 struct Definition< ::stereo_msgs::DisparityImage_<ContainerAllocator> > { 00287 static const char* value() 00288 { 00289 return "# Separate header for compatibility with current TimeSynchronizer.\n\ 00290 # Likely to be removed in a later release, use image.header instead.\n\ 00291 Header header\n\ 00292 \n\ 00293 # Floating point disparity image. The disparities are pre-adjusted for any\n\ 00294 # x-offset between the principal points of the two cameras (in the case\n\ 00295 # that they are verged). That is: d = x_l - x_r - (cx_l - cx_r)\n\ 00296 sensor_msgs/Image image\n\ 00297 \n\ 00298 # Stereo geometry. For disparity d, the depth from the camera is Z = fT/d.\n\ 00299 float32 f # Focal length, pixels\n\ 00300 float32 T # Baseline, world units\n\ 00301 \n\ 00302 # Subwindow of (potentially) valid disparity values.\n\ 00303 sensor_msgs/RegionOfInterest valid_window\n\ 00304 \n\ 00305 # The range of disparities searched.\n\ 00306 # In the disparity image, any disparity less than min_disparity is invalid.\n\ 00307 # The disparity search range defines the horopter, or 3D volume that the\n\ 00308 # stereo algorithm can \"see\". Points with Z outside of:\n\ 00309 # Z_min = fT / max_disparity\n\ 00310 # Z_max = fT / min_disparity\n\ 00311 # could not be found.\n\ 00312 float32 min_disparity\n\ 00313 float32 max_disparity\n\ 00314 \n\ 00315 # Smallest allowed disparity increment. The smallest achievable depth range\n\ 00316 # resolution is delta_Z = (Z^2/fT)*delta_d.\n\ 00317 float32 delta_d\n\ 00318 \n\ 00319 ================================================================================\n\ 00320 MSG: std_msgs/Header\n\ 00321 # Standard metadata for higher-level stamped data types.\n\ 00322 # This is generally used to communicate timestamped data \n\ 00323 # in a particular coordinate frame.\n\ 00324 # \n\ 00325 # sequence ID: consecutively increasing ID \n\ 00326 uint32 seq\n\ 00327 #Two-integer timestamp that is expressed as:\n\ 00328 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00329 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00330 # time-handling sugar is provided by the client library\n\ 00331 time stamp\n\ 00332 #Frame this data is associated with\n\ 00333 # 0: no frame\n\ 00334 # 1: global frame\n\ 00335 string frame_id\n\ 00336 \n\ 00337 ================================================================================\n\ 00338 MSG: sensor_msgs/Image\n\ 00339 # This message contains an uncompressed image\n\ 00340 # (0, 0) is at top-left corner of image\n\ 00341 #\n\ 00342 \n\ 00343 Header header # Header timestamp should be acquisition time of image\n\ 00344 # Header frame_id should be optical frame of camera\n\ 00345 # origin of frame should be optical center of cameara\n\ 00346 # +x should point to the right in the image\n\ 00347 # +y should point down in the image\n\ 00348 # +z should point into to plane of the image\n\ 00349 # If the frame_id here and the frame_id of the CameraInfo\n\ 00350 # message associated with the image conflict\n\ 00351 # the behavior is undefined\n\ 00352 \n\ 00353 uint32 height # image height, that is, number of rows\n\ 00354 uint32 width # image width, that is, number of columns\n\ 00355 \n\ 00356 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00357 # If you want to standardize a new string format, join\n\ 00358 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00359 \n\ 00360 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00361 # taken from the list of strings in src/image_encodings.cpp\n\ 00362 \n\ 00363 uint8 is_bigendian # is this data bigendian?\n\ 00364 uint32 step # Full row length in bytes\n\ 00365 uint8[] data # actual matrix data, size is (step * rows)\n\ 00366 \n\ 00367 ================================================================================\n\ 00368 MSG: sensor_msgs/RegionOfInterest\n\ 00369 # This message is used to specify a region of interest within an image.\n\ 00370 #\n\ 00371 # When used to specify the ROI setting of the camera when the image was\n\ 00372 # taken, the height and width fields should either match the height and\n\ 00373 # width fields for the associated image; or height = width = 0\n\ 00374 # indicates that the full resolution image was captured.\n\ 00375 \n\ 00376 uint32 x_offset # Leftmost pixel of the ROI\n\ 00377 # (0 if the ROI includes the left edge of the image)\n\ 00378 uint32 y_offset # Topmost pixel of the ROI\n\ 00379 # (0 if the ROI includes the top edge of the image)\n\ 00380 uint32 height # Height of ROI\n\ 00381 uint32 width # Width of ROI\n\ 00382 \n\ 00383 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\ 00384 # ROI in this message. Typically this should be False if the full image\n\ 00385 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\ 00386 # used).\n\ 00387 bool do_rectify\n\ 00388 \n\ 00389 "; 00390 } 00391 00392 static const char* value(const ::stereo_msgs::DisparityImage_<ContainerAllocator> &) { return value(); } 00393 }; 00394 00395 template<class ContainerAllocator> struct HasHeader< ::stereo_msgs::DisparityImage_<ContainerAllocator> > : public TrueType {}; 00396 template<class ContainerAllocator> struct HasHeader< const ::stereo_msgs::DisparityImage_<ContainerAllocator> > : public TrueType {}; 00397 } // namespace message_traits 00398 } // namespace ros 00399 00400 namespace ros 00401 { 00402 namespace serialization 00403 { 00404 00405 template<class ContainerAllocator> struct Serializer< ::stereo_msgs::DisparityImage_<ContainerAllocator> > 00406 { 00407 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00408 { 00409 stream.next(m.header); 00410 stream.next(m.image); 00411 stream.next(m.f); 00412 stream.next(m.T); 00413 stream.next(m.valid_window); 00414 stream.next(m.min_disparity); 00415 stream.next(m.max_disparity); 00416 stream.next(m.delta_d); 00417 } 00418 00419 ROS_DECLARE_ALLINONE_SERIALIZER; 00420 }; // struct DisparityImage_ 00421 } // namespace serialization 00422 } // namespace ros 00423 00424 namespace ros 00425 { 00426 namespace message_operations 00427 { 00428 00429 template<class ContainerAllocator> 00430 struct Printer< ::stereo_msgs::DisparityImage_<ContainerAllocator> > 00431 { 00432 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::stereo_msgs::DisparityImage_<ContainerAllocator> & v) 00433 { 00434 s << indent << "header: "; 00435 s << std::endl; 00436 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00437 s << indent << "image: "; 00438 s << std::endl; 00439 Printer< ::sensor_msgs::Image_<ContainerAllocator> >::stream(s, indent + " ", v.image); 00440 s << indent << "f: "; 00441 Printer<float>::stream(s, indent + " ", v.f); 00442 s << indent << "T: "; 00443 Printer<float>::stream(s, indent + " ", v.T); 00444 s << indent << "valid_window: "; 00445 s << std::endl; 00446 Printer< ::sensor_msgs::RegionOfInterest_<ContainerAllocator> >::stream(s, indent + " ", v.valid_window); 00447 s << indent << "min_disparity: "; 00448 Printer<float>::stream(s, indent + " ", v.min_disparity); 00449 s << indent << "max_disparity: "; 00450 Printer<float>::stream(s, indent + " ", v.max_disparity); 00451 s << indent << "delta_d: "; 00452 Printer<float>::stream(s, indent + " ", v.delta_d); 00453 } 00454 }; 00455 00456 00457 } // namespace message_operations 00458 } // namespace ros 00459 00460 #endif // STEREO_MSGS_MESSAGE_DISPARITYIMAGE_H 00461