Go to the documentation of this file.00001
00002 #ifndef NAVFN_SERVICE_SETCOSTMAP_H
00003 #define NAVFN_SERVICE_SETCOSTMAP_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
00020
00021
00022 namespace navfn
00023 {
00024 template <class ContainerAllocator>
00025 struct SetCostmapRequest_ {
00026 typedef SetCostmapRequest_<ContainerAllocator> Type;
00027
00028 SetCostmapRequest_()
00029 : costs()
00030 , height(0)
00031 , width(0)
00032 {
00033 }
00034
00035 SetCostmapRequest_(const ContainerAllocator& _alloc)
00036 : costs(_alloc)
00037 , height(0)
00038 , width(0)
00039 {
00040 }
00041
00042 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _costs_type;
00043 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > costs;
00044
00045 typedef uint16_t _height_type;
00046 uint16_t height;
00047
00048 typedef uint16_t _width_type;
00049 uint16_t width;
00050
00051
00052 typedef boost::shared_ptr< ::navfn::SetCostmapRequest_<ContainerAllocator> > Ptr;
00053 typedef boost::shared_ptr< ::navfn::SetCostmapRequest_<ContainerAllocator> const> ConstPtr;
00054 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00055 };
00056 typedef ::navfn::SetCostmapRequest_<std::allocator<void> > SetCostmapRequest;
00057
00058 typedef boost::shared_ptr< ::navfn::SetCostmapRequest> SetCostmapRequestPtr;
00059 typedef boost::shared_ptr< ::navfn::SetCostmapRequest const> SetCostmapRequestConstPtr;
00060
00061
00062
00063 template <class ContainerAllocator>
00064 struct SetCostmapResponse_ {
00065 typedef SetCostmapResponse_<ContainerAllocator> Type;
00066
00067 SetCostmapResponse_()
00068 {
00069 }
00070
00071 SetCostmapResponse_(const ContainerAllocator& _alloc)
00072 {
00073 }
00074
00075
00076 typedef boost::shared_ptr< ::navfn::SetCostmapResponse_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::navfn::SetCostmapResponse_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::navfn::SetCostmapResponse_<std::allocator<void> > SetCostmapResponse;
00081
00082 typedef boost::shared_ptr< ::navfn::SetCostmapResponse> SetCostmapResponsePtr;
00083 typedef boost::shared_ptr< ::navfn::SetCostmapResponse const> SetCostmapResponseConstPtr;
00084
00085
00086 struct SetCostmap
00087 {
00088
00089 typedef SetCostmapRequest Request;
00090 typedef SetCostmapResponse Response;
00091 Request request;
00092 Response response;
00093
00094 typedef Request RequestType;
00095 typedef Response ResponseType;
00096 };
00097 }
00098
00099 namespace ros
00100 {
00101 namespace message_traits
00102 {
00103 template<class ContainerAllocator> struct IsMessage< ::navfn::SetCostmapRequest_<ContainerAllocator> > : public TrueType {};
00104 template<class ContainerAllocator> struct IsMessage< ::navfn::SetCostmapRequest_<ContainerAllocator> const> : public TrueType {};
00105 template<class ContainerAllocator>
00106 struct MD5Sum< ::navfn::SetCostmapRequest_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "370ec969cdb71f9cde7c7cbe0d752308";
00110 }
00111
00112 static const char* value(const ::navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00113 static const uint64_t static_value1 = 0x370ec969cdb71f9cULL;
00114 static const uint64_t static_value2 = 0xde7c7cbe0d752308ULL;
00115 };
00116
00117 template<class ContainerAllocator>
00118 struct DataType< ::navfn::SetCostmapRequest_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "navfn/SetCostmapRequest";
00122 }
00123
00124 static const char* value(const ::navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct Definition< ::navfn::SetCostmapRequest_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "uint8[] costs\n\
00132 uint16 height\n\
00133 uint16 width\n\
00134 \n\
00135 ";
00136 }
00137
00138 static const char* value(const ::navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 }
00142 }
00143
00144
00145 namespace ros
00146 {
00147 namespace message_traits
00148 {
00149 template<class ContainerAllocator> struct IsMessage< ::navfn::SetCostmapResponse_<ContainerAllocator> > : public TrueType {};
00150 template<class ContainerAllocator> struct IsMessage< ::navfn::SetCostmapResponse_<ContainerAllocator> const> : public TrueType {};
00151 template<class ContainerAllocator>
00152 struct MD5Sum< ::navfn::SetCostmapResponse_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "d41d8cd98f00b204e9800998ecf8427e";
00156 }
00157
00158 static const char* value(const ::navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00159 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00160 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00161 };
00162
00163 template<class ContainerAllocator>
00164 struct DataType< ::navfn::SetCostmapResponse_<ContainerAllocator> > {
00165 static const char* value()
00166 {
00167 return "navfn/SetCostmapResponse";
00168 }
00169
00170 static const char* value(const ::navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00171 };
00172
00173 template<class ContainerAllocator>
00174 struct Definition< ::navfn::SetCostmapResponse_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "\n\
00178 ";
00179 }
00180
00181 static const char* value(const ::navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00182 };
00183
00184 template<class ContainerAllocator> struct IsFixedSize< ::navfn::SetCostmapResponse_<ContainerAllocator> > : public TrueType {};
00185 }
00186 }
00187
00188 namespace ros
00189 {
00190 namespace serialization
00191 {
00192
00193 template<class ContainerAllocator> struct Serializer< ::navfn::SetCostmapRequest_<ContainerAllocator> >
00194 {
00195 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00196 {
00197 stream.next(m.costs);
00198 stream.next(m.height);
00199 stream.next(m.width);
00200 }
00201
00202 ROS_DECLARE_ALLINONE_SERIALIZER;
00203 };
00204 }
00205 }
00206
00207
00208 namespace ros
00209 {
00210 namespace serialization
00211 {
00212
00213 template<class ContainerAllocator> struct Serializer< ::navfn::SetCostmapResponse_<ContainerAllocator> >
00214 {
00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00216 {
00217 }
00218
00219 ROS_DECLARE_ALLINONE_SERIALIZER;
00220 };
00221 }
00222 }
00223
00224 namespace ros
00225 {
00226 namespace service_traits
00227 {
00228 template<>
00229 struct MD5Sum<navfn::SetCostmap> {
00230 static const char* value()
00231 {
00232 return "370ec969cdb71f9cde7c7cbe0d752308";
00233 }
00234
00235 static const char* value(const navfn::SetCostmap&) { return value(); }
00236 };
00237
00238 template<>
00239 struct DataType<navfn::SetCostmap> {
00240 static const char* value()
00241 {
00242 return "navfn/SetCostmap";
00243 }
00244
00245 static const char* value(const navfn::SetCostmap&) { return value(); }
00246 };
00247
00248 template<class ContainerAllocator>
00249 struct MD5Sum<navfn::SetCostmapRequest_<ContainerAllocator> > {
00250 static const char* value()
00251 {
00252 return "370ec969cdb71f9cde7c7cbe0d752308";
00253 }
00254
00255 static const char* value(const navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00256 };
00257
00258 template<class ContainerAllocator>
00259 struct DataType<navfn::SetCostmapRequest_<ContainerAllocator> > {
00260 static const char* value()
00261 {
00262 return "navfn/SetCostmap";
00263 }
00264
00265 static const char* value(const navfn::SetCostmapRequest_<ContainerAllocator> &) { return value(); }
00266 };
00267
00268 template<class ContainerAllocator>
00269 struct MD5Sum<navfn::SetCostmapResponse_<ContainerAllocator> > {
00270 static const char* value()
00271 {
00272 return "370ec969cdb71f9cde7c7cbe0d752308";
00273 }
00274
00275 static const char* value(const navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00276 };
00277
00278 template<class ContainerAllocator>
00279 struct DataType<navfn::SetCostmapResponse_<ContainerAllocator> > {
00280 static const char* value()
00281 {
00282 return "navfn/SetCostmap";
00283 }
00284
00285 static const char* value(const navfn::SetCostmapResponse_<ContainerAllocator> &) { return value(); }
00286 };
00287
00288 }
00289 }
00290
00291 #endif // NAVFN_SERVICE_SETCOSTMAP_H
00292