$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/msg/ImageAndPoints.msg */ 00002 #ifndef VISP_CAMERA_CALIBRATION_MESSAGE_IMAGEANDPOINTS_H 00003 #define VISP_CAMERA_CALIBRATION_MESSAGE_IMAGEANDPOINTS_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 "visp_camera_calibration/ImagePoint.h" 00020 00021 namespace visp_camera_calibration 00022 { 00023 template <class ContainerAllocator> 00024 struct ImageAndPoints_ { 00025 typedef ImageAndPoints_<ContainerAllocator> Type; 00026 00027 ImageAndPoints_() 00028 : header() 00029 , image() 00030 , points() 00031 { 00032 } 00033 00034 ImageAndPoints_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , image(_alloc) 00037 , points(_alloc) 00038 { 00039 } 00040 00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00042 ::std_msgs::Header_<ContainerAllocator> header; 00043 00044 typedef ::sensor_msgs::Image_<ContainerAllocator> _image_type; 00045 ::sensor_msgs::Image_<ContainerAllocator> image; 00046 00047 typedef std::vector< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> >::other > _points_type; 00048 std::vector< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> >::other > points; 00049 00050 00051 ROS_DEPRECATED uint32_t get_points_size() const { return (uint32_t)points.size(); } 00052 ROS_DEPRECATED void set_points_size(uint32_t size) { points.resize((size_t)size); } 00053 ROS_DEPRECATED void get_points_vec(std::vector< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> >::other > & vec) const { vec = this->points; } 00054 ROS_DEPRECATED void set_points_vec(const std::vector< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> >::other > & vec) { this->points = vec; } 00055 private: 00056 static const char* __s_getDataType_() { return "visp_camera_calibration/ImageAndPoints"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00059 00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00061 00062 private: 00063 static const char* __s_getMD5Sum_() { return "0fea5fc0844344ec4ec1adadebd18f75"; } 00064 public: 00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00066 00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00068 00069 private: 00070 static const char* __s_getMessageDefinition_() { return "# An image with an array of 2D points selected in the image\n\ 00071 \n\ 00072 Header header\n\ 00073 \n\ 00074 sensor_msgs/Image image\n\ 00075 visp_camera_calibration/ImagePoint[] points\n\ 00076 \n\ 00077 ================================================================================\n\ 00078 MSG: std_msgs/Header\n\ 00079 # Standard metadata for higher-level stamped data types.\n\ 00080 # This is generally used to communicate timestamped data \n\ 00081 # in a particular coordinate frame.\n\ 00082 # \n\ 00083 # sequence ID: consecutively increasing ID \n\ 00084 uint32 seq\n\ 00085 #Two-integer timestamp that is expressed as:\n\ 00086 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00087 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00088 # time-handling sugar is provided by the client library\n\ 00089 time stamp\n\ 00090 #Frame this data is associated with\n\ 00091 # 0: no frame\n\ 00092 # 1: global frame\n\ 00093 string frame_id\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: sensor_msgs/Image\n\ 00097 # This message contains an uncompressed image\n\ 00098 # (0, 0) is at top-left corner of image\n\ 00099 #\n\ 00100 \n\ 00101 Header header # Header timestamp should be acquisition time of image\n\ 00102 # Header frame_id should be optical frame of camera\n\ 00103 # origin of frame should be optical center of cameara\n\ 00104 # +x should point to the right in the image\n\ 00105 # +y should point down in the image\n\ 00106 # +z should point into to plane of the image\n\ 00107 # If the frame_id here and the frame_id of the CameraInfo\n\ 00108 # message associated with the image conflict\n\ 00109 # the behavior is undefined\n\ 00110 \n\ 00111 uint32 height # image height, that is, number of rows\n\ 00112 uint32 width # image width, that is, number of columns\n\ 00113 \n\ 00114 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00115 # If you want to standardize a new string format, join\n\ 00116 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00117 \n\ 00118 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00119 # taken from the list of strings in src/image_encodings.cpp\n\ 00120 \n\ 00121 uint8 is_bigendian # is this data bigendian?\n\ 00122 uint32 step # Full row length in bytes\n\ 00123 uint8[] data # actual matrix data, size is (step * rows)\n\ 00124 \n\ 00125 ================================================================================\n\ 00126 MSG: visp_camera_calibration/ImagePoint\n\ 00127 # a point (pixel coordinates) selected in an image\n\ 00128 \n\ 00129 int32 x\n\ 00130 int32 y\n\ 00131 \n\ 00132 "; } 00133 public: 00134 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00135 00136 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00137 00138 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00139 { 00140 ros::serialization::OStream stream(write_ptr, 1000000000); 00141 ros::serialization::serialize(stream, header); 00142 ros::serialization::serialize(stream, image); 00143 ros::serialization::serialize(stream, points); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00148 { 00149 ros::serialization::IStream stream(read_ptr, 1000000000); 00150 ros::serialization::deserialize(stream, header); 00151 ros::serialization::deserialize(stream, image); 00152 ros::serialization::deserialize(stream, points); 00153 return stream.getData(); 00154 } 00155 00156 ROS_DEPRECATED virtual uint32_t serializationLength() const 00157 { 00158 uint32_t size = 0; 00159 size += ros::serialization::serializationLength(header); 00160 size += ros::serialization::serializationLength(image); 00161 size += ros::serialization::serializationLength(points); 00162 return size; 00163 } 00164 00165 typedef boost::shared_ptr< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > Ptr; 00166 typedef boost::shared_ptr< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> const> ConstPtr; 00167 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00168 }; // struct ImageAndPoints 00169 typedef ::visp_camera_calibration::ImageAndPoints_<std::allocator<void> > ImageAndPoints; 00170 00171 typedef boost::shared_ptr< ::visp_camera_calibration::ImageAndPoints> ImageAndPointsPtr; 00172 typedef boost::shared_ptr< ::visp_camera_calibration::ImageAndPoints const> ImageAndPointsConstPtr; 00173 00174 00175 template<typename ContainerAllocator> 00176 std::ostream& operator<<(std::ostream& s, const ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> & v) 00177 { 00178 ros::message_operations::Printer< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> >::stream(s, "", v); 00179 return s;} 00180 00181 } // namespace visp_camera_calibration 00182 00183 namespace ros 00184 { 00185 namespace message_traits 00186 { 00187 template<class ContainerAllocator> struct IsMessage< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > : public TrueType {}; 00188 template<class ContainerAllocator> struct IsMessage< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> const> : public TrueType {}; 00189 template<class ContainerAllocator> 00190 struct MD5Sum< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "0fea5fc0844344ec4ec1adadebd18f75"; 00194 } 00195 00196 static const char* value(const ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> &) { return value(); } 00197 static const uint64_t static_value1 = 0x0fea5fc0844344ecULL; 00198 static const uint64_t static_value2 = 0x4ec1adadebd18f75ULL; 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct DataType< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "visp_camera_calibration/ImageAndPoints"; 00206 } 00207 00208 static const char* value(const ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> &) { return value(); } 00209 }; 00210 00211 template<class ContainerAllocator> 00212 struct Definition< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > { 00213 static const char* value() 00214 { 00215 return "# An image with an array of 2D points selected in the image\n\ 00216 \n\ 00217 Header header\n\ 00218 \n\ 00219 sensor_msgs/Image image\n\ 00220 visp_camera_calibration/ImagePoint[] points\n\ 00221 \n\ 00222 ================================================================================\n\ 00223 MSG: std_msgs/Header\n\ 00224 # Standard metadata for higher-level stamped data types.\n\ 00225 # This is generally used to communicate timestamped data \n\ 00226 # in a particular coordinate frame.\n\ 00227 # \n\ 00228 # sequence ID: consecutively increasing ID \n\ 00229 uint32 seq\n\ 00230 #Two-integer timestamp that is expressed as:\n\ 00231 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00232 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00233 # time-handling sugar is provided by the client library\n\ 00234 time stamp\n\ 00235 #Frame this data is associated with\n\ 00236 # 0: no frame\n\ 00237 # 1: global frame\n\ 00238 string frame_id\n\ 00239 \n\ 00240 ================================================================================\n\ 00241 MSG: sensor_msgs/Image\n\ 00242 # This message contains an uncompressed image\n\ 00243 # (0, 0) is at top-left corner of image\n\ 00244 #\n\ 00245 \n\ 00246 Header header # Header timestamp should be acquisition time of image\n\ 00247 # Header frame_id should be optical frame of camera\n\ 00248 # origin of frame should be optical center of cameara\n\ 00249 # +x should point to the right in the image\n\ 00250 # +y should point down in the image\n\ 00251 # +z should point into to plane of the image\n\ 00252 # If the frame_id here and the frame_id of the CameraInfo\n\ 00253 # message associated with the image conflict\n\ 00254 # the behavior is undefined\n\ 00255 \n\ 00256 uint32 height # image height, that is, number of rows\n\ 00257 uint32 width # image width, that is, number of columns\n\ 00258 \n\ 00259 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00260 # If you want to standardize a new string format, join\n\ 00261 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00262 \n\ 00263 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00264 # taken from the list of strings in src/image_encodings.cpp\n\ 00265 \n\ 00266 uint8 is_bigendian # is this data bigendian?\n\ 00267 uint32 step # Full row length in bytes\n\ 00268 uint8[] data # actual matrix data, size is (step * rows)\n\ 00269 \n\ 00270 ================================================================================\n\ 00271 MSG: visp_camera_calibration/ImagePoint\n\ 00272 # a point (pixel coordinates) selected in an image\n\ 00273 \n\ 00274 int32 x\n\ 00275 int32 y\n\ 00276 \n\ 00277 "; 00278 } 00279 00280 static const char* value(const ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> &) { return value(); } 00281 }; 00282 00283 template<class ContainerAllocator> struct HasHeader< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > : public TrueType {}; 00284 template<class ContainerAllocator> struct HasHeader< const ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > : public TrueType {}; 00285 } // namespace message_traits 00286 } // namespace ros 00287 00288 namespace ros 00289 { 00290 namespace serialization 00291 { 00292 00293 template<class ContainerAllocator> struct Serializer< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > 00294 { 00295 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00296 { 00297 stream.next(m.header); 00298 stream.next(m.image); 00299 stream.next(m.points); 00300 } 00301 00302 ROS_DECLARE_ALLINONE_SERIALIZER; 00303 }; // struct ImageAndPoints_ 00304 } // namespace serialization 00305 } // namespace ros 00306 00307 namespace ros 00308 { 00309 namespace message_operations 00310 { 00311 00312 template<class ContainerAllocator> 00313 struct Printer< ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> > 00314 { 00315 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::visp_camera_calibration::ImageAndPoints_<ContainerAllocator> & v) 00316 { 00317 s << indent << "header: "; 00318 s << std::endl; 00319 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00320 s << indent << "image: "; 00321 s << std::endl; 00322 Printer< ::sensor_msgs::Image_<ContainerAllocator> >::stream(s, indent + " ", v.image); 00323 s << indent << "points[]" << std::endl; 00324 for (size_t i = 0; i < v.points.size(); ++i) 00325 { 00326 s << indent << " points[" << i << "]: "; 00327 s << std::endl; 00328 s << indent; 00329 Printer< ::visp_camera_calibration::ImagePoint_<ContainerAllocator> >::stream(s, indent + " ", v.points[i]); 00330 } 00331 } 00332 }; 00333 00334 00335 } // namespace message_operations 00336 } // namespace ros 00337 00338 #endif // VISP_CAMERA_CALIBRATION_MESSAGE_IMAGEANDPOINTS_H 00339