kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Char.h
Go to the documentation of this file.
1 #ifndef _ROS_std_msgs_Char_h
2 #define _ROS_std_msgs_Char_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 Char : public ros::Msg
13  {
14  public:
15  uint8_t data;
16 
17  Char():
18  data(0)
19  {
20  }
21 
22  virtual int serialize(unsigned char *outbuffer) const
23  {
24  int offset = 0;
25  *(outbuffer + offset + 0) = (this->data >> (8 * 0)) & 0xFF;
26  offset += sizeof(this->data);
27  return offset;
28  }
29 
30  virtual int deserialize(unsigned char *inbuffer)
31  {
32  int offset = 0;
33  this->data = ((uint8_t) (*(inbuffer + offset)));
34  offset += sizeof(this->data);
35  return offset;
36  }
37 
38  const char * getType(){ return "std_msgs/Char"; };
39  const char * getMD5(){ return "1bf77f25acecdedba0e224b162199717"; };
40 
41  };
42 
43 }
44 #endif
Char()
Definition: Char.h:17
uint8_t data
Definition: Char.h:15
const char * getMD5()
Definition: Char.h:39
const char * getType()
Definition: Char.h:38
Definition: Char.h:12
virtual int serialize(unsigned char *outbuffer) const
Definition: Char.h:22
virtual int deserialize(unsigned char *inbuffer)
Definition: Char.h:30
Definition: msg.h:43