00001
00002 #ifndef OCTOMAP_ROS_SERVICE_GETOCTOMAP_H
00003 #define OCTOMAP_ROS_SERVICE_GETOCTOMAP_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/service_traits.h"
00014
00015
00016
00017 #include "octomap_ros/OctomapBinary.h"
00018
00019 namespace octomap_ros
00020 {
00021 template <class ContainerAllocator>
00022 struct GetOctomapRequest_ : public ros::Message
00023 {
00024 typedef GetOctomapRequest_<ContainerAllocator> Type;
00025
00026 GetOctomapRequest_()
00027 {
00028 }
00029
00030 GetOctomapRequest_(const ContainerAllocator& _alloc)
00031 {
00032 }
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "octomap_ros/GetOctomapRequest"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getServerMD5Sum_() { return "c74335a6bc30ba3766f4f6bcc2364be3"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "\n\
00058 \n\
00059 "; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00064
00065 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00066 {
00067 ros::serialization::OStream stream(write_ptr, 1000000000);
00068 return stream.getData();
00069 }
00070
00071 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00072 {
00073 ros::serialization::IStream stream(read_ptr, 1000000000);
00074 return stream.getData();
00075 }
00076
00077 ROS_DEPRECATED virtual uint32_t serializationLength() const
00078 {
00079 uint32_t size = 0;
00080 return size;
00081 }
00082
00083 typedef boost::shared_ptr< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> > Ptr;
00084 typedef boost::shared_ptr< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> const> ConstPtr;
00085 };
00086 typedef ::octomap_ros::GetOctomapRequest_<std::allocator<void> > GetOctomapRequest;
00087
00088 typedef boost::shared_ptr< ::octomap_ros::GetOctomapRequest> GetOctomapRequestPtr;
00089 typedef boost::shared_ptr< ::octomap_ros::GetOctomapRequest const> GetOctomapRequestConstPtr;
00090
00091
00092 template <class ContainerAllocator>
00093 struct GetOctomapResponse_ : public ros::Message
00094 {
00095 typedef GetOctomapResponse_<ContainerAllocator> Type;
00096
00097 GetOctomapResponse_()
00098 : map()
00099 {
00100 }
00101
00102 GetOctomapResponse_(const ContainerAllocator& _alloc)
00103 : map(_alloc)
00104 {
00105 }
00106
00107 typedef ::octomap_ros::OctomapBinary_<ContainerAllocator> _map_type;
00108 ::octomap_ros::OctomapBinary_<ContainerAllocator> map;
00109
00110
00111 private:
00112 static const char* __s_getDataType_() { return "octomap_ros/GetOctomapResponse"; }
00113 public:
00114 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00115
00116 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00117
00118 private:
00119 static const char* __s_getMD5Sum_() { return "c74335a6bc30ba3766f4f6bcc2364be3"; }
00120 public:
00121 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00122
00123 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00124
00125 private:
00126 static const char* __s_getServerMD5Sum_() { return "c74335a6bc30ba3766f4f6bcc2364be3"; }
00127 public:
00128 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00129
00130 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00131
00132 private:
00133 static const char* __s_getMessageDefinition_() { return "octomap_ros/OctomapBinary map\n\
00134 \n\
00135 \n\
00136 ================================================================================\n\
00137 MSG: octomap_ros/OctomapBinary\n\
00138 # A 3D map in binary format, as Octree\n\
00139 Header header\n\
00140 int8[] data\n\
00141 ================================================================================\n\
00142 MSG: std_msgs/Header\n\
00143 # Standard metadata for higher-level stamped data types.\n\
00144 # This is generally used to communicate timestamped data \n\
00145 # in a particular coordinate frame.\n\
00146 # \n\
00147 # sequence ID: consecutively increasing ID \n\
00148 uint32 seq\n\
00149 #Two-integer timestamp that is expressed as:\n\
00150 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00151 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00152 # time-handling sugar is provided by the client library\n\
00153 time stamp\n\
00154 #Frame this data is associated with\n\
00155 # 0: no frame\n\
00156 # 1: global frame\n\
00157 string frame_id\n\
00158 \n\
00159 "; }
00160 public:
00161 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00162
00163 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00164
00165 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00166 {
00167 ros::serialization::OStream stream(write_ptr, 1000000000);
00168 ros::serialization::serialize(stream, map);
00169 return stream.getData();
00170 }
00171
00172 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00173 {
00174 ros::serialization::IStream stream(read_ptr, 1000000000);
00175 ros::serialization::deserialize(stream, map);
00176 return stream.getData();
00177 }
00178
00179 ROS_DEPRECATED virtual uint32_t serializationLength() const
00180 {
00181 uint32_t size = 0;
00182 size += ros::serialization::serializationLength(map);
00183 return size;
00184 }
00185
00186 typedef boost::shared_ptr< ::octomap_ros::GetOctomapResponse_<ContainerAllocator> > Ptr;
00187 typedef boost::shared_ptr< ::octomap_ros::GetOctomapResponse_<ContainerAllocator> const> ConstPtr;
00188 };
00189 typedef ::octomap_ros::GetOctomapResponse_<std::allocator<void> > GetOctomapResponse;
00190
00191 typedef boost::shared_ptr< ::octomap_ros::GetOctomapResponse> GetOctomapResponsePtr;
00192 typedef boost::shared_ptr< ::octomap_ros::GetOctomapResponse const> GetOctomapResponseConstPtr;
00193
00194 struct GetOctomap
00195 {
00196
00197 typedef GetOctomapRequest Request;
00198 typedef GetOctomapResponse Response;
00199 Request request;
00200 Response response;
00201
00202 typedef Request RequestType;
00203 typedef Response ResponseType;
00204 };
00205 }
00206
00207 namespace ros
00208 {
00209 namespace message_traits
00210 {
00211 template<class ContainerAllocator>
00212 struct MD5Sum< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> > {
00213 static const char* value()
00214 {
00215 return "d41d8cd98f00b204e9800998ecf8427e";
00216 }
00217
00218 static const char* value(const ::octomap_ros::GetOctomapRequest_<ContainerAllocator> &) { return value(); }
00219 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00220 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00221 };
00222
00223 template<class ContainerAllocator>
00224 struct DataType< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> > {
00225 static const char* value()
00226 {
00227 return "octomap_ros/GetOctomapRequest";
00228 }
00229
00230 static const char* value(const ::octomap_ros::GetOctomapRequest_<ContainerAllocator> &) { return value(); }
00231 };
00232
00233 template<class ContainerAllocator>
00234 struct Definition< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> > {
00235 static const char* value()
00236 {
00237 return "\n\
00238 \n\
00239 ";
00240 }
00241
00242 static const char* value(const ::octomap_ros::GetOctomapRequest_<ContainerAllocator> &) { return value(); }
00243 };
00244
00245 template<class ContainerAllocator> struct IsFixedSize< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> > : public TrueType {};
00246 }
00247 }
00248
00249
00250 namespace ros
00251 {
00252 namespace message_traits
00253 {
00254 template<class ContainerAllocator>
00255 struct MD5Sum< ::octomap_ros::GetOctomapResponse_<ContainerAllocator> > {
00256 static const char* value()
00257 {
00258 return "c74335a6bc30ba3766f4f6bcc2364be3";
00259 }
00260
00261 static const char* value(const ::octomap_ros::GetOctomapResponse_<ContainerAllocator> &) { return value(); }
00262 static const uint64_t static_value1 = 0xc74335a6bc30ba37ULL;
00263 static const uint64_t static_value2 = 0x66f4f6bcc2364be3ULL;
00264 };
00265
00266 template<class ContainerAllocator>
00267 struct DataType< ::octomap_ros::GetOctomapResponse_<ContainerAllocator> > {
00268 static const char* value()
00269 {
00270 return "octomap_ros/GetOctomapResponse";
00271 }
00272
00273 static const char* value(const ::octomap_ros::GetOctomapResponse_<ContainerAllocator> &) { return value(); }
00274 };
00275
00276 template<class ContainerAllocator>
00277 struct Definition< ::octomap_ros::GetOctomapResponse_<ContainerAllocator> > {
00278 static const char* value()
00279 {
00280 return "octomap_ros/OctomapBinary map\n\
00281 \n\
00282 \n\
00283 ================================================================================\n\
00284 MSG: octomap_ros/OctomapBinary\n\
00285 # A 3D map in binary format, as Octree\n\
00286 Header header\n\
00287 int8[] data\n\
00288 ================================================================================\n\
00289 MSG: std_msgs/Header\n\
00290 # Standard metadata for higher-level stamped data types.\n\
00291 # This is generally used to communicate timestamped data \n\
00292 # in a particular coordinate frame.\n\
00293 # \n\
00294 # sequence ID: consecutively increasing ID \n\
00295 uint32 seq\n\
00296 #Two-integer timestamp that is expressed as:\n\
00297 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00298 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00299 # time-handling sugar is provided by the client library\n\
00300 time stamp\n\
00301 #Frame this data is associated with\n\
00302 # 0: no frame\n\
00303 # 1: global frame\n\
00304 string frame_id\n\
00305 \n\
00306 ";
00307 }
00308
00309 static const char* value(const ::octomap_ros::GetOctomapResponse_<ContainerAllocator> &) { return value(); }
00310 };
00311
00312 }
00313 }
00314
00315 namespace ros
00316 {
00317 namespace serialization
00318 {
00319
00320 template<class ContainerAllocator> struct Serializer< ::octomap_ros::GetOctomapRequest_<ContainerAllocator> >
00321 {
00322 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00323 {
00324 }
00325
00326 ROS_DECLARE_ALLINONE_SERIALIZER;
00327 };
00328 }
00329 }
00330
00331
00332 namespace ros
00333 {
00334 namespace serialization
00335 {
00336
00337 template<class ContainerAllocator> struct Serializer< ::octomap_ros::GetOctomapResponse_<ContainerAllocator> >
00338 {
00339 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00340 {
00341 stream.next(m.map);
00342 }
00343
00344 ROS_DECLARE_ALLINONE_SERIALIZER;
00345 };
00346 }
00347 }
00348
00349 namespace ros
00350 {
00351 namespace service_traits
00352 {
00353 template<>
00354 struct MD5Sum<octomap_ros::GetOctomap> {
00355 static const char* value()
00356 {
00357 return "c74335a6bc30ba3766f4f6bcc2364be3";
00358 }
00359
00360 static const char* value(const octomap_ros::GetOctomap&) { return value(); }
00361 };
00362
00363 template<>
00364 struct DataType<octomap_ros::GetOctomap> {
00365 static const char* value()
00366 {
00367 return "octomap_ros/GetOctomap";
00368 }
00369
00370 static const char* value(const octomap_ros::GetOctomap&) { return value(); }
00371 };
00372
00373 template<class ContainerAllocator>
00374 struct MD5Sum<octomap_ros::GetOctomapRequest_<ContainerAllocator> > {
00375 static const char* value()
00376 {
00377 return "c74335a6bc30ba3766f4f6bcc2364be3";
00378 }
00379
00380 static const char* value(const octomap_ros::GetOctomapRequest_<ContainerAllocator> &) { return value(); }
00381 };
00382
00383 template<class ContainerAllocator>
00384 struct DataType<octomap_ros::GetOctomapRequest_<ContainerAllocator> > {
00385 static const char* value()
00386 {
00387 return "octomap_ros/GetOctomap";
00388 }
00389
00390 static const char* value(const octomap_ros::GetOctomapRequest_<ContainerAllocator> &) { return value(); }
00391 };
00392
00393 template<class ContainerAllocator>
00394 struct MD5Sum<octomap_ros::GetOctomapResponse_<ContainerAllocator> > {
00395 static const char* value()
00396 {
00397 return "c74335a6bc30ba3766f4f6bcc2364be3";
00398 }
00399
00400 static const char* value(const octomap_ros::GetOctomapResponse_<ContainerAllocator> &) { return value(); }
00401 };
00402
00403 template<class ContainerAllocator>
00404 struct DataType<octomap_ros::GetOctomapResponse_<ContainerAllocator> > {
00405 static const char* value()
00406 {
00407 return "octomap_ros/GetOctomap";
00408 }
00409
00410 static const char* value(const octomap_ros::GetOctomapResponse_<ContainerAllocator> &) { return value(); }
00411 };
00412
00413 }
00414 }
00415
00416 #endif // OCTOMAP_ROS_SERVICE_GETOCTOMAP_H
00417