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