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