forked from rigbetellabs/tortoisebot_mini
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDiff.h
More file actions
60 lines (51 loc) · 1.49 KB
/
Copy pathDiff.h
File metadata and controls
60 lines (51 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef _ROS_tortoisebot_mini_Diff_h
#define _ROS_tortoisebot_mini_Diff_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "std_msgs/Bool.h"
#include "std_msgs/UInt8.h"
namespace tortoisebot_mini
{
class Diff : public ros::Msg
{
public:
typedef std_msgs::Bool _ldir_type;
_ldir_type ldir;
typedef std_msgs::UInt8 _lrpm_type;
_lrpm_type lrpm;
typedef std_msgs::Bool _rdir_type;
_rdir_type rdir;
typedef std_msgs::UInt8 _rrpm_type;
_rrpm_type rrpm;
Diff():
ldir(),
lrpm(),
rdir(),
rrpm()
{
}
virtual int serialize(unsigned char *outbuffer) const override
{
int offset = 0;
offset += this->ldir.serialize(outbuffer + offset);
offset += this->lrpm.serialize(outbuffer + offset);
offset += this->rdir.serialize(outbuffer + offset);
offset += this->rrpm.serialize(outbuffer + offset);
return offset;
}
virtual int deserialize(unsigned char *inbuffer) override
{
int offset = 0;
offset += this->ldir.deserialize(inbuffer + offset);
offset += this->lrpm.deserialize(inbuffer + offset);
offset += this->rdir.deserialize(inbuffer + offset);
offset += this->rrpm.deserialize(inbuffer + offset);
return offset;
}
virtual const char * getType() override { return "tortoisebot_mini/Diff"; };
virtual const char * getMD5() override { return "17139eb8b7396bd528f221202cbcec9c"; };
};
}
#endif