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


cob_object_detection_msgs
Author(s): Florian Weisshardt
autogenerated on Sat Mar 9 2013 11:24:33