kitt_platform
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
GetPlan.h
Go to the documentation of this file.
1 #ifndef _ROS_SERVICE_GetPlan_h
2 #define _ROS_SERVICE_GetPlan_h
3 #include <stdint.h>
4 #include <string.h>
5 #include <stdlib.h>
6 #include "ros/msg.h"
8 #include "nav_msgs/Path.h"
9 
10 namespace nav_msgs
11 {
12 
13 static const char GETPLAN[] = "nav_msgs/GetPlan";
14 
15  class GetPlanRequest : public ros::Msg
16  {
17  public:
20  float tolerance;
21 
23  start(),
24  goal(),
25  tolerance(0)
26  {
27  }
28 
29  virtual int serialize(unsigned char *outbuffer) const
30  {
31  int offset = 0;
32  offset += this->start.serialize(outbuffer + offset);
33  offset += this->goal.serialize(outbuffer + offset);
34  union {
35  float real;
36  uint32_t base;
37  } u_tolerance;
38  u_tolerance.real = this->tolerance;
39  *(outbuffer + offset + 0) = (u_tolerance.base >> (8 * 0)) & 0xFF;
40  *(outbuffer + offset + 1) = (u_tolerance.base >> (8 * 1)) & 0xFF;
41  *(outbuffer + offset + 2) = (u_tolerance.base >> (8 * 2)) & 0xFF;
42  *(outbuffer + offset + 3) = (u_tolerance.base >> (8 * 3)) & 0xFF;
43  offset += sizeof(this->tolerance);
44  return offset;
45  }
46 
47  virtual int deserialize(unsigned char *inbuffer)
48  {
49  int offset = 0;
50  offset += this->start.deserialize(inbuffer + offset);
51  offset += this->goal.deserialize(inbuffer + offset);
52  union {
53  float real;
54  uint32_t base;
55  } u_tolerance;
56  u_tolerance.base = 0;
57  u_tolerance.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
58  u_tolerance.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
59  u_tolerance.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
60  u_tolerance.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
61  this->tolerance = u_tolerance.real;
62  offset += sizeof(this->tolerance);
63  return offset;
64  }
65 
66  const char * getType(){ return GETPLAN; };
67  const char * getMD5(){ return "e25a43e0752bcca599a8c2eef8282df8"; };
68 
69  };
70 
71  class GetPlanResponse : public ros::Msg
72  {
73  public:
75 
77  plan()
78  {
79  }
80 
81  virtual int serialize(unsigned char *outbuffer) const
82  {
83  int offset = 0;
84  offset += this->plan.serialize(outbuffer + offset);
85  return offset;
86  }
87 
88  virtual int deserialize(unsigned char *inbuffer)
89  {
90  int offset = 0;
91  offset += this->plan.deserialize(inbuffer + offset);
92  return offset;
93  }
94 
95  const char * getType(){ return GETPLAN; };
96  const char * getMD5(){ return "0002bc113c0259d71f6cf8cbc9430e18"; };
97 
98  };
99 
100  class GetPlan {
101  public:
104  };
105 
106 }
107 #endif
virtual int serialize(unsigned char *outbuffer) const
Definition: Path.h:28
const char * getType()
Definition: GetPlan.h:95
nav_msgs::Path plan
Definition: GetPlan.h:74
geometry_msgs::PoseStamped start
Definition: GetPlan.h:18
Definition: GetPlan.h:15
GetPlanResponse()
Definition: GetPlan.h:76
Definition: GetPlan.h:71
virtual int deserialize(unsigned char *inbuffer)
Definition: GetPlan.h:47
static const char GETPLAN[]
Definition: GetPlan.h:13
virtual int deserialize(unsigned char *inbuffer)
Definition: Path.h:42
virtual int deserialize(unsigned char *inbuffer)
Definition: PoseStamped.h:34
GetPlanRequest()
Definition: GetPlan.h:22
Definition: PoseStamped.h:14
GetPlanRequest Request
Definition: GetPlan.h:102
const char * getMD5()
Definition: GetPlan.h:96
GetPlanResponse Response
Definition: GetPlan.h:103
Definition: GetPlan.h:100
Definition: Path.h:14
const char * getType()
Definition: GetPlan.h:66
virtual int serialize(unsigned char *outbuffer) const
Definition: PoseStamped.h:26
const char * getMD5()
Definition: GetPlan.h:67
virtual int serialize(unsigned char *outbuffer) const
Definition: GetPlan.h:81
geometry_msgs::PoseStamped goal
Definition: GetPlan.h:19
virtual int deserialize(unsigned char *inbuffer)
Definition: GetPlan.h:88
Definition: msg.h:43
float tolerance
Definition: GetPlan.h:20
virtual int serialize(unsigned char *outbuffer) const
Definition: GetPlan.h:29