kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Twist.h
Go to the documentation of this file.
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"
9 
10 namespace geometry_msgs
11 {
12 
13  class Twist : public ros::Msg
14  {
15  public:
18 
19  Twist():
20  linear(),
21  angular()
22  {
23  }
24 
25  virtual int serialize(unsigned char *outbuffer) const
26  {
27  int offset = 0;
28  offset += this->linear.serialize(outbuffer + offset);
29  offset += this->angular.serialize(outbuffer + offset);
30  return offset;
31  }
32 
33  virtual int deserialize(unsigned char *inbuffer)
34  {
35  int offset = 0;
36  offset += this->linear.deserialize(inbuffer + offset);
37  offset += this->angular.deserialize(inbuffer + offset);
38  return offset;
39  }
40 
41  const char * getType(){ return "geometry_msgs/Twist"; };
42  const char * getMD5(){ return "9f195f881246fdfa2798d1d3eebca84a"; };
43 
44  };
45 
46 }
47 #endif
const char * getMD5()
Definition: Twist.h:42
geometry_msgs::Vector3 angular
Definition: Twist.h:17
virtual int deserialize(unsigned char *inbuffer)
Definition: Vector3.h:35
Definition: Vector3.h:12
virtual int deserialize(unsigned char *inbuffer)
Definition: Twist.h:33
geometry_msgs::Vector3 linear
Definition: Twist.h:16
virtual int serialize(unsigned char *outbuffer) const
Definition: Twist.h:25
Twist()
Definition: Twist.h:19
Definition: Twist.h:13
Definition: msg.h:43
const char * getType()
Definition: Twist.h:41
virtual int serialize(unsigned char *outbuffer) const
Definition: Vector3.h:26