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