00001 #ifndef _ROS_SERVICE_GetMap_h 00002 #define _ROS_SERVICE_GetMap_h 00003 #include <stdint.h> 00004 #include <string.h> 00005 #include <stdlib.h> 00006 #include "ros/msg.h" 00007 #include "nav_msgs/OccupancyGrid.h" 00008 00009 namespace nav_msgs 00010 { 00011 00012 static const char GETMAP[] = "nav_msgs/GetMap"; 00013 00014 class GetMapRequest : public ros::Msg 00015 { 00016 public: 00017 00018 virtual int serialize(unsigned char *outbuffer) const 00019 { 00020 int offset = 0; 00021 return offset; 00022 } 00023 00024 virtual int deserialize(unsigned char *inbuffer) 00025 { 00026 int offset = 0; 00027 return offset; 00028 } 00029 00030 const char * getType(){ return GETMAP; }; 00031 const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00032 00033 }; 00034 00035 class GetMapResponse : public ros::Msg 00036 { 00037 public: 00038 nav_msgs::OccupancyGrid map; 00039 00040 virtual int serialize(unsigned char *outbuffer) const 00041 { 00042 int offset = 0; 00043 offset += this->map.serialize(outbuffer + offset); 00044 return offset; 00045 } 00046 00047 virtual int deserialize(unsigned char *inbuffer) 00048 { 00049 int offset = 0; 00050 offset += this->map.deserialize(inbuffer + offset); 00051 return offset; 00052 } 00053 00054 const char * getType(){ return GETMAP; }; 00055 const char * getMD5(){ return "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }; 00056 00057 }; 00058 00059 class GetMap { 00060 public: 00061 typedef GetMapRequest Request; 00062 typedef GetMapResponse Response; 00063 }; 00064 00065 } 00066 #endif