ROS Serial library for Mbed platforms for ROS Indigo Igloo. Check http://wiki.ros.org/rosserial_mbed/ for more information
Dependents: rosserial_mbed_hello_world_publisher rtos_base_control rosserial_mbed_F64MA ROS-RTOS ... more
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 nav_msgs::OccupancyGrid map; 00043 00044 GetMapResponse(): 00045 map() 00046 { 00047 } 00048 00049 virtual int serialize(unsigned char *outbuffer) const 00050 { 00051 int offset = 0; 00052 offset += this->map.serialize(outbuffer + offset); 00053 return offset; 00054 } 00055 00056 virtual int deserialize(unsigned char *inbuffer) 00057 { 00058 int offset = 0; 00059 offset += this->map.deserialize(inbuffer + offset); 00060 return offset; 00061 } 00062 00063 const char * getType(){ return GETMAP; }; 00064 const char * getMD5(){ return "6cdd0a18e0aff5b0a3ca2326a89b54ff"; }; 00065 00066 }; 00067 00068 class GetMap { 00069 public: 00070 typedef GetMapRequest Request; 00071 typedef GetMapResponse Response; 00072 }; 00073 00074 } 00075 #endif
Generated on Tue Jul 12 2022 18:39:39 by 1.7.2