root / quad2 / arduino / src / ros_lib / geometry_msgs / Pose.h @ c1426757
History | View | Annotate | Download (1005 Bytes)
1 |
#ifndef _ROS_geometry_msgs_Pose_h
|
---|---|
2 |
#define _ROS_geometry_msgs_Pose_h
|
3 |
|
4 |
#include <stdint.h> |
5 |
#include <string.h> |
6 |
#include <stdlib.h> |
7 |
#include "ros/msg.h" |
8 |
#include "geometry_msgs/Point.h" |
9 |
#include "geometry_msgs/Quaternion.h" |
10 |
|
11 |
namespace geometry_msgs |
12 |
{ |
13 |
|
14 |
class Pose : public ros::Msg |
15 |
{ |
16 |
public:
|
17 |
geometry_msgs::Point position; |
18 |
geometry_msgs::Quaternion orientation; |
19 |
|
20 |
virtual int serialize(unsigned char *outbuffer) const |
21 |
{ |
22 |
int offset = 0; |
23 |
offset += this->position.serialize(outbuffer + offset); |
24 |
offset += this->orientation.serialize(outbuffer + offset); |
25 |
return offset;
|
26 |
} |
27 |
|
28 |
virtual int deserialize(unsigned char *inbuffer) |
29 |
{ |
30 |
int offset = 0; |
31 |
offset += this->position.deserialize(inbuffer + offset); |
32 |
offset += this->orientation.deserialize(inbuffer + offset); |
33 |
return offset;
|
34 |
} |
35 |
|
36 |
const char * getType(){ return "geometry_msgs/Pose"; }; |
37 |
const char * getMD5(){ return "e45d45a5a1ce597b249e23fb30fc871f"; }; |
38 |
|
39 |
}; |
40 |
|
41 |
} |
42 |
#endif
|