00001
00002 #ifndef CALIBRATION_MSGS_MESSAGE_CALIBRATIONPATTERN_H
00003 #define CALIBRATION_MSGS_MESSAGE_CALIBRATIONPATTERN_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 "std_msgs/Header.h"
00014 #include "geometry_msgs/Point32.h"
00015 #include "calibration_msgs/ImagePoint.h"
00016
00017 namespace calibration_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct CalibrationPattern_ : public ros::Message
00021 {
00022 typedef CalibrationPattern_<ContainerAllocator> Type;
00023
00024 CalibrationPattern_()
00025 : header()
00026 , object_points()
00027 , image_points()
00028 , success(0)
00029 {
00030 }
00031
00032 CalibrationPattern_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , object_points(_alloc)
00035 , image_points(_alloc)
00036 , success(0)
00037 {
00038 }
00039
00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00041 ::std_msgs::Header_<ContainerAllocator> header;
00042
00043 typedef std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > _object_points_type;
00044 std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > object_points;
00045
00046 typedef std::vector< ::calibration_msgs::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::ImagePoint_<ContainerAllocator> >::other > _image_points_type;
00047 std::vector< ::calibration_msgs::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::ImagePoint_<ContainerAllocator> >::other > image_points;
00048
00049 typedef uint8_t _success_type;
00050 uint8_t success;
00051
00052
00053 ROS_DEPRECATED uint32_t get_object_points_size() const { return (uint32_t)object_points.size(); }
00054 ROS_DEPRECATED void set_object_points_size(uint32_t size) { object_points.resize((size_t)size); }
00055 ROS_DEPRECATED void get_object_points_vec(std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) const { vec = this->object_points; }
00056 ROS_DEPRECATED void set_object_points_vec(const std::vector< ::geometry_msgs::Point32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Point32_<ContainerAllocator> >::other > & vec) { this->object_points = vec; }
00057 ROS_DEPRECATED uint32_t get_image_points_size() const { return (uint32_t)image_points.size(); }
00058 ROS_DEPRECATED void set_image_points_size(uint32_t size) { image_points.resize((size_t)size); }
00059 ROS_DEPRECATED void get_image_points_vec(std::vector< ::calibration_msgs::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::ImagePoint_<ContainerAllocator> >::other > & vec) const { vec = this->image_points; }
00060 ROS_DEPRECATED void set_image_points_vec(const std::vector< ::calibration_msgs::ImagePoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::calibration_msgs::ImagePoint_<ContainerAllocator> >::other > & vec) { this->image_points = vec; }
00061 private:
00062 static const char* __s_getDataType_() { return "calibration_msgs/CalibrationPattern"; }
00063 public:
00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00065
00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00067
00068 private:
00069 static const char* __s_getMD5Sum_() { return "dcc8f54c34016e656521a94b56a70dc3"; }
00070 public:
00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00072
00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00074
00075 private:
00076 static const char* __s_getMessageDefinition_() { return "Header header\n\
00077 geometry_msgs/Point32[] object_points\n\
00078 ImagePoint[] image_points\n\
00079 uint8 success\n\
00080 \n\
00081 ================================================================================\n\
00082 MSG: std_msgs/Header\n\
00083 # Standard metadata for higher-level stamped data types.\n\
00084 # This is generally used to communicate timestamped data \n\
00085 # in a particular coordinate frame.\n\
00086 # \n\
00087 # sequence ID: consecutively increasing ID \n\
00088 uint32 seq\n\
00089 #Two-integer timestamp that is expressed as:\n\
00090 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00091 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00092 # time-handling sugar is provided by the client library\n\
00093 time stamp\n\
00094 #Frame this data is associated with\n\
00095 # 0: no frame\n\
00096 # 1: global frame\n\
00097 string frame_id\n\
00098 \n\
00099 ================================================================================\n\
00100 MSG: geometry_msgs/Point32\n\
00101 # This contains the position of a point in free space(with 32 bits of precision).\n\
00102 # It is recommeded to use Point wherever possible instead of Point32. \n\
00103 # \n\
00104 # This recommendation is to promote interoperability. \n\
00105 #\n\
00106 # This message is designed to take up less space when sending\n\
00107 # lots of points at once, as in the case of a PointCloud. \n\
00108 \n\
00109 float32 x\n\
00110 float32 y\n\
00111 float32 z\n\
00112 ================================================================================\n\
00113 MSG: calibration_msgs/ImagePoint\n\
00114 float32 x\n\
00115 float32 y\n\
00116 \n\
00117 "; }
00118 public:
00119 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00120
00121 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00122
00123 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00124 {
00125 ros::serialization::OStream stream(write_ptr, 1000000000);
00126 ros::serialization::serialize(stream, header);
00127 ros::serialization::serialize(stream, object_points);
00128 ros::serialization::serialize(stream, image_points);
00129 ros::serialization::serialize(stream, success);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00134 {
00135 ros::serialization::IStream stream(read_ptr, 1000000000);
00136 ros::serialization::deserialize(stream, header);
00137 ros::serialization::deserialize(stream, object_points);
00138 ros::serialization::deserialize(stream, image_points);
00139 ros::serialization::deserialize(stream, success);
00140 return stream.getData();
00141 }
00142
00143 ROS_DEPRECATED virtual uint32_t serializationLength() const
00144 {
00145 uint32_t size = 0;
00146 size += ros::serialization::serializationLength(header);
00147 size += ros::serialization::serializationLength(object_points);
00148 size += ros::serialization::serializationLength(image_points);
00149 size += ros::serialization::serializationLength(success);
00150 return size;
00151 }
00152
00153 typedef boost::shared_ptr< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> > Ptr;
00154 typedef boost::shared_ptr< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> const> ConstPtr;
00155 };
00156 typedef ::calibration_msgs::CalibrationPattern_<std::allocator<void> > CalibrationPattern;
00157
00158 typedef boost::shared_ptr< ::calibration_msgs::CalibrationPattern> CalibrationPatternPtr;
00159 typedef boost::shared_ptr< ::calibration_msgs::CalibrationPattern const> CalibrationPatternConstPtr;
00160
00161
00162 template<typename ContainerAllocator>
00163 std::ostream& operator<<(std::ostream& s, const ::calibration_msgs::CalibrationPattern_<ContainerAllocator> & v)
00164 {
00165 ros::message_operations::Printer< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> >::stream(s, "", v);
00166 return s;}
00167
00168 }
00169
00170 namespace ros
00171 {
00172 namespace message_traits
00173 {
00174 template<class ContainerAllocator>
00175 struct MD5Sum< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> > {
00176 static const char* value()
00177 {
00178 return "dcc8f54c34016e656521a94b56a70dc3";
00179 }
00180
00181 static const char* value(const ::calibration_msgs::CalibrationPattern_<ContainerAllocator> &) { return value(); }
00182 static const uint64_t static_value1 = 0xdcc8f54c34016e65ULL;
00183 static const uint64_t static_value2 = 0x6521a94b56a70dc3ULL;
00184 };
00185
00186 template<class ContainerAllocator>
00187 struct DataType< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> > {
00188 static const char* value()
00189 {
00190 return "calibration_msgs/CalibrationPattern";
00191 }
00192
00193 static const char* value(const ::calibration_msgs::CalibrationPattern_<ContainerAllocator> &) { return value(); }
00194 };
00195
00196 template<class ContainerAllocator>
00197 struct Definition< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "Header header\n\
00201 geometry_msgs/Point32[] object_points\n\
00202 ImagePoint[] image_points\n\
00203 uint8 success\n\
00204 \n\
00205 ================================================================================\n\
00206 MSG: std_msgs/Header\n\
00207 # Standard metadata for higher-level stamped data types.\n\
00208 # This is generally used to communicate timestamped data \n\
00209 # in a particular coordinate frame.\n\
00210 # \n\
00211 # sequence ID: consecutively increasing ID \n\
00212 uint32 seq\n\
00213 #Two-integer timestamp that is expressed as:\n\
00214 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00215 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00216 # time-handling sugar is provided by the client library\n\
00217 time stamp\n\
00218 #Frame this data is associated with\n\
00219 # 0: no frame\n\
00220 # 1: global frame\n\
00221 string frame_id\n\
00222 \n\
00223 ================================================================================\n\
00224 MSG: geometry_msgs/Point32\n\
00225 # This contains the position of a point in free space(with 32 bits of precision).\n\
00226 # It is recommeded to use Point wherever possible instead of Point32. \n\
00227 # \n\
00228 # This recommendation is to promote interoperability. \n\
00229 #\n\
00230 # This message is designed to take up less space when sending\n\
00231 # lots of points at once, as in the case of a PointCloud. \n\
00232 \n\
00233 float32 x\n\
00234 float32 y\n\
00235 float32 z\n\
00236 ================================================================================\n\
00237 MSG: calibration_msgs/ImagePoint\n\
00238 float32 x\n\
00239 float32 y\n\
00240 \n\
00241 ";
00242 }
00243
00244 static const char* value(const ::calibration_msgs::CalibrationPattern_<ContainerAllocator> &) { return value(); }
00245 };
00246
00247 template<class ContainerAllocator> struct HasHeader< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> > : public TrueType {};
00248 template<class ContainerAllocator> struct HasHeader< const ::calibration_msgs::CalibrationPattern_<ContainerAllocator> > : public TrueType {};
00249 }
00250 }
00251
00252 namespace ros
00253 {
00254 namespace serialization
00255 {
00256
00257 template<class ContainerAllocator> struct Serializer< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> >
00258 {
00259 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00260 {
00261 stream.next(m.header);
00262 stream.next(m.object_points);
00263 stream.next(m.image_points);
00264 stream.next(m.success);
00265 }
00266
00267 ROS_DECLARE_ALLINONE_SERIALIZER;
00268 };
00269 }
00270 }
00271
00272 namespace ros
00273 {
00274 namespace message_operations
00275 {
00276
00277 template<class ContainerAllocator>
00278 struct Printer< ::calibration_msgs::CalibrationPattern_<ContainerAllocator> >
00279 {
00280 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::calibration_msgs::CalibrationPattern_<ContainerAllocator> & v)
00281 {
00282 s << indent << "header: ";
00283 s << std::endl;
00284 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00285 s << indent << "object_points[]" << std::endl;
00286 for (size_t i = 0; i < v.object_points.size(); ++i)
00287 {
00288 s << indent << " object_points[" << i << "]: ";
00289 s << std::endl;
00290 s << indent;
00291 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.object_points[i]);
00292 }
00293 s << indent << "image_points[]" << std::endl;
00294 for (size_t i = 0; i < v.image_points.size(); ++i)
00295 {
00296 s << indent << " image_points[" << i << "]: ";
00297 s << std::endl;
00298 s << indent;
00299 Printer< ::calibration_msgs::ImagePoint_<ContainerAllocator> >::stream(s, indent + " ", v.image_points[i]);
00300 }
00301 s << indent << "success: ";
00302 Printer<uint8_t>::stream(s, indent + " ", v.success);
00303 }
00304 };
00305
00306
00307 }
00308 }
00309
00310 #endif // CALIBRATION_MSGS_MESSAGE_CALIBRATIONPATTERN_H
00311