Go to the documentation of this file.00001
00002 #ifndef COB_OBJECT_DETECTION_MSGS_MESSAGE_DETECTOBJECTSRESULT_H
00003 #define COB_OBJECT_DETECTION_MSGS_MESSAGE_DETECTOBJECTSRESULT_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/DetectionArray.h"
00018
00019 namespace cob_object_detection_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct DetectObjectsResult_ {
00023 typedef DetectObjectsResult_<ContainerAllocator> Type;
00024
00025 DetectObjectsResult_()
00026 : object_list()
00027 {
00028 }
00029
00030 DetectObjectsResult_(const ContainerAllocator& _alloc)
00031 : object_list(_alloc)
00032 {
00033 }
00034
00035 typedef ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> _object_list_type;
00036 ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> object_list;
00037
00038
00039 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> > Ptr;
00040 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> const> ConstPtr;
00041 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 };
00043 typedef ::cob_object_detection_msgs::DetectObjectsResult_<std::allocator<void> > DetectObjectsResult;
00044
00045 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectObjectsResult> DetectObjectsResultPtr;
00046 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectObjectsResult const> DetectObjectsResultConstPtr;
00047
00048
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> & v)
00051 {
00052 ros::message_operations::Printer< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> >::stream(s, "", v);
00053 return s;}
00054
00055 }
00056
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> > {
00065 static const char* value()
00066 {
00067 return "6e46a64486bc23cca1c161460b4c92b6";
00068 }
00069
00070 static const char* value(const ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> &) { return value(); }
00071 static const uint64_t static_value1 = 0x6e46a64486bc23ccULL;
00072 static const uint64_t static_value2 = 0xa1c161460b4c92b6ULL;
00073 };
00074
00075 template<class ContainerAllocator>
00076 struct DataType< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "cob_object_detection_msgs/DetectObjectsResult";
00080 }
00081
00082 static const char* value(const ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> &) { return value(); }
00083 };
00084
00085 template<class ContainerAllocator>
00086 struct Definition< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> > {
00087 static const char* value()
00088 {
00089 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00090 # The result\n\
00091 cob_object_detection_msgs/DetectionArray object_list\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: cob_object_detection_msgs/DetectionArray\n\
00095 Header header\n\
00096 Detection[] detections\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/Detection\n\
00118 Header header\n\
00119 string label\n\
00120 string detector\n\
00121 float32 score\n\
00122 Mask mask\n\
00123 geometry_msgs/PoseStamped pose\n\
00124 geometry_msgs/Point bounding_box_lwh\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: cob_object_detection_msgs/Mask\n\
00128 # this message is used to mark where an object is present in an image\n\
00129 # this can be done either by a roi region on the image (less precise) or a mask (more precise)\n\
00130 \n\
00131 Rect roi\n\
00132 \n\
00133 # in the case when mask is used, 'roi' specifies the image region and 'mask'\n\
00134 # (which should be of the same size) a binary mask in that region\n\
00135 sensor_msgs/Image mask\n\
00136 \n\
00137 # in the case there is 3D data available, 'indices' are used to index the \n\
00138 # part of the point cloud representing the object\n\
00139 #pcl/PointIndices indices\n\
00140 \n\
00141 ================================================================================\n\
00142 MSG: cob_object_detection_msgs/Rect\n\
00143 int32 x\n\
00144 int32 y\n\
00145 int32 width\n\
00146 int32 height\n\
00147 \n\
00148 ================================================================================\n\
00149 MSG: sensor_msgs/Image\n\
00150 # This message contains an uncompressed image\n\
00151 # (0, 0) is at top-left corner of image\n\
00152 #\n\
00153 \n\
00154 Header header # Header timestamp should be acquisition time of image\n\
00155 # Header frame_id should be optical frame of camera\n\
00156 # origin of frame should be optical center of cameara\n\
00157 # +x should point to the right in the image\n\
00158 # +y should point down in the image\n\
00159 # +z should point into to plane of the image\n\
00160 # If the frame_id here and the frame_id of the CameraInfo\n\
00161 # message associated with the image conflict\n\
00162 # the behavior is undefined\n\
00163 \n\
00164 uint32 height # image height, that is, number of rows\n\
00165 uint32 width # image width, that is, number of columns\n\
00166 \n\
00167 # The legal values for encoding are in file src/image_encodings.cpp\n\
00168 # If you want to standardize a new string format, join\n\
00169 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00170 \n\
00171 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00172 # taken from the list of strings in include/sensor_msgs/image_encodings.h\n\
00173 \n\
00174 uint8 is_bigendian # is this data bigendian?\n\
00175 uint32 step # Full row length in bytes\n\
00176 uint8[] data # actual matrix data, size is (step * rows)\n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: geometry_msgs/PoseStamped\n\
00180 # A Pose with reference coordinate frame and timestamp\n\
00181 Header header\n\
00182 Pose pose\n\
00183 \n\
00184 ================================================================================\n\
00185 MSG: geometry_msgs/Pose\n\
00186 # A representation of pose in free space, composed of postion and orientation. \n\
00187 Point position\n\
00188 Quaternion orientation\n\
00189 \n\
00190 ================================================================================\n\
00191 MSG: geometry_msgs/Point\n\
00192 # This contains the position of a point in free space\n\
00193 float64 x\n\
00194 float64 y\n\
00195 float64 z\n\
00196 \n\
00197 ================================================================================\n\
00198 MSG: geometry_msgs/Quaternion\n\
00199 # This represents an orientation in free space in quaternion form.\n\
00200 \n\
00201 float64 x\n\
00202 float64 y\n\
00203 float64 z\n\
00204 float64 w\n\
00205 \n\
00206 ";
00207 }
00208
00209 static const char* value(const ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> &) { return value(); }
00210 };
00211
00212 }
00213 }
00214
00215 namespace ros
00216 {
00217 namespace serialization
00218 {
00219
00220 template<class ContainerAllocator> struct Serializer< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> >
00221 {
00222 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00223 {
00224 stream.next(m.object_list);
00225 }
00226
00227 ROS_DECLARE_ALLINONE_SERIALIZER;
00228 };
00229 }
00230 }
00231
00232 namespace ros
00233 {
00234 namespace message_operations
00235 {
00236
00237 template<class ContainerAllocator>
00238 struct Printer< ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> >
00239 {
00240 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_object_detection_msgs::DetectObjectsResult_<ContainerAllocator> & v)
00241 {
00242 s << indent << "object_list: ";
00243 s << std::endl;
00244 Printer< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> >::stream(s, indent + " ", v.object_list);
00245 }
00246 };
00247
00248
00249 }
00250 }
00251
00252 #endif // COB_OBJECT_DETECTION_MSGS_MESSAGE_DETECTOBJECTSRESULT_H
00253