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