Go to the documentation of this file.00001
00002 #ifndef IRI_PERCEPTION_MSGS_SERVICE_PCLTODESCRIPTORSET_H
00003 #define IRI_PERCEPTION_MSGS_SERVICE_PCLTODESCRIPTORSET_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 "sensor_msgs/PointCloud2.h"
00020
00021
00022 #include "iri_perception_msgs/DescriptorSet.h"
00023
00024 namespace iri_perception_msgs
00025 {
00026 template <class ContainerAllocator>
00027 struct PclToDescriptorSetRequest_ {
00028 typedef PclToDescriptorSetRequest_<ContainerAllocator> Type;
00029
00030 PclToDescriptorSetRequest_()
00031 : pointcloud()
00032 {
00033 }
00034
00035 PclToDescriptorSetRequest_(const ContainerAllocator& _alloc)
00036 : pointcloud(_alloc)
00037 {
00038 }
00039
00040 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _pointcloud_type;
00041 ::sensor_msgs::PointCloud2_<ContainerAllocator> pointcloud;
00042
00043
00044 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > Ptr;
00045 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> const> ConstPtr;
00046 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 };
00048 typedef ::iri_perception_msgs::PclToDescriptorSetRequest_<std::allocator<void> > PclToDescriptorSetRequest;
00049
00050 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetRequest> PclToDescriptorSetRequestPtr;
00051 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetRequest const> PclToDescriptorSetRequestConstPtr;
00052
00053
00054 template <class ContainerAllocator>
00055 struct PclToDescriptorSetResponse_ {
00056 typedef PclToDescriptorSetResponse_<ContainerAllocator> Type;
00057
00058 PclToDescriptorSetResponse_()
00059 : descriptor_set()
00060 {
00061 }
00062
00063 PclToDescriptorSetResponse_(const ContainerAllocator& _alloc)
00064 : descriptor_set(_alloc)
00065 {
00066 }
00067
00068 typedef ::iri_perception_msgs::DescriptorSet_<ContainerAllocator> _descriptor_set_type;
00069 ::iri_perception_msgs::DescriptorSet_<ContainerAllocator> descriptor_set;
00070
00071
00072 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > Ptr;
00073 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> const> ConstPtr;
00074 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00075 };
00076 typedef ::iri_perception_msgs::PclToDescriptorSetResponse_<std::allocator<void> > PclToDescriptorSetResponse;
00077
00078 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetResponse> PclToDescriptorSetResponsePtr;
00079 typedef boost::shared_ptr< ::iri_perception_msgs::PclToDescriptorSetResponse const> PclToDescriptorSetResponseConstPtr;
00080
00081 struct PclToDescriptorSet
00082 {
00083
00084 typedef PclToDescriptorSetRequest Request;
00085 typedef PclToDescriptorSetResponse Response;
00086 Request request;
00087 Response response;
00088
00089 typedef Request RequestType;
00090 typedef Response ResponseType;
00091 };
00092 }
00093
00094 namespace ros
00095 {
00096 namespace message_traits
00097 {
00098 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > : public TrueType {};
00099 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> const> : public TrueType {};
00100 template<class ContainerAllocator>
00101 struct MD5Sum< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "56680b720436a8fbd002ea7abe6966e1";
00105 }
00106
00107 static const char* value(const ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> &) { return value(); }
00108 static const uint64_t static_value1 = 0x56680b720436a8fbULL;
00109 static const uint64_t static_value2 = 0xd002ea7abe6966e1ULL;
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct DataType< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "iri_perception_msgs/PclToDescriptorSetRequest";
00117 }
00118
00119 static const char* value(const ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct Definition< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "\n\
00127 sensor_msgs/PointCloud2 pointcloud\n\
00128 \n\
00129 ================================================================================\n\
00130 MSG: sensor_msgs/PointCloud2\n\
00131 # This message holds a collection of N-dimensional points, which may\n\
00132 # contain additional information such as normals, intensity, etc. The\n\
00133 # point data is stored as a binary blob, its layout described by the\n\
00134 # contents of the \"fields\" array.\n\
00135 \n\
00136 # The point cloud data may be organized 2d (image-like) or 1d\n\
00137 # (unordered). Point clouds organized as 2d images may be produced by\n\
00138 # camera depth sensors such as stereo or time-of-flight.\n\
00139 \n\
00140 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00141 # points).\n\
00142 Header header\n\
00143 \n\
00144 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00145 # 1 and width is the length of the point cloud.\n\
00146 uint32 height\n\
00147 uint32 width\n\
00148 \n\
00149 # Describes the channels and their layout in the binary data blob.\n\
00150 PointField[] fields\n\
00151 \n\
00152 bool is_bigendian # Is this data bigendian?\n\
00153 uint32 point_step # Length of a point in bytes\n\
00154 uint32 row_step # Length of a row in bytes\n\
00155 uint8[] data # Actual point data, size is (row_step*height)\n\
00156 \n\
00157 bool is_dense # True if there are no invalid points\n\
00158 \n\
00159 ================================================================================\n\
00160 MSG: std_msgs/Header\n\
00161 # Standard metadata for higher-level stamped data types.\n\
00162 # This is generally used to communicate timestamped data \n\
00163 # in a particular coordinate frame.\n\
00164 # \n\
00165 # sequence ID: consecutively increasing ID \n\
00166 uint32 seq\n\
00167 #Two-integer timestamp that is expressed as:\n\
00168 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00169 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00170 # time-handling sugar is provided by the client library\n\
00171 time stamp\n\
00172 #Frame this data is associated with\n\
00173 # 0: no frame\n\
00174 # 1: global frame\n\
00175 string frame_id\n\
00176 \n\
00177 ================================================================================\n\
00178 MSG: sensor_msgs/PointField\n\
00179 # This message holds the description of one point entry in the\n\
00180 # PointCloud2 message format.\n\
00181 uint8 INT8 = 1\n\
00182 uint8 UINT8 = 2\n\
00183 uint8 INT16 = 3\n\
00184 uint8 UINT16 = 4\n\
00185 uint8 INT32 = 5\n\
00186 uint8 UINT32 = 6\n\
00187 uint8 FLOAT32 = 7\n\
00188 uint8 FLOAT64 = 8\n\
00189 \n\
00190 string name # Name of field\n\
00191 uint32 offset # Offset from start of point struct\n\
00192 uint8 datatype # Datatype enumeration, see above\n\
00193 uint32 count # How many elements in the field\n\
00194 \n\
00195 ";
00196 }
00197
00198 static const char* value(const ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> &) { return value(); }
00199 };
00200
00201 }
00202 }
00203
00204
00205 namespace ros
00206 {
00207 namespace message_traits
00208 {
00209 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > : public TrueType {};
00210 template<class ContainerAllocator> struct IsMessage< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> const> : public TrueType {};
00211 template<class ContainerAllocator>
00212 struct MD5Sum< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > {
00213 static const char* value()
00214 {
00215 return "db5e12e66d3b02ca867728f150b58d69";
00216 }
00217
00218 static const char* value(const ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> &) { return value(); }
00219 static const uint64_t static_value1 = 0xdb5e12e66d3b02caULL;
00220 static const uint64_t static_value2 = 0x867728f150b58d69ULL;
00221 };
00222
00223 template<class ContainerAllocator>
00224 struct DataType< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > {
00225 static const char* value()
00226 {
00227 return "iri_perception_msgs/PclToDescriptorSetResponse";
00228 }
00229
00230 static const char* value(const ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> &) { return value(); }
00231 };
00232
00233 template<class ContainerAllocator>
00234 struct Definition< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > {
00235 static const char* value()
00236 {
00237 return "\n\
00238 iri_perception_msgs/DescriptorSet descriptor_set\n\
00239 \n\
00240 \n\
00241 ================================================================================\n\
00242 MSG: iri_perception_msgs/DescriptorSet\n\
00243 Header header\n\
00244 int32 num_orient_bins\n\
00245 int32 num_spa_bins\n\
00246 int32 num\n\
00247 int32 len\n\
00248 int32 width\n\
00249 int32 height\n\
00250 iri_perception_msgs/Descriptor[] descriptors\n\
00251 \n\
00252 ================================================================================\n\
00253 MSG: std_msgs/Header\n\
00254 # Standard metadata for higher-level stamped data types.\n\
00255 # This is generally used to communicate timestamped data \n\
00256 # in a particular coordinate frame.\n\
00257 # \n\
00258 # sequence ID: consecutively increasing ID \n\
00259 uint32 seq\n\
00260 #Two-integer timestamp that is expressed as:\n\
00261 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00262 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00263 # time-handling sugar is provided by the client library\n\
00264 time stamp\n\
00265 #Frame this data is associated with\n\
00266 # 0: no frame\n\
00267 # 1: global frame\n\
00268 string frame_id\n\
00269 \n\
00270 ================================================================================\n\
00271 MSG: iri_perception_msgs/Descriptor\n\
00272 float32[] descriptor\n\
00273 geometry_msgs/Vector3 point3d\n\
00274 int32 u\n\
00275 int32 v\n\
00276 float32 orientation\n\
00277 \n\
00278 ================================================================================\n\
00279 MSG: geometry_msgs/Vector3\n\
00280 # This represents a vector in free space. \n\
00281 \n\
00282 float64 x\n\
00283 float64 y\n\
00284 float64 z\n\
00285 ";
00286 }
00287
00288 static const char* value(const ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 }
00292 }
00293
00294 namespace ros
00295 {
00296 namespace serialization
00297 {
00298
00299 template<class ContainerAllocator> struct Serializer< ::iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> >
00300 {
00301 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00302 {
00303 stream.next(m.pointcloud);
00304 }
00305
00306 ROS_DECLARE_ALLINONE_SERIALIZER;
00307 };
00308 }
00309 }
00310
00311
00312 namespace ros
00313 {
00314 namespace serialization
00315 {
00316
00317 template<class ContainerAllocator> struct Serializer< ::iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> >
00318 {
00319 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00320 {
00321 stream.next(m.descriptor_set);
00322 }
00323
00324 ROS_DECLARE_ALLINONE_SERIALIZER;
00325 };
00326 }
00327 }
00328
00329 namespace ros
00330 {
00331 namespace service_traits
00332 {
00333 template<>
00334 struct MD5Sum<iri_perception_msgs::PclToDescriptorSet> {
00335 static const char* value()
00336 {
00337 return "f55bbc2d3d079e04fdc51edb942f1d11";
00338 }
00339
00340 static const char* value(const iri_perception_msgs::PclToDescriptorSet&) { return value(); }
00341 };
00342
00343 template<>
00344 struct DataType<iri_perception_msgs::PclToDescriptorSet> {
00345 static const char* value()
00346 {
00347 return "iri_perception_msgs/PclToDescriptorSet";
00348 }
00349
00350 static const char* value(const iri_perception_msgs::PclToDescriptorSet&) { return value(); }
00351 };
00352
00353 template<class ContainerAllocator>
00354 struct MD5Sum<iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > {
00355 static const char* value()
00356 {
00357 return "f55bbc2d3d079e04fdc51edb942f1d11";
00358 }
00359
00360 static const char* value(const iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> &) { return value(); }
00361 };
00362
00363 template<class ContainerAllocator>
00364 struct DataType<iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> > {
00365 static const char* value()
00366 {
00367 return "iri_perception_msgs/PclToDescriptorSet";
00368 }
00369
00370 static const char* value(const iri_perception_msgs::PclToDescriptorSetRequest_<ContainerAllocator> &) { return value(); }
00371 };
00372
00373 template<class ContainerAllocator>
00374 struct MD5Sum<iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > {
00375 static const char* value()
00376 {
00377 return "f55bbc2d3d079e04fdc51edb942f1d11";
00378 }
00379
00380 static const char* value(const iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> &) { return value(); }
00381 };
00382
00383 template<class ContainerAllocator>
00384 struct DataType<iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> > {
00385 static const char* value()
00386 {
00387 return "iri_perception_msgs/PclToDescriptorSet";
00388 }
00389
00390 static const char* value(const iri_perception_msgs::PclToDescriptorSetResponse_<ContainerAllocator> &) { return value(); }
00391 };
00392
00393 }
00394 }
00395
00396 #endif // IRI_PERCEPTION_MSGS_SERVICE_PCLTODESCRIPTORSET_H
00397