ROS Serial library for Mbed platforms for ROS Indigo Igloo. Check http://wiki.ros.org/rosserial_mbed/ for more information

Dependencies:   BufferedSerial

Dependents:   rosserial_mbed_hello_world_publisher rtos_base_control rosserial_mbed_F64MA ROS-RTOS ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SaveMap.h Source File

SaveMap.h

00001 #ifndef _ROS_SERVICE_SaveMap_h
00002 #define _ROS_SERVICE_SaveMap_h
00003 #include <stdint.h>
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include "ros/msg.h"
00007 #include "std_msgs/String.h"
00008 
00009 namespace map_msgs
00010 {
00011 
00012 static const char SAVEMAP[] = "map_msgs/SaveMap";
00013 
00014   class SaveMapRequest : public ros::Msg
00015   {
00016     public:
00017       std_msgs::String filename;
00018 
00019     SaveMapRequest():
00020       filename()
00021     {
00022     }
00023 
00024     virtual int serialize(unsigned char *outbuffer) const
00025     {
00026       int offset = 0;
00027       offset += this->filename.serialize(outbuffer + offset);
00028       return offset;
00029     }
00030 
00031     virtual int deserialize(unsigned char *inbuffer)
00032     {
00033       int offset = 0;
00034       offset += this->filename.deserialize(inbuffer + offset);
00035      return offset;
00036     }
00037 
00038     const char * getType(){ return SAVEMAP; };
00039     const char * getMD5(){ return "716e25f9d9dc76ceba197f93cbf05dc7"; };
00040 
00041   };
00042 
00043   class SaveMapResponse : public ros::Msg
00044   {
00045     public:
00046 
00047     SaveMapResponse()
00048     {
00049     }
00050 
00051     virtual int serialize(unsigned char *outbuffer) const
00052     {
00053       int offset = 0;
00054       return offset;
00055     }
00056 
00057     virtual int deserialize(unsigned char *inbuffer)
00058     {
00059       int offset = 0;
00060      return offset;
00061     }
00062 
00063     const char * getType(){ return SAVEMAP; };
00064     const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
00065 
00066   };
00067 
00068   class SaveMap {
00069     public:
00070     typedef SaveMapRequest Request;
00071     typedef SaveMapResponse Response;
00072   };
00073 
00074 }
00075 #endif