Project

General

Profile

Statistics
| Branch: | Revision:

root / quad2 / arduino / src / ros_lib / nav_msgs / GetMap.h @ c1426757

History | View | Annotate | Download (1.29 KB)

1
#ifndef _ROS_SERVICE_GetMap_h
2
#define _ROS_SERVICE_GetMap_h
3
#include <stdint.h>
4
#include <string.h>
5
#include <stdlib.h>
6
#include "ros/msg.h"
7
#include "nav_msgs/OccupancyGrid.h"
8

    
9
namespace nav_msgs
10
{
11

    
12
static const char GETMAP[] = "nav_msgs/GetMap";
13

    
14
  class GetMapRequest : public ros::Msg
15
  {
16
    public:
17

    
18
    virtual int serialize(unsigned char *outbuffer) const
19
    {
20
      int offset = 0;
21
      return offset;
22
    }
23

    
24
    virtual int deserialize(unsigned char *inbuffer)
25
    {
26
      int offset = 0;
27
     return offset;
28
    }
29

    
30
    const char * getType(){ return GETMAP; };
31
    const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; };
32

    
33
  };
34

    
35
  class GetMapResponse : public ros::Msg
36
  {
37
    public:
38
      nav_msgs::OccupancyGrid map;
39

    
40
    virtual int serialize(unsigned char *outbuffer) const
41
    {
42
      int offset = 0;
43
      offset += this->map.serialize(outbuffer + offset);
44
      return offset;
45
    }
46

    
47
    virtual int deserialize(unsigned char *inbuffer)
48
    {
49
      int offset = 0;
50
      offset += this->map.deserialize(inbuffer + offset);
51
     return offset;
52
    }
53

    
54
    const char * getType(){ return GETMAP; };
55
    const char * getMD5(){ return "6cdd0a18e0aff5b0a3ca2326a89b54ff"; };
56

    
57
  };
58

    
59
  class GetMap {
60
    public:
61
    typedef GetMapRequest Request;
62
    typedef GetMapResponse Response;
63
  };
64

    
65
}
66
#endif