Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
GetMap.h
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 GetMapRequest() 00019 { 00020 } 00021 00022 virtual int serialize(unsigned char *outbuffer) const 00023 { 00024 int offset = 0; 00025 return offset; 00026 } 00027 00028 virtual int deserialize(unsigned char *inbuffer) 00029 { 00030 int offset = 0; 00031 return offset; 00032 } 00033 00034 const char * getType(){ return GETMAP; }; 00035 const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; 00036 00037 }; 00038 00039 class GetMapResponse : public ros::Msg 00040 { 00041 public: 00042 typedef nav_msgs::OccupancyGrid _map_type; 00043 _map_type map; 00044 00045 GetMapResponse(): 00046 map() 00047 { 00048 } 00049 00050 virtual int serialize(unsigned char *outbuffer) const 00051 { 00052 int offset = 0; 00053 offset += this->map.serialize(outbuffer + offset); 00054 return offset; 00055 } 00056 00057 virtual int deserialize(unsigned char *inbuffer) 00058 { 00059 int offset = 0; 00060 offset += this->map.deserialize(inbuffer + offset); 00061 return offset; 00062 } 00063 00064 const char * getType(){ return GETMAP; }; 00065 const char * getMD5(){ return "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }; 00066 00067 }; 00068 00069 class GetMap { 00070 public: 00071 typedef GetMapRequest Request; 00072 typedef GetMapResponse Response; 00073 }; 00074 00075 } 00076 #endif
Generated on Wed Jul 13 2022 23:30:17 by
