Statistics
| Branch: | Revision:

root / quad2 / arduino / src / ros_lib / geometry_msgs / Twist.h @ c1426757

History | View | Annotate | Download (954 Bytes)

1
#ifndef _ROS_geometry_msgs_Twist_h
2
#define _ROS_geometry_msgs_Twist_h
3

    
4
#include <stdint.h>
5
#include <string.h>
6
#include <stdlib.h>
7
#include "ros/msg.h"
8
#include "geometry_msgs/Vector3.h"
9

    
10
namespace geometry_msgs
11
{
12

    
13
  class Twist : public ros::Msg
14
  {
15
    public:
16
      geometry_msgs::Vector3 linear;
17
      geometry_msgs::Vector3 angular;
18

    
19
    virtual int serialize(unsigned char *outbuffer) const
20
    {
21
      int offset = 0;
22
      offset += this->linear.serialize(outbuffer + offset);
23
      offset += this->angular.serialize(outbuffer + offset);
24
      return offset;
25
    }
26

    
27
    virtual int deserialize(unsigned char *inbuffer)
28
    {
29
      int offset = 0;
30
      offset += this->linear.deserialize(inbuffer + offset);
31
      offset += this->angular.deserialize(inbuffer + offset);
32
     return offset;
33
    }
34

    
35
    const char * getType(){ return "geometry_msgs/Twist"; };
36
    const char * getMD5(){ return "9f195f881246fdfa2798d1d3eebca84a"; };
37

    
38
  };
39

    
40
}
41
#endif