00001
00002 #ifndef NAVFN_SERVICE_SETCOSTMAP_H
00003 #define NAVFN_SERVICE_SETCOSTMAP_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
00018 namespace navfn
00019 {
00020 template <class ContainerAllocator>
00021 struct SetCostmapRequest_ : public ros::Message
00022 {
00023 typedef SetCostmapRequest_<ContainerAllocator> Type;
00024
00025 SetCostmapRequest_()
00026 : costs()
00027 , height(0)
00028 , width(0)
00029 {
00030 }
00031
00032 SetCostmapRequest_(const ContainerAllocator& _alloc)
00033 : costs(_alloc)
00034 , height(0)
00035 , width(0)
00036 {
00037 }
00038
00039 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _costs_type;
00040 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > costs;
00041
00042 typedef uint16_t _height_type;
00043 uint16_t height;
00044
00045 typedef uint16_t _width_type;
00046 uint16_t width;
00047
00048
00049 ROS_DEPRECATED uint32_t get_costs_size() const { return (uint32_t)costs.size(); }
00050 ROS_DEPRECATED void set_costs_size(uint32_t size) { costs.resize((size_t)size); }
00051 ROS_DEPRECATED void get_costs_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->costs; }
00052 ROS_DEPRECATED void set_costs_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->costs = vec; }
00053 private:
00054 static const char* __s_getDataType_() { return "navfn/SetCostmapRequest"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057
00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059
00060 private:
00061 static const char* __s_getMD5Sum_() { return "370ec969cdb71f9cde7c7cbe0d752308"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getServerMD5Sum_() { return "370ec969cdb71f9cde7c7cbe0d752308"; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00071
00072 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00073
00074 private:
00075 static const char* __s_getMessageDefinition_() { return "uint8[] costs\n\
00076 uint16 height\n\
00077 uint16 width\n\
00078 \n\
00079 "; }
00080 public:
00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00082
00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00084
00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00086 {
00087 ros::serialization::OStream stream(write_ptr, 1000000000);
00088 ros::serialization::serialize(stream, costs);
00089 ros::serialization::serialize(stream, height);
00090 ros::serialization::serialize(stream, width);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00095 {
00096 ros::serialization::IStream stream(read_ptr, 1000000000);
00097 ros::serialization::deserialize(stream, costs);
00098 ros::serialization::deserialize(stream, height);
00099 ros::serialization::deserialize(stream, width);
00100 return stream.getData();
00101 }
00102
00103 ROS_DEPRECATED virtual uint32_t serializationLength() const
00104 {
00105 uint32_t size = 0;
00106 size += ros::serialization::serializationLength(costs);
00107 size += ros::serialization::serializationLength(height);
00108 size += ros::serialization::serializationLength(width);
00109 return size;
00110 }
00111
00112 typedef boost::shared_ptr< ::navfn::SetCostmapRequest_<ContainerAllocator> > Ptr;
00113 typedef boost::shared_ptr< ::navfn::SetCostmapRequest_<ContainerAllocator> const> ConstPtr;
00114 };
00115 typedef ::navfn::SetCostmapRequest_<std::allocator<void> > SetCostmapRequest;
00116
00117 typedef boost::shared_ptr< ::navfn::SetCostmapRequest> SetCostmapRequestPtr;
00118 typedef boost::shared_ptr< ::navfn::SetCostmapRequest const> SetCostmapRequestConstPtr;
00119
00120
00121 template <class ContainerAllocator>
00122 struct SetCostmapResponse_ : public ros::Message
00123 {
00124 typedef SetCostmapResponse_<ContainerAllocator> Type;
00125
00126 SetCostmapResponse_()
00127 {
00128 }
00129
00130 SetCostmapResponse_(const ContainerAllocator& _alloc)
00131 {
00132 }
00133
00134
00135 private:
00136 static const char* __s_getDataType_() { return "navfn/SetCostmapResponse"; }
00137 public:
00138 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00139
00140 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00141
00142 private:
00143 static const char* __s_getMD5Sum_() { return "d41d8cd98f00b204e9800998ecf8427e"; }
00144 public:
00145 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00146
00147 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00148
00149 private:
00150 static const char* __s_getServerMD5Sum_() { return "370ec969cdb71f9cde7c7cbe0d752308"; }
00151 public:
00152 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); }
00153
00154 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); }
00155
00156 private:
00157 static const char* __s_getMessageDefinition_() { return "\n\
00158 "; }
00159 public:
00160 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00161
00162 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00163
00164 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00165 {
00166 ros::serialization::OStream stream(write_ptr, 1000000000);
00167 return stream.getData();
00168 }
00169
00170 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00171 {
00172 ros::serialization::IStream stream(read_ptr, 1000000000);
00173 return stream.getData();
00174 }
00175
00176 ROS_DEPRECATED virtual uint32_t serializationLength() const
00177 {
00178 uint32_t size = 0;
00179 return size;
00180 }
00181
00182 typedef boost::shared_ptr< ::navfn::SetCostmapResponse_<ContainerAllocator> > Ptr;
00183 typedef boost::shared_ptr< ::navfn::SetCostmapResponse_<ContainerAllocator> const> ConstPtr;
00184 };
00185 typedef ::navfn::SetCostmapResponse_<std::allocator<void> > SetCostmapResponse;
00186
00187 typedef boost::shared_ptr< ::navfn::SetCostmapResponse> SetCostmapResponsePtr;
00188 typedef boost::shared_ptr< ::navfn::SetCostmapResponse const> SetCostmapResponseConstPtr;
00189
00190 struct SetCostmap
00191 {
00192
00193 typedef SetCostmapRequest Request;
00194 typedef SetCostmapResponse Response;
00195 Request request;
00196 Response response;
00197
00198 typedef Request RequestType;
00199 typedef Response ResponseType;
00200 };
00201 }
00202
00203 namespace ros
00204 {
00205 namespace message_traits
00206 {
00207 template<class ContainerAllocator>
00208 struct MD5Sum< ::navfn::SetCostmapRequest_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "370ec969cdb71f9cde7c7cbe0d752308";
00212 }
00213
00214 static const char* value(const ::navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00215 static const uint64_t static_value1 = 0x370ec969cdb71f9cULL;
00216 static const uint64_t static_value2 = 0xde7c7cbe0d752308ULL;
00217 };
00218
00219 template<class ContainerAllocator>
00220 struct DataType< ::navfn::SetCostmapRequest_<ContainerAllocator> > {
00221 static const char* value()
00222 {
00223 return "navfn/SetCostmapRequest";
00224 }
00225
00226 static const char* value(const ::navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 template<class ContainerAllocator>
00230 struct Definition< ::navfn::SetCostmapRequest_<ContainerAllocator> > {
00231 static const char* value()
00232 {
00233 return "uint8[] costs\n\
00234 uint16 height\n\
00235 uint16 width\n\
00236 \n\
00237 ";
00238 }
00239
00240 static const char* value(const ::navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00241 };
00242
00243 }
00244 }
00245
00246
00247 namespace ros
00248 {
00249 namespace message_traits
00250 {
00251 template<class ContainerAllocator>
00252 struct MD5Sum< ::navfn::SetCostmapResponse_<ContainerAllocator> > {
00253 static const char* value()
00254 {
00255 return "d41d8cd98f00b204e9800998ecf8427e";
00256 }
00257
00258 static const char* value(const ::navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00259 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00260 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00261 };
00262
00263 template<class ContainerAllocator>
00264 struct DataType< ::navfn::SetCostmapResponse_<ContainerAllocator> > {
00265 static const char* value()
00266 {
00267 return "navfn/SetCostmapResponse";
00268 }
00269
00270 static const char* value(const ::navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00271 };
00272
00273 template<class ContainerAllocator>
00274 struct Definition< ::navfn::SetCostmapResponse_<ContainerAllocator> > {
00275 static const char* value()
00276 {
00277 return "\n\
00278 ";
00279 }
00280
00281 static const char* value(const ::navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00282 };
00283
00284 template<class ContainerAllocator> struct IsFixedSize< ::navfn::SetCostmapResponse_<ContainerAllocator> > : public TrueType {};
00285 }
00286 }
00287
00288 namespace ros
00289 {
00290 namespace serialization
00291 {
00292
00293 template<class ContainerAllocator> struct Serializer< ::navfn::SetCostmapRequest_<ContainerAllocator> >
00294 {
00295 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00296 {
00297 stream.next(m.costs);
00298 stream.next(m.height);
00299 stream.next(m.width);
00300 }
00301
00302 ROS_DECLARE_ALLINONE_SERIALIZER;
00303 };
00304 }
00305 }
00306
00307
00308 namespace ros
00309 {
00310 namespace serialization
00311 {
00312
00313 template<class ContainerAllocator> struct Serializer< ::navfn::SetCostmapResponse_<ContainerAllocator> >
00314 {
00315 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00316 {
00317 }
00318
00319 ROS_DECLARE_ALLINONE_SERIALIZER;
00320 };
00321 }
00322 }
00323
00324 namespace ros
00325 {
00326 namespace service_traits
00327 {
00328 template<>
00329 struct MD5Sum<navfn::SetCostmap> {
00330 static const char* value()
00331 {
00332 return "370ec969cdb71f9cde7c7cbe0d752308";
00333 }
00334
00335 static const char* value(const navfn::SetCostmap&) { return value(); }
00336 };
00337
00338 template<>
00339 struct DataType<navfn::SetCostmap> {
00340 static const char* value()
00341 {
00342 return "navfn/SetCostmap";
00343 }
00344
00345 static const char* value(const navfn::SetCostmap&) { return value(); }
00346 };
00347
00348 template<class ContainerAllocator>
00349 struct MD5Sum<navfn::SetCostmapRequest_<ContainerAllocator> > {
00350 static const char* value()
00351 {
00352 return "370ec969cdb71f9cde7c7cbe0d752308";
00353 }
00354
00355 static const char* value(const navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00356 };
00357
00358 template<class ContainerAllocator>
00359 struct DataType<navfn::SetCostmapRequest_<ContainerAllocator> > {
00360 static const char* value()
00361 {
00362 return "navfn/SetCostmap";
00363 }
00364
00365 static const char* value(const navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00366 };
00367
00368 template<class ContainerAllocator>
00369 struct MD5Sum<navfn::SetCostmapResponse_<ContainerAllocator> > {
00370 static const char* value()
00371 {
00372 return "370ec969cdb71f9cde7c7cbe0d752308";
00373 }
00374
00375 static const char* value(const navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00376 };
00377
00378 template<class ContainerAllocator>
00379 struct DataType<navfn::SetCostmapResponse_<ContainerAllocator> > {
00380 static const char* value()
00381 {
00382 return "navfn/SetCostmap";
00383 }
00384
00385 static const char* value(const navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00386 };
00387
00388 }
00389 }
00390
00391 #endif // NAVFN_SERVICE_SETCOSTMAP_H
00392