kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
UInt8.h
Go to the documentation of this file.
1 #ifndef _ROS_std_msgs_UInt8_h
2 #define _ROS_std_msgs_UInt8_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 UInt8 : public ros::Msg
13  {
14  public:
15  uint8_t data;
16 
17  UInt8():
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/UInt8"; };
39  const char * getMD5(){ return "7c8164229e7d2c17eb95e9231617fdee"; };
40 
41  };
42 
43 }
44 #endif
uint8_t data
Definition: UInt8.h:15
Definition: UInt8.h:12
virtual int serialize(unsigned char *outbuffer) const
Definition: UInt8.h:22
UInt8()
Definition: UInt8.h:17
const char * getType()
Definition: UInt8.h:38
virtual int deserialize(unsigned char *inbuffer)
Definition: UInt8.h:30
Definition: msg.h:43
const char * getMD5()
Definition: UInt8.h:39