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