$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_object_perception/doc_stacks/2013-03-01_14-45-40.878742/cob_object_perception/cob_object_detection_msgs/msg/DetectionArray.msg */ 00002 #ifndef COB_OBJECT_DETECTION_MSGS_MESSAGE_DETECTIONARRAY_H 00003 #define COB_OBJECT_DETECTION_MSGS_MESSAGE_DETECTIONARRAY_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/Detection.h" 00019 00020 namespace cob_object_detection_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct DetectionArray_ { 00024 typedef DetectionArray_<ContainerAllocator> Type; 00025 00026 DetectionArray_() 00027 : header() 00028 , detections() 00029 { 00030 } 00031 00032 DetectionArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , detections(_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::Detection_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Detection_<ContainerAllocator> >::other > _detections_type; 00042 std::vector< ::cob_object_detection_msgs::Detection_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Detection_<ContainerAllocator> >::other > detections; 00043 00044 00045 ROS_DEPRECATED uint32_t get_detections_size() const { return (uint32_t)detections.size(); } 00046 ROS_DEPRECATED void set_detections_size(uint32_t size) { detections.resize((size_t)size); } 00047 ROS_DEPRECATED void get_detections_vec(std::vector< ::cob_object_detection_msgs::Detection_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Detection_<ContainerAllocator> >::other > & vec) const { vec = this->detections; } 00048 ROS_DEPRECATED void set_detections_vec(const std::vector< ::cob_object_detection_msgs::Detection_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::cob_object_detection_msgs::Detection_<ContainerAllocator> >::other > & vec) { this->detections = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "cob_object_detection_msgs/DetectionArray"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "8b22bfbdd23654f0350f86baa47c12f9"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 Detection[] detections\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: cob_object_detection_msgs/Detection\n\ 00087 Header header\n\ 00088 string label\n\ 00089 string detector\n\ 00090 float32 score\n\ 00091 Mask mask\n\ 00092 geometry_msgs/PoseStamped pose\n\ 00093 geometry_msgs/Point bounding_box_lwh\n\ 00094 \n\ 00095 ================================================================================\n\ 00096 MSG: cob_object_detection_msgs/Mask\n\ 00097 # this message is used to mark where an object is present in an image\n\ 00098 # this can be done either by a roi region on the image (less precise) or a mask (more precise)\n\ 00099 \n\ 00100 Rect roi\n\ 00101 \n\ 00102 # in the case when mask is used, 'roi' specifies the image region and 'mask'\n\ 00103 # (which should be of the same size) a binary mask in that region\n\ 00104 sensor_msgs/Image mask\n\ 00105 \n\ 00106 # in the case there is 3D data available, 'indices' are used to index the \n\ 00107 # part of the point cloud representing the object\n\ 00108 #pcl/PointIndices indices\n\ 00109 \n\ 00110 ================================================================================\n\ 00111 MSG: cob_object_detection_msgs/Rect\n\ 00112 int32 x\n\ 00113 int32 y\n\ 00114 int32 width\n\ 00115 int32 height\n\ 00116 \n\ 00117 ================================================================================\n\ 00118 MSG: sensor_msgs/Image\n\ 00119 # This message contains an uncompressed image\n\ 00120 # (0, 0) is at top-left corner of image\n\ 00121 #\n\ 00122 \n\ 00123 Header header # Header timestamp should be acquisition time of image\n\ 00124 # Header frame_id should be optical frame of camera\n\ 00125 # origin of frame should be optical center of cameara\n\ 00126 # +x should point to the right in the image\n\ 00127 # +y should point down in the image\n\ 00128 # +z should point into to plane of the image\n\ 00129 # If the frame_id here and the frame_id of the CameraInfo\n\ 00130 # message associated with the image conflict\n\ 00131 # the behavior is undefined\n\ 00132 \n\ 00133 uint32 height # image height, that is, number of rows\n\ 00134 uint32 width # image width, that is, number of columns\n\ 00135 \n\ 00136 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00137 # If you want to standardize a new string format, join\n\ 00138 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00139 \n\ 00140 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00141 # taken from the list of strings in src/image_encodings.cpp\n\ 00142 \n\ 00143 uint8 is_bigendian # is this data bigendian?\n\ 00144 uint32 step # Full row length in bytes\n\ 00145 uint8[] data # actual matrix data, size is (step * rows)\n\ 00146 \n\ 00147 ================================================================================\n\ 00148 MSG: geometry_msgs/PoseStamped\n\ 00149 # A Pose with reference coordinate frame and timestamp\n\ 00150 Header header\n\ 00151 Pose pose\n\ 00152 \n\ 00153 ================================================================================\n\ 00154 MSG: geometry_msgs/Pose\n\ 00155 # A representation of pose in free space, composed of postion and orientation. \n\ 00156 Point position\n\ 00157 Quaternion orientation\n\ 00158 \n\ 00159 ================================================================================\n\ 00160 MSG: geometry_msgs/Point\n\ 00161 # This contains the position of a point in free space\n\ 00162 float64 x\n\ 00163 float64 y\n\ 00164 float64 z\n\ 00165 \n\ 00166 ================================================================================\n\ 00167 MSG: geometry_msgs/Quaternion\n\ 00168 # This represents an orientation in free space in quaternion form.\n\ 00169 \n\ 00170 float64 x\n\ 00171 float64 y\n\ 00172 float64 z\n\ 00173 float64 w\n\ 00174 \n\ 00175 "; } 00176 public: 00177 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00178 00179 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00180 00181 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00182 { 00183 ros::serialization::OStream stream(write_ptr, 1000000000); 00184 ros::serialization::serialize(stream, header); 00185 ros::serialization::serialize(stream, detections); 00186 return stream.getData(); 00187 } 00188 00189 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00190 { 00191 ros::serialization::IStream stream(read_ptr, 1000000000); 00192 ros::serialization::deserialize(stream, header); 00193 ros::serialization::deserialize(stream, detections); 00194 return stream.getData(); 00195 } 00196 00197 ROS_DEPRECATED virtual uint32_t serializationLength() const 00198 { 00199 uint32_t size = 0; 00200 size += ros::serialization::serializationLength(header); 00201 size += ros::serialization::serializationLength(detections); 00202 return size; 00203 } 00204 00205 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > Ptr; 00206 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> const> ConstPtr; 00207 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00208 }; // struct DetectionArray 00209 typedef ::cob_object_detection_msgs::DetectionArray_<std::allocator<void> > DetectionArray; 00210 00211 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectionArray> DetectionArrayPtr; 00212 typedef boost::shared_ptr< ::cob_object_detection_msgs::DetectionArray const> DetectionArrayConstPtr; 00213 00214 00215 template<typename ContainerAllocator> 00216 std::ostream& operator<<(std::ostream& s, const ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> & v) 00217 { 00218 ros::message_operations::Printer< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> >::stream(s, "", v); 00219 return s;} 00220 00221 } // namespace cob_object_detection_msgs 00222 00223 namespace ros 00224 { 00225 namespace message_traits 00226 { 00227 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > : public TrueType {}; 00228 template<class ContainerAllocator> struct IsMessage< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> const> : public TrueType {}; 00229 template<class ContainerAllocator> 00230 struct MD5Sum< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > { 00231 static const char* value() 00232 { 00233 return "8b22bfbdd23654f0350f86baa47c12f9"; 00234 } 00235 00236 static const char* value(const ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> &) { return value(); } 00237 static const uint64_t static_value1 = 0x8b22bfbdd23654f0ULL; 00238 static const uint64_t static_value2 = 0x350f86baa47c12f9ULL; 00239 }; 00240 00241 template<class ContainerAllocator> 00242 struct DataType< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > { 00243 static const char* value() 00244 { 00245 return "cob_object_detection_msgs/DetectionArray"; 00246 } 00247 00248 static const char* value(const ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> &) { return value(); } 00249 }; 00250 00251 template<class ContainerAllocator> 00252 struct Definition< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > { 00253 static const char* value() 00254 { 00255 return "Header header\n\ 00256 Detection[] detections\n\ 00257 \n\ 00258 ================================================================================\n\ 00259 MSG: std_msgs/Header\n\ 00260 # Standard metadata for higher-level stamped data types.\n\ 00261 # This is generally used to communicate timestamped data \n\ 00262 # in a particular coordinate frame.\n\ 00263 # \n\ 00264 # sequence ID: consecutively increasing ID \n\ 00265 uint32 seq\n\ 00266 #Two-integer timestamp that is expressed as:\n\ 00267 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00268 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00269 # time-handling sugar is provided by the client library\n\ 00270 time stamp\n\ 00271 #Frame this data is associated with\n\ 00272 # 0: no frame\n\ 00273 # 1: global frame\n\ 00274 string frame_id\n\ 00275 \n\ 00276 ================================================================================\n\ 00277 MSG: cob_object_detection_msgs/Detection\n\ 00278 Header header\n\ 00279 string label\n\ 00280 string detector\n\ 00281 float32 score\n\ 00282 Mask mask\n\ 00283 geometry_msgs/PoseStamped pose\n\ 00284 geometry_msgs/Point bounding_box_lwh\n\ 00285 \n\ 00286 ================================================================================\n\ 00287 MSG: cob_object_detection_msgs/Mask\n\ 00288 # this message is used to mark where an object is present in an image\n\ 00289 # this can be done either by a roi region on the image (less precise) or a mask (more precise)\n\ 00290 \n\ 00291 Rect roi\n\ 00292 \n\ 00293 # in the case when mask is used, 'roi' specifies the image region and 'mask'\n\ 00294 # (which should be of the same size) a binary mask in that region\n\ 00295 sensor_msgs/Image mask\n\ 00296 \n\ 00297 # in the case there is 3D data available, 'indices' are used to index the \n\ 00298 # part of the point cloud representing the object\n\ 00299 #pcl/PointIndices indices\n\ 00300 \n\ 00301 ================================================================================\n\ 00302 MSG: cob_object_detection_msgs/Rect\n\ 00303 int32 x\n\ 00304 int32 y\n\ 00305 int32 width\n\ 00306 int32 height\n\ 00307 \n\ 00308 ================================================================================\n\ 00309 MSG: sensor_msgs/Image\n\ 00310 # This message contains an uncompressed image\n\ 00311 # (0, 0) is at top-left corner of image\n\ 00312 #\n\ 00313 \n\ 00314 Header header # Header timestamp should be acquisition time of image\n\ 00315 # Header frame_id should be optical frame of camera\n\ 00316 # origin of frame should be optical center of cameara\n\ 00317 # +x should point to the right in the image\n\ 00318 # +y should point down in the image\n\ 00319 # +z should point into to plane of the image\n\ 00320 # If the frame_id here and the frame_id of the CameraInfo\n\ 00321 # message associated with the image conflict\n\ 00322 # the behavior is undefined\n\ 00323 \n\ 00324 uint32 height # image height, that is, number of rows\n\ 00325 uint32 width # image width, that is, number of columns\n\ 00326 \n\ 00327 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00328 # If you want to standardize a new string format, join\n\ 00329 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00330 \n\ 00331 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00332 # taken from the list of strings in src/image_encodings.cpp\n\ 00333 \n\ 00334 uint8 is_bigendian # is this data bigendian?\n\ 00335 uint32 step # Full row length in bytes\n\ 00336 uint8[] data # actual matrix data, size is (step * rows)\n\ 00337 \n\ 00338 ================================================================================\n\ 00339 MSG: geometry_msgs/PoseStamped\n\ 00340 # A Pose with reference coordinate frame and timestamp\n\ 00341 Header header\n\ 00342 Pose pose\n\ 00343 \n\ 00344 ================================================================================\n\ 00345 MSG: geometry_msgs/Pose\n\ 00346 # A representation of pose in free space, composed of postion and orientation. \n\ 00347 Point position\n\ 00348 Quaternion orientation\n\ 00349 \n\ 00350 ================================================================================\n\ 00351 MSG: geometry_msgs/Point\n\ 00352 # This contains the position of a point in free space\n\ 00353 float64 x\n\ 00354 float64 y\n\ 00355 float64 z\n\ 00356 \n\ 00357 ================================================================================\n\ 00358 MSG: geometry_msgs/Quaternion\n\ 00359 # This represents an orientation in free space in quaternion form.\n\ 00360 \n\ 00361 float64 x\n\ 00362 float64 y\n\ 00363 float64 z\n\ 00364 float64 w\n\ 00365 \n\ 00366 "; 00367 } 00368 00369 static const char* value(const ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> &) { return value(); } 00370 }; 00371 00372 template<class ContainerAllocator> struct HasHeader< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > : public TrueType {}; 00373 template<class ContainerAllocator> struct HasHeader< const ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > : public TrueType {}; 00374 } // namespace message_traits 00375 } // namespace ros 00376 00377 namespace ros 00378 { 00379 namespace serialization 00380 { 00381 00382 template<class ContainerAllocator> struct Serializer< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > 00383 { 00384 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00385 { 00386 stream.next(m.header); 00387 stream.next(m.detections); 00388 } 00389 00390 ROS_DECLARE_ALLINONE_SERIALIZER; 00391 }; // struct DetectionArray_ 00392 } // namespace serialization 00393 } // namespace ros 00394 00395 namespace ros 00396 { 00397 namespace message_operations 00398 { 00399 00400 template<class ContainerAllocator> 00401 struct Printer< ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> > 00402 { 00403 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::cob_object_detection_msgs::DetectionArray_<ContainerAllocator> & v) 00404 { 00405 s << indent << "header: "; 00406 s << std::endl; 00407 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00408 s << indent << "detections[]" << std::endl; 00409 for (size_t i = 0; i < v.detections.size(); ++i) 00410 { 00411 s << indent << " detections[" << i << "]: "; 00412 s << std::endl; 00413 s << indent; 00414 Printer< ::cob_object_detection_msgs::Detection_<ContainerAllocator> >::stream(s, indent + " ", v.detections[i]); 00415 } 00416 } 00417 }; 00418 00419 00420 } // namespace message_operations 00421 } // namespace ros 00422 00423 #endif // COB_OBJECT_DETECTION_MSGS_MESSAGE_DETECTIONARRAY_H 00424