kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
TestRequestResult.h
Go to the documentation of this file.
1 #ifndef _ROS_actionlib_TestRequestResult_h
2 #define _ROS_actionlib_TestRequestResult_h
3 
4 #include <stdint.h>
5 #include <string.h>
6 #include <stdlib.h>
7 #include "ros/msg.h"
8 
9 namespace actionlib
10 {
11 
12  class TestRequestResult : public ros::Msg
13  {
14  public:
15  int32_t the_result;
17 
19  the_result(0),
21  {
22  }
23 
24  virtual int serialize(unsigned char *outbuffer) const
25  {
26  int offset = 0;
27  union {
28  int32_t real;
29  uint32_t base;
30  } u_the_result;
31  u_the_result.real = this->the_result;
32  *(outbuffer + offset + 0) = (u_the_result.base >> (8 * 0)) & 0xFF;
33  *(outbuffer + offset + 1) = (u_the_result.base >> (8 * 1)) & 0xFF;
34  *(outbuffer + offset + 2) = (u_the_result.base >> (8 * 2)) & 0xFF;
35  *(outbuffer + offset + 3) = (u_the_result.base >> (8 * 3)) & 0xFF;
36  offset += sizeof(this->the_result);
37  union {
38  bool real;
39  uint8_t base;
40  } u_is_simple_server;
41  u_is_simple_server.real = this->is_simple_server;
42  *(outbuffer + offset + 0) = (u_is_simple_server.base >> (8 * 0)) & 0xFF;
43  offset += sizeof(this->is_simple_server);
44  return offset;
45  }
46 
47  virtual int deserialize(unsigned char *inbuffer)
48  {
49  int offset = 0;
50  union {
51  int32_t real;
52  uint32_t base;
53  } u_the_result;
54  u_the_result.base = 0;
55  u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
56  u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
57  u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
58  u_the_result.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
59  this->the_result = u_the_result.real;
60  offset += sizeof(this->the_result);
61  union {
62  bool real;
63  uint8_t base;
64  } u_is_simple_server;
65  u_is_simple_server.base = 0;
66  u_is_simple_server.base |= ((uint8_t) (*(inbuffer + offset + 0))) << (8 * 0);
67  this->is_simple_server = u_is_simple_server.real;
68  offset += sizeof(this->is_simple_server);
69  return offset;
70  }
71 
72  const char * getType(){ return "actionlib/TestRequestResult"; };
73  const char * getMD5(){ return "61c2364524499c7c5017e2f3fce7ba06"; };
74 
75  };
76 
77 }
78 #endif
const char * getMD5()
Definition: TestRequestResult.h:73
Definition: TestRequestResult.h:12
int32_t the_result
Definition: TestRequestResult.h:15
TestRequestResult()
Definition: TestRequestResult.h:18
const char * getType()
Definition: TestRequestResult.h:72
bool is_simple_server
Definition: TestRequestResult.h:16
virtual int deserialize(unsigned char *inbuffer)
Definition: TestRequestResult.h:47
Definition: msg.h:43
virtual int serialize(unsigned char *outbuffer) const
Definition: TestRequestResult.h:24