root / quad2 / arduino / src / ros_lib / roscpp / Empty.h @ c1426757
History | View | Annotate | Download (1.1 KB)
1 |
#ifndef _ROS_SERVICE_Empty_h
|
---|---|
2 |
#define _ROS_SERVICE_Empty_h
|
3 |
#include <stdint.h> |
4 |
#include <string.h> |
5 |
#include <stdlib.h> |
6 |
#include "ros/msg.h" |
7 |
|
8 |
namespace roscpp |
9 |
{ |
10 |
|
11 |
static const char EMPTY[] = "roscpp/Empty"; |
12 |
|
13 |
class EmptyRequest : public ros::Msg |
14 |
{ |
15 |
public:
|
16 |
|
17 |
virtual int serialize(unsigned char *outbuffer) const |
18 |
{ |
19 |
int offset = 0; |
20 |
return offset;
|
21 |
} |
22 |
|
23 |
virtual int deserialize(unsigned char *inbuffer) |
24 |
{ |
25 |
int offset = 0; |
26 |
return offset;
|
27 |
} |
28 |
|
29 |
const char * getType(){ return EMPTY; }; |
30 |
const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
31 |
|
32 |
}; |
33 |
|
34 |
class EmptyResponse : public ros::Msg |
35 |
{ |
36 |
public:
|
37 |
|
38 |
virtual int serialize(unsigned char *outbuffer) const |
39 |
{ |
40 |
int offset = 0; |
41 |
return offset;
|
42 |
} |
43 |
|
44 |
virtual int deserialize(unsigned char *inbuffer) |
45 |
{ |
46 |
int offset = 0; |
47 |
return offset;
|
48 |
} |
49 |
|
50 |
const char * getType(){ return EMPTY; }; |
51 |
const char * getMD5(){ return "d41d8cd98f00b204e9800998ecf8427e"; }; |
52 |
|
53 |
}; |
54 |
|
55 |
class Empty { |
56 |
public:
|
57 |
typedef EmptyRequest Request;
|
58 |
typedef EmptyResponse Response;
|
59 |
}; |
60 |
|
61 |
} |
62 |
#endif
|