00001
00002 #ifndef NAV_MSGS_SERVICE_GETMAP_H
00003 #define NAV_MSGS_SERVICE_GETMAP_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 "nav_msgs/OccupancyGrid.h"
00018
00019 namespace nav_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GetMapRequest_ : public ros::Message
00023 {
00024 typedef GetMapRequest_<ContainerAllocator> Type;
00025
00026 GetMapRequest_()
00027 {
00028 }
00029
00030 GetMapRequest_(const ContainerAllocator& _alloc)
00031 {
00032 }
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "nav_msgs/GetMapRequest"; }
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 "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }
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< ::nav_msgs::GetMapRequest_<ContainerAllocator> > Ptr;
00084 typedef boost::shared_ptr< ::nav_msgs::GetMapRequest_<ContainerAllocator> const> ConstPtr;
00085 };
00086 typedef ::nav_msgs::GetMapRequest_<std::allocator<void> > GetMapRequest;
00087
00088 typedef boost::shared_ptr< ::nav_msgs::GetMapRequest> GetMapRequestPtr;
00089 typedef boost::shared_ptr< ::nav_msgs::GetMapRequest const> GetMapRequestConstPtr;
00090
00091
00092 template <class ContainerAllocator>
00093 struct GetMapResponse_ : public ros::Message
00094 {
00095 typedef GetMapResponse_<ContainerAllocator> Type;
00096
00097 GetMapResponse_()
00098 : map()
00099 {
00100 }
00101
00102 GetMapResponse_(const ContainerAllocator& _alloc)
00103 : map(_alloc)
00104 {
00105 }
00106
00107 typedef ::nav_msgs::OccupancyGrid_<ContainerAllocator> _map_type;
00108 ::nav_msgs::OccupancyGrid_<ContainerAllocator> map;
00109
00110
00111 private:
00112 static const char* __s_getDataType_() { return "nav_msgs/GetMapResponse"; }
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 "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }
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 "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }
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 "nav_msgs/OccupancyGrid map\n\
00134 \n\
00135 \n\
00136 ================================================================================\n\
00137 MSG: nav_msgs/OccupancyGrid\n\
00138 # This represents a 2-D grid map, in which each cell represents the probability of\n\
00139 # occupancy.\n\
00140 \n\
00141 Header header \n\
00142 \n\
00143 #MetaData for the map\n\
00144 MapMetaData info\n\
00145 \n\
00146 # The map data, in row-major order, starting with (0,0). Occupancy\n\
00147 # probabilities are in the range [0,100]. Unknown is -1.\n\
00148 int8[] data\n\
00149 \n\
00150 ================================================================================\n\
00151 MSG: std_msgs/Header\n\
00152 # Standard metadata for higher-level stamped data types.\n\
00153 # This is generally used to communicate timestamped data \n\
00154 # in a particular coordinate frame.\n\
00155 # \n\
00156 # sequence ID: consecutively increasing ID \n\
00157 uint32 seq\n\
00158 #Two-integer timestamp that is expressed as:\n\
00159 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00160 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00161 # time-handling sugar is provided by the client library\n\
00162 time stamp\n\
00163 #Frame this data is associated with\n\
00164 # 0: no frame\n\
00165 # 1: global frame\n\
00166 string frame_id\n\
00167 \n\
00168 ================================================================================\n\
00169 MSG: nav_msgs/MapMetaData\n\
00170 # This hold basic information about the characterists of the OccupancyGrid\n\
00171 \n\
00172 # The time at which the map was loaded\n\
00173 time map_load_time\n\
00174 # The map resolution [m/cell]\n\
00175 float32 resolution\n\
00176 # Map width [cells]\n\
00177 uint32 width\n\
00178 # Map height [cells]\n\
00179 uint32 height\n\
00180 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00181 # cell (0,0) in the map.\n\
00182 geometry_msgs/Pose origin\n\
00183 ================================================================================\n\
00184 MSG: geometry_msgs/Pose\n\
00185 # A representation of pose in free space, composed of postion and orientation. \n\
00186 Point position\n\
00187 Quaternion orientation\n\
00188 \n\
00189 ================================================================================\n\
00190 MSG: geometry_msgs/Point\n\
00191 # This contains the position of a point in free space\n\
00192 float64 x\n\
00193 float64 y\n\
00194 float64 z\n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: geometry_msgs/Quaternion\n\
00198 # This represents an orientation in free space in quaternion form.\n\
00199 \n\
00200 float64 x\n\
00201 float64 y\n\
00202 float64 z\n\
00203 float64 w\n\
00204 \n\
00205 "; }
00206 public:
00207 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00208
00209 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00210
00211 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00212 {
00213 ros::serialization::OStream stream(write_ptr, 1000000000);
00214 ros::serialization::serialize(stream, map);
00215 return stream.getData();
00216 }
00217
00218 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00219 {
00220 ros::serialization::IStream stream(read_ptr, 1000000000);
00221 ros::serialization::deserialize(stream, map);
00222 return stream.getData();
00223 }
00224
00225 ROS_DEPRECATED virtual uint32_t serializationLength() const
00226 {
00227 uint32_t size = 0;
00228 size += ros::serialization::serializationLength(map);
00229 return size;
00230 }
00231
00232 typedef boost::shared_ptr< ::nav_msgs::GetMapResponse_<ContainerAllocator> > Ptr;
00233 typedef boost::shared_ptr< ::nav_msgs::GetMapResponse_<ContainerAllocator> const> ConstPtr;
00234 };
00235 typedef ::nav_msgs::GetMapResponse_<std::allocator<void> > GetMapResponse;
00236
00237 typedef boost::shared_ptr< ::nav_msgs::GetMapResponse> GetMapResponsePtr;
00238 typedef boost::shared_ptr< ::nav_msgs::GetMapResponse const> GetMapResponseConstPtr;
00239
00240 struct GetMap
00241 {
00242
00243 typedef GetMapRequest Request;
00244 typedef GetMapResponse Response;
00245 Request request;
00246 Response response;
00247
00248 typedef Request RequestType;
00249 typedef Response ResponseType;
00250 };
00251 }
00252
00253 namespace ros
00254 {
00255 namespace message_traits
00256 {
00257 template<class ContainerAllocator>
00258 struct MD5Sum< ::nav_msgs::GetMapRequest_<ContainerAllocator> > {
00259 static const char* value()
00260 {
00261 return "d41d8cd98f00b204e9800998ecf8427e";
00262 }
00263
00264 static const char* value(const ::nav_msgs::GetMapRequest_<ContainerAllocator> &) { return value(); }
00265 static const uint64_t static_value1 = 0xd41d8cd98f00b204ULL;
00266 static const uint64_t static_value2 = 0xe9800998ecf8427eULL;
00267 };
00268
00269 template<class ContainerAllocator>
00270 struct DataType< ::nav_msgs::GetMapRequest_<ContainerAllocator> > {
00271 static const char* value()
00272 {
00273 return "nav_msgs/GetMapRequest";
00274 }
00275
00276 static const char* value(const ::nav_msgs::GetMapRequest_<ContainerAllocator> &) { return value(); }
00277 };
00278
00279 template<class ContainerAllocator>
00280 struct Definition< ::nav_msgs::GetMapRequest_<ContainerAllocator> > {
00281 static const char* value()
00282 {
00283 return "\n\
00284 \n\
00285 ";
00286 }
00287
00288 static const char* value(const ::nav_msgs::GetMapRequest_<ContainerAllocator> &) { return value(); }
00289 };
00290
00291 template<class ContainerAllocator> struct IsFixedSize< ::nav_msgs::GetMapRequest_<ContainerAllocator> > : public TrueType {};
00292 }
00293 }
00294
00295
00296 namespace ros
00297 {
00298 namespace message_traits
00299 {
00300 template<class ContainerAllocator>
00301 struct MD5Sum< ::nav_msgs::GetMapResponse_<ContainerAllocator> > {
00302 static const char* value()
00303 {
00304 return "6cdd0a18e0aff5b0a3ca2326a89b54ff";
00305 }
00306
00307 static const char* value(const ::nav_msgs::GetMapResponse_<ContainerAllocator> &) { return value(); }
00308 static const uint64_t static_value1 = 0x6cdd0a18e0aff5b0ULL;
00309 static const uint64_t static_value2 = 0xa3ca2326a89b54ffULL;
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct DataType< ::nav_msgs::GetMapResponse_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "nav_msgs/GetMapResponse";
00317 }
00318
00319 static const char* value(const ::nav_msgs::GetMapResponse_<ContainerAllocator> &) { return value(); }
00320 };
00321
00322 template<class ContainerAllocator>
00323 struct Definition< ::nav_msgs::GetMapResponse_<ContainerAllocator> > {
00324 static const char* value()
00325 {
00326 return "nav_msgs/OccupancyGrid map\n\
00327 \n\
00328 \n\
00329 ================================================================================\n\
00330 MSG: nav_msgs/OccupancyGrid\n\
00331 # This represents a 2-D grid map, in which each cell represents the probability of\n\
00332 # occupancy.\n\
00333 \n\
00334 Header header \n\
00335 \n\
00336 #MetaData for the map\n\
00337 MapMetaData info\n\
00338 \n\
00339 # The map data, in row-major order, starting with (0,0). Occupancy\n\
00340 # probabilities are in the range [0,100]. Unknown is -1.\n\
00341 int8[] data\n\
00342 \n\
00343 ================================================================================\n\
00344 MSG: std_msgs/Header\n\
00345 # Standard metadata for higher-level stamped data types.\n\
00346 # This is generally used to communicate timestamped data \n\
00347 # in a particular coordinate frame.\n\
00348 # \n\
00349 # sequence ID: consecutively increasing ID \n\
00350 uint32 seq\n\
00351 #Two-integer timestamp that is expressed as:\n\
00352 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00353 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00354 # time-handling sugar is provided by the client library\n\
00355 time stamp\n\
00356 #Frame this data is associated with\n\
00357 # 0: no frame\n\
00358 # 1: global frame\n\
00359 string frame_id\n\
00360 \n\
00361 ================================================================================\n\
00362 MSG: nav_msgs/MapMetaData\n\
00363 # This hold basic information about the characterists of the OccupancyGrid\n\
00364 \n\
00365 # The time at which the map was loaded\n\
00366 time map_load_time\n\
00367 # The map resolution [m/cell]\n\
00368 float32 resolution\n\
00369 # Map width [cells]\n\
00370 uint32 width\n\
00371 # Map height [cells]\n\
00372 uint32 height\n\
00373 # The origin of the map [m, m, rad]. This is the real-world pose of the\n\
00374 # cell (0,0) in the map.\n\
00375 geometry_msgs/Pose origin\n\
00376 ================================================================================\n\
00377 MSG: geometry_msgs/Pose\n\
00378 # A representation of pose in free space, composed of postion and orientation. \n\
00379 Point position\n\
00380 Quaternion orientation\n\
00381 \n\
00382 ================================================================================\n\
00383 MSG: geometry_msgs/Point\n\
00384 # This contains the position of a point in free space\n\
00385 float64 x\n\
00386 float64 y\n\
00387 float64 z\n\
00388 \n\
00389 ================================================================================\n\
00390 MSG: geometry_msgs/Quaternion\n\
00391 # This represents an orientation in free space in quaternion form.\n\
00392 \n\
00393 float64 x\n\
00394 float64 y\n\
00395 float64 z\n\
00396 float64 w\n\
00397 \n\
00398 ";
00399 }
00400
00401 static const char* value(const ::nav_msgs::GetMapResponse_<ContainerAllocator> &) { return value(); }
00402 };
00403
00404 }
00405 }
00406
00407 namespace ros
00408 {
00409 namespace serialization
00410 {
00411
00412 template<class ContainerAllocator> struct Serializer< ::nav_msgs::GetMapRequest_<ContainerAllocator> >
00413 {
00414 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00415 {
00416 }
00417
00418 ROS_DECLARE_ALLINONE_SERIALIZER;
00419 };
00420 }
00421 }
00422
00423
00424 namespace ros
00425 {
00426 namespace serialization
00427 {
00428
00429 template<class ContainerAllocator> struct Serializer< ::nav_msgs::GetMapResponse_<ContainerAllocator> >
00430 {
00431 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00432 {
00433 stream.next(m.map);
00434 }
00435
00436 ROS_DECLARE_ALLINONE_SERIALIZER;
00437 };
00438 }
00439 }
00440
00441 namespace ros
00442 {
00443 namespace service_traits
00444 {
00445 template<>
00446 struct MD5Sum<nav_msgs::GetMap> {
00447 static const char* value()
00448 {
00449 return "6cdd0a18e0aff5b0a3ca2326a89b54ff";
00450 }
00451
00452 static const char* value(const nav_msgs::GetMap&) { return value(); }
00453 };
00454
00455 template<>
00456 struct DataType<nav_msgs::GetMap> {
00457 static const char* value()
00458 {
00459 return "nav_msgs/GetMap";
00460 }
00461
00462 static const char* value(const nav_msgs::GetMap&) { return value(); }
00463 };
00464
00465 template<class ContainerAllocator>
00466 struct MD5Sum<nav_msgs::GetMapRequest_<ContainerAllocator> > {
00467 static const char* value()
00468 {
00469 return "6cdd0a18e0aff5b0a3ca2326a89b54ff";
00470 }
00471
00472 static const char* value(const nav_msgs::GetMapRequest_<ContainerAllocator> &) { return value(); }
00473 };
00474
00475 template<class ContainerAllocator>
00476 struct DataType<nav_msgs::GetMapRequest_<ContainerAllocator> > {
00477 static const char* value()
00478 {
00479 return "nav_msgs/GetMap";
00480 }
00481
00482 static const char* value(const nav_msgs::GetMapRequest_<ContainerAllocator> &) { return value(); }
00483 };
00484
00485 template<class ContainerAllocator>
00486 struct MD5Sum<nav_msgs::GetMapResponse_<ContainerAllocator> > {
00487 static const char* value()
00488 {
00489 return "6cdd0a18e0aff5b0a3ca2326a89b54ff";
00490 }
00491
00492 static const char* value(const nav_msgs::GetMapResponse_<ContainerAllocator> &) { return value(); }
00493 };
00494
00495 template<class ContainerAllocator>
00496 struct DataType<nav_msgs::GetMapResponse_<ContainerAllocator> > {
00497 static const char* value()
00498 {
00499 return "nav_msgs/GetMap";
00500 }
00501
00502 static const char* value(const nav_msgs::GetMapResponse_<ContainerAllocator> &) { return value(); }
00503 };
00504
00505 }
00506 }
00507
00508 #endif // NAV_MSGS_SERVICE_GETMAP_H
00509