kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Plane.h
Go to the documentation of this file.
1 #ifndef _ROS_shape_msgs_Plane_h
2 #define _ROS_shape_msgs_Plane_h
3 
4 #include <stdint.h>
5 #include <string.h>
6 #include <stdlib.h>
7 #include "ros/msg.h"
8 
9 namespace shape_msgs
10 {
11 
12  class Plane : public ros::Msg
13  {
14  public:
15  float coef[4];
16 
17  Plane():
18  coef()
19  {
20  }
21 
22  virtual int serialize(unsigned char *outbuffer) const
23  {
24  int offset = 0;
25  for( uint8_t i = 0; i < 4; i++){
26  offset += serializeAvrFloat64(outbuffer + offset, this->coef[i]);
27  }
28  return offset;
29  }
30 
31  virtual int deserialize(unsigned char *inbuffer)
32  {
33  int offset = 0;
34  for( uint8_t i = 0; i < 4; i++){
35  offset += deserializeAvrFloat64(inbuffer + offset, &(this->coef[i]));
36  }
37  return offset;
38  }
39 
40  const char * getType(){ return "shape_msgs/Plane"; };
41  const char * getMD5(){ return "2c1b92ed8f31492f8e73f6a4a44ca796"; };
42 
43  };
44 
45 }
46 #endif
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
const char * getMD5()
Definition: Plane.h:41
Plane()
Definition: Plane.h:17
float coef[4]
Definition: Plane.h:15
const char * getType()
Definition: Plane.h:40
Definition: Plane.h:12
Definition: msg.h:43
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
virtual int deserialize(unsigned char *inbuffer)
Definition: Plane.h:31
virtual int serialize(unsigned char *outbuffer) const
Definition: Plane.h:22