-
Notifications
You must be signed in to change notification settings - Fork 0
/
lino_imu.h
54 lines (45 loc) · 1.43 KB
/
lino_imu.h
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
#ifndef _ROS_lino_msgs_Imu_h
#define _ROS_lino_msgs_Imu_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "geometry_msgs/Vector3.h"
namespace lino_msgs
{
class Imu : public ros::Msg
{
public:
typedef geometry_msgs::Vector3 _linear_acceleration_type;
_linear_acceleration_type linear_acceleration;
typedef geometry_msgs::Vector3 _angular_velocity_type;
_angular_velocity_type angular_velocity;
typedef geometry_msgs::Vector3 _magnetic_field_type;
_magnetic_field_type magnetic_field;
Imu():
linear_acceleration(),
angular_velocity(),
magnetic_field()
{
}
virtual int serialize(unsigned char *outbuffer) const
{
int offset = 0;
offset += this->linear_acceleration.serialize(outbuffer + offset);
offset += this->angular_velocity.serialize(outbuffer + offset);
offset += this->magnetic_field.serialize(outbuffer + offset);
return offset;
}
virtual int deserialize(unsigned char *inbuffer)
{
int offset = 0;
offset += this->linear_acceleration.deserialize(inbuffer + offset);
offset += this->angular_velocity.deserialize(inbuffer + offset);
offset += this->magnetic_field.deserialize(inbuffer + offset);
return offset;
}
const char * getType(){ return "lino_msgs/Imu"; };
const char * getMD5(){ return "275110405f08e1b7c0c0f1aba3e19c67"; };
};
}
#endif