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