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