kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
TwoIntsGoal.h
Go to the documentation of this file.
1 #ifndef _ROS_actionlib_TwoIntsGoal_h
2 #define _ROS_actionlib_TwoIntsGoal_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 TwoIntsGoal : public ros::Msg
13  {
14  public:
15  int64_t a;
16  int64_t b;
17 
19  a(0),
20  b(0)
21  {
22  }
23 
24  virtual int serialize(unsigned char *outbuffer) const
25  {
26  int offset = 0;
27  union {
28  int64_t real;
29  uint64_t base;
30  } u_a;
31  u_a.real = this->a;
32  *(outbuffer + offset + 0) = (u_a.base >> (8 * 0)) & 0xFF;
33  *(outbuffer + offset + 1) = (u_a.base >> (8 * 1)) & 0xFF;
34  *(outbuffer + offset + 2) = (u_a.base >> (8 * 2)) & 0xFF;
35  *(outbuffer + offset + 3) = (u_a.base >> (8 * 3)) & 0xFF;
36  *(outbuffer + offset + 4) = (u_a.base >> (8 * 4)) & 0xFF;
37  *(outbuffer + offset + 5) = (u_a.base >> (8 * 5)) & 0xFF;
38  *(outbuffer + offset + 6) = (u_a.base >> (8 * 6)) & 0xFF;
39  *(outbuffer + offset + 7) = (u_a.base >> (8 * 7)) & 0xFF;
40  offset += sizeof(this->a);
41  union {
42  int64_t real;
43  uint64_t base;
44  } u_b;
45  u_b.real = this->b;
46  *(outbuffer + offset + 0) = (u_b.base >> (8 * 0)) & 0xFF;
47  *(outbuffer + offset + 1) = (u_b.base >> (8 * 1)) & 0xFF;
48  *(outbuffer + offset + 2) = (u_b.base >> (8 * 2)) & 0xFF;
49  *(outbuffer + offset + 3) = (u_b.base >> (8 * 3)) & 0xFF;
50  *(outbuffer + offset + 4) = (u_b.base >> (8 * 4)) & 0xFF;
51  *(outbuffer + offset + 5) = (u_b.base >> (8 * 5)) & 0xFF;
52  *(outbuffer + offset + 6) = (u_b.base >> (8 * 6)) & 0xFF;
53  *(outbuffer + offset + 7) = (u_b.base >> (8 * 7)) & 0xFF;
54  offset += sizeof(this->b);
55  return offset;
56  }
57 
58  virtual int deserialize(unsigned char *inbuffer)
59  {
60  int offset = 0;
61  union {
62  int64_t real;
63  uint64_t base;
64  } u_a;
65  u_a.base = 0;
66  u_a.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
67  u_a.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
68  u_a.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
69  u_a.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
70  u_a.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
71  u_a.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
72  u_a.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
73  u_a.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
74  this->a = u_a.real;
75  offset += sizeof(this->a);
76  union {
77  int64_t real;
78  uint64_t base;
79  } u_b;
80  u_b.base = 0;
81  u_b.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
82  u_b.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
83  u_b.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
84  u_b.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
85  u_b.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
86  u_b.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
87  u_b.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
88  u_b.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
89  this->b = u_b.real;
90  offset += sizeof(this->b);
91  return offset;
92  }
93 
94  const char * getType(){ return "actionlib/TwoIntsGoal"; };
95  const char * getMD5(){ return "36d09b846be0b371c5f190354dd3153e"; };
96 
97  };
98 
99 }
100 #endif
int64_t b
Definition: TwoIntsGoal.h:16
virtual int deserialize(unsigned char *inbuffer)
Definition: TwoIntsGoal.h:58
TwoIntsGoal()
Definition: TwoIntsGoal.h:18
const char * getType()
Definition: TwoIntsGoal.h:94
int64_t a
Definition: TwoIntsGoal.h:15
Definition: TwoIntsGoal.h:12
const char * getMD5()
Definition: TwoIntsGoal.h:95
virtual int serialize(unsigned char *outbuffer) const
Definition: TwoIntsGoal.h:24
Definition: msg.h:43