Go to the documentation of this file.00001
00002 #ifndef COB_OBJECT_DETECTION_MSGS_MESSAGE_MASKARRAY_H
00003 #define COB_OBJECT_DETECTION_MSGS_MESSAGE_MASKARRAY_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 "cob_object_detection_msgs/Mask.h"
00019
00020 namespace cob_object_detection_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct MaskArray_ {
00024 typedef MaskArray_<ContainerAllocator> Type;
00025
00026 MaskArray_()
00027 : header()
00028 , masks()
00029 {
00030 }
00031
00032 MaskArray_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , masks(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef std::vector< ::cob_object_detection_msgs::Mask_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Mask_<ContainerAllocator> >::other > _masks_type;
00042 std::vector< ::cob_object_detection_msgs::Mask_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Mask_<ContainerAllocator> >::other > masks;
00043
00044
00045 typedef boost::shared_ptr< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::cob_object_detection_msgs::MaskArray_<std::allocator<void> > MaskArray;
00050
00051 typedef boost::shared_ptr< ::cob_object_detection_msgs::MaskArray> MaskArrayPtr;
00052 typedef boost::shared_ptr< ::cob_object_detection_msgs::MaskArray const> MaskArrayConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "1d4620a4218f096b919a95d7fb64146f";
00074 }
00075
00076 static const char* value(const ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x1d4620a4218f096bULL;
00078 static const uint64_t static_value2 = 0x919a95d7fb64146fULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "cob_object_detection_msgs/MaskArray";
00086 }
00087
00088 static const char* value(const ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "Header header\n\
00096 Mask[] masks\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: std_msgs/Header\n\
00100 # Standard metadata for higher-level stamped data types.\n\
00101 # This is generally used to communicate timestamped data \n\
00102 # in a particular coordinate frame.\n\
00103 # \n\
00104 # sequence ID: consecutively increasing ID \n\
00105 uint32 seq\n\
00106 #Two-integer timestamp that is expressed as:\n\
00107 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00108 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00109 # time-handling sugar is provided by the client library\n\
00110 time stamp\n\
00111 #Frame this data is associated with\n\
00112 # 0: no frame\n\
00113 # 1: global frame\n\
00114 string frame_id\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: cob_object_detection_msgs/Mask\n\
00118 # this message is used to mark where an object is present in an image\n\
00119 # this can be done either by a roi region on the image (less precise) or a mask (more precise)\n\
00120 \n\
00121 Rect roi\n\
00122 \n\
00123 # in the case when mask is used, 'roi' specifies the image region and 'mask'\n\
00124 # (which should be of the same size) a binary mask in that region\n\
00125 sensor_msgs/Image mask\n\
00126 \n\
00127 # in the case there is 3D data available, 'indices' are used to index the \n\
00128 # part of the point cloud representing the object\n\
00129 #pcl/PointIndices indices\n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: cob_object_detection_msgs/Rect\n\
00133 int32 x\n\
00134 int32 y\n\
00135 int32 width\n\
00136 int32 height\n\
00137 \n\
00138 ================================================================================\n\
00139 MSG: sensor_msgs/Image\n\
00140 # This message contains an uncompressed image\n\
00141 # (0, 0) is at top-left corner of image\n\
00142 #\n\
00143 \n\
00144 Header header # Header timestamp should be acquisition time of image\n\
00145 # Header frame_id should be optical frame of camera\n\
00146 # origin of frame should be optical center of cameara\n\
00147 # +x should point to the right in the image\n\
00148 # +y should point down in the image\n\
00149 # +z should point into to plane of the image\n\
00150 # If the frame_id here and the frame_id of the CameraInfo\n\
00151 # message associated with the image conflict\n\
00152 # the behavior is undefined\n\
00153 \n\
00154 uint32 height # image height, that is, number of rows\n\
00155 uint32 width # image width, that is, number of columns\n\
00156 \n\
00157 # The legal values for encoding are in file src/image_encodings.cpp\n\
00158 # If you want to standardize a new string format, join\n\
00159 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00160 \n\
00161 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00162 # taken from the list of strings in src/image_encodings.cpp\n\
00163 \n\
00164 uint8 is_bigendian # is this data bigendian?\n\
00165 uint32 step # Full row length in bytes\n\
00166 uint8[] data # actual matrix data, size is (step * rows)\n\
00167 \n\
00168 ";
00169 }
00170
00171 static const char* value(const ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> &) { return value(); }
00172 };
00173
00174 template<class ContainerAllocator> struct HasHeader< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > : public TrueType {};
00175 template<class ContainerAllocator> struct HasHeader< const ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> > : public TrueType {};
00176 }
00177 }
00178
00179 namespace ros
00180 {
00181 namespace serialization
00182 {
00183
00184 template<class ContainerAllocator> struct Serializer< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> >
00185 {
00186 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00187 {
00188 stream.next(m.header);
00189 stream.next(m.masks);
00190 }
00191
00192 ROS_DECLARE_ALLINONE_SERIALIZER;
00193 };
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace message_operations
00200 {
00201
00202 template<class ContainerAllocator>
00203 struct Printer< ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> >
00204 {
00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_object_detection_msgs::MaskArray_<ContainerAllocator> & v)
00206 {
00207 s << indent << "header: ";
00208 s << std::endl;
00209 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00210 s << indent << "masks[]" << std::endl;
00211 for (size_t i = 0; i < v.masks.size(); ++i)
00212 {
00213 s << indent << " masks[" << i << "]: ";
00214 s << std::endl;
00215 s << indent;
00216 Printer< ::cob_object_detection_msgs::Mask_<ContainerAllocator> >::stream(s, indent + " ", v.masks[i]);
00217 }
00218 }
00219 };
00220
00221
00222 }
00223 }
00224
00225 #endif // COB_OBJECT_DETECTION_MSGS_MESSAGE_MASKARRAY_H
00226