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