kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Inertia.h
Go to the documentation of this file.
1 #ifndef _ROS_geometry_msgs_Inertia_h
2 #define _ROS_geometry_msgs_Inertia_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 Inertia : public ros::Msg
14  {
15  public:
16  float m;
18  float ixx;
19  float ixy;
20  float ixz;
21  float iyy;
22  float iyz;
23  float izz;
24 
26  m(0),
27  com(),
28  ixx(0),
29  ixy(0),
30  ixz(0),
31  iyy(0),
32  iyz(0),
33  izz(0)
34  {
35  }
36 
37  virtual int serialize(unsigned char *outbuffer) const
38  {
39  int offset = 0;
40  offset += serializeAvrFloat64(outbuffer + offset, this->m);
41  offset += this->com.serialize(outbuffer + offset);
42  offset += serializeAvrFloat64(outbuffer + offset, this->ixx);
43  offset += serializeAvrFloat64(outbuffer + offset, this->ixy);
44  offset += serializeAvrFloat64(outbuffer + offset, this->ixz);
45  offset += serializeAvrFloat64(outbuffer + offset, this->iyy);
46  offset += serializeAvrFloat64(outbuffer + offset, this->iyz);
47  offset += serializeAvrFloat64(outbuffer + offset, this->izz);
48  return offset;
49  }
50 
51  virtual int deserialize(unsigned char *inbuffer)
52  {
53  int offset = 0;
54  offset += deserializeAvrFloat64(inbuffer + offset, &(this->m));
55  offset += this->com.deserialize(inbuffer + offset);
56  offset += deserializeAvrFloat64(inbuffer + offset, &(this->ixx));
57  offset += deserializeAvrFloat64(inbuffer + offset, &(this->ixy));
58  offset += deserializeAvrFloat64(inbuffer + offset, &(this->ixz));
59  offset += deserializeAvrFloat64(inbuffer + offset, &(this->iyy));
60  offset += deserializeAvrFloat64(inbuffer + offset, &(this->iyz));
61  offset += deserializeAvrFloat64(inbuffer + offset, &(this->izz));
62  return offset;
63  }
64 
65  const char * getType(){ return "geometry_msgs/Inertia"; };
66  const char * getMD5(){ return "1d26e4bb6c83ff141c5cf0d883c2b0fe"; };
67 
68  };
69 
70 }
71 #endif
geometry_msgs::Vector3 com
Definition: Inertia.h:17
static int serializeAvrFloat64(unsigned char *outbuffer, const float f)
This tricky function handles promoting a 32bit float to a 64bit double, so that AVR can publish messa...
Definition: msg.h:62
Inertia()
Definition: Inertia.h:25
virtual int deserialize(unsigned char *inbuffer)
Definition: Vector3.h:35
const char * getMD5()
Definition: Inertia.h:66
Definition: Vector3.h:12
float ixy
Definition: Inertia.h:19
virtual int deserialize(unsigned char *inbuffer)
Definition: Inertia.h:51
float iyy
Definition: Inertia.h:21
virtual int serialize(unsigned char *outbuffer) const
Definition: Inertia.h:37
float iyz
Definition: Inertia.h:22
float m
Definition: Inertia.h:16
float ixz
Definition: Inertia.h:20
const char * getType()
Definition: Inertia.h:65
float ixx
Definition: Inertia.h:18
Definition: msg.h:43
Definition: Inertia.h:13
static int deserializeAvrFloat64(const unsigned char *inbuffer, float *f)
This tricky function handles demoting a 64bit double to a 32bit float, so that AVR can understand mes...
Definition: msg.h:100
float izz
Definition: Inertia.h:23
virtual int serialize(unsigned char *outbuffer) const
Definition: Vector3.h:26