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