It has only one change from original one. I added robotfeedback message on it.

Dependencies:   BufferedSerial

Dependents:   RobotFeedback mobileRobotITU

Fork of ros_lib_indigo by Gary Servin

Committer:
garyservin
Date:
Thu Mar 31 14:22:59 2016 +0000
Revision:
0:fd24f7ca9688
Initial commit, generated based on a clean indigo-desktop-full

Who changed what in which revision?

UserRevisionLine numberNew contents of line
garyservin 0:fd24f7ca9688 1 #ifndef _ROS_SERVICE_GetPointMapROI_h
garyservin 0:fd24f7ca9688 2 #define _ROS_SERVICE_GetPointMapROI_h
garyservin 0:fd24f7ca9688 3 #include <stdint.h>
garyservin 0:fd24f7ca9688 4 #include <string.h>
garyservin 0:fd24f7ca9688 5 #include <stdlib.h>
garyservin 0:fd24f7ca9688 6 #include "ros/msg.h"
garyservin 0:fd24f7ca9688 7 #include "sensor_msgs/PointCloud2.h"
garyservin 0:fd24f7ca9688 8
garyservin 0:fd24f7ca9688 9 namespace map_msgs
garyservin 0:fd24f7ca9688 10 {
garyservin 0:fd24f7ca9688 11
garyservin 0:fd24f7ca9688 12 static const char GETPOINTMAPROI[] = "map_msgs/GetPointMapROI";
garyservin 0:fd24f7ca9688 13
garyservin 0:fd24f7ca9688 14 class GetPointMapROIRequest : public ros::Msg
garyservin 0:fd24f7ca9688 15 {
garyservin 0:fd24f7ca9688 16 public:
garyservin 0:fd24f7ca9688 17 double x;
garyservin 0:fd24f7ca9688 18 double y;
garyservin 0:fd24f7ca9688 19 double z;
garyservin 0:fd24f7ca9688 20 double r;
garyservin 0:fd24f7ca9688 21 double l_x;
garyservin 0:fd24f7ca9688 22 double l_y;
garyservin 0:fd24f7ca9688 23 double l_z;
garyservin 0:fd24f7ca9688 24
garyservin 0:fd24f7ca9688 25 GetPointMapROIRequest():
garyservin 0:fd24f7ca9688 26 x(0),
garyservin 0:fd24f7ca9688 27 y(0),
garyservin 0:fd24f7ca9688 28 z(0),
garyservin 0:fd24f7ca9688 29 r(0),
garyservin 0:fd24f7ca9688 30 l_x(0),
garyservin 0:fd24f7ca9688 31 l_y(0),
garyservin 0:fd24f7ca9688 32 l_z(0)
garyservin 0:fd24f7ca9688 33 {
garyservin 0:fd24f7ca9688 34 }
garyservin 0:fd24f7ca9688 35
garyservin 0:fd24f7ca9688 36 virtual int serialize(unsigned char *outbuffer) const
garyservin 0:fd24f7ca9688 37 {
garyservin 0:fd24f7ca9688 38 int offset = 0;
garyservin 0:fd24f7ca9688 39 union {
garyservin 0:fd24f7ca9688 40 double real;
garyservin 0:fd24f7ca9688 41 uint64_t base;
garyservin 0:fd24f7ca9688 42 } u_x;
garyservin 0:fd24f7ca9688 43 u_x.real = this->x;
garyservin 0:fd24f7ca9688 44 *(outbuffer + offset + 0) = (u_x.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 45 *(outbuffer + offset + 1) = (u_x.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 46 *(outbuffer + offset + 2) = (u_x.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 47 *(outbuffer + offset + 3) = (u_x.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 48 *(outbuffer + offset + 4) = (u_x.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 49 *(outbuffer + offset + 5) = (u_x.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 50 *(outbuffer + offset + 6) = (u_x.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 51 *(outbuffer + offset + 7) = (u_x.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 52 offset += sizeof(this->x);
garyservin 0:fd24f7ca9688 53 union {
garyservin 0:fd24f7ca9688 54 double real;
garyservin 0:fd24f7ca9688 55 uint64_t base;
garyservin 0:fd24f7ca9688 56 } u_y;
garyservin 0:fd24f7ca9688 57 u_y.real = this->y;
garyservin 0:fd24f7ca9688 58 *(outbuffer + offset + 0) = (u_y.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 59 *(outbuffer + offset + 1) = (u_y.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 60 *(outbuffer + offset + 2) = (u_y.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 61 *(outbuffer + offset + 3) = (u_y.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 62 *(outbuffer + offset + 4) = (u_y.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 63 *(outbuffer + offset + 5) = (u_y.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 64 *(outbuffer + offset + 6) = (u_y.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 65 *(outbuffer + offset + 7) = (u_y.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 66 offset += sizeof(this->y);
garyservin 0:fd24f7ca9688 67 union {
garyservin 0:fd24f7ca9688 68 double real;
garyservin 0:fd24f7ca9688 69 uint64_t base;
garyservin 0:fd24f7ca9688 70 } u_z;
garyservin 0:fd24f7ca9688 71 u_z.real = this->z;
garyservin 0:fd24f7ca9688 72 *(outbuffer + offset + 0) = (u_z.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 73 *(outbuffer + offset + 1) = (u_z.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 74 *(outbuffer + offset + 2) = (u_z.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 75 *(outbuffer + offset + 3) = (u_z.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 76 *(outbuffer + offset + 4) = (u_z.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 77 *(outbuffer + offset + 5) = (u_z.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 78 *(outbuffer + offset + 6) = (u_z.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 79 *(outbuffer + offset + 7) = (u_z.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 80 offset += sizeof(this->z);
garyservin 0:fd24f7ca9688 81 union {
garyservin 0:fd24f7ca9688 82 double real;
garyservin 0:fd24f7ca9688 83 uint64_t base;
garyservin 0:fd24f7ca9688 84 } u_r;
garyservin 0:fd24f7ca9688 85 u_r.real = this->r;
garyservin 0:fd24f7ca9688 86 *(outbuffer + offset + 0) = (u_r.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 87 *(outbuffer + offset + 1) = (u_r.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 88 *(outbuffer + offset + 2) = (u_r.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 89 *(outbuffer + offset + 3) = (u_r.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 90 *(outbuffer + offset + 4) = (u_r.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 91 *(outbuffer + offset + 5) = (u_r.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 92 *(outbuffer + offset + 6) = (u_r.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 93 *(outbuffer + offset + 7) = (u_r.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 94 offset += sizeof(this->r);
garyservin 0:fd24f7ca9688 95 union {
garyservin 0:fd24f7ca9688 96 double real;
garyservin 0:fd24f7ca9688 97 uint64_t base;
garyservin 0:fd24f7ca9688 98 } u_l_x;
garyservin 0:fd24f7ca9688 99 u_l_x.real = this->l_x;
garyservin 0:fd24f7ca9688 100 *(outbuffer + offset + 0) = (u_l_x.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 101 *(outbuffer + offset + 1) = (u_l_x.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 102 *(outbuffer + offset + 2) = (u_l_x.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 103 *(outbuffer + offset + 3) = (u_l_x.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 104 *(outbuffer + offset + 4) = (u_l_x.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 105 *(outbuffer + offset + 5) = (u_l_x.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 106 *(outbuffer + offset + 6) = (u_l_x.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 107 *(outbuffer + offset + 7) = (u_l_x.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 108 offset += sizeof(this->l_x);
garyservin 0:fd24f7ca9688 109 union {
garyservin 0:fd24f7ca9688 110 double real;
garyservin 0:fd24f7ca9688 111 uint64_t base;
garyservin 0:fd24f7ca9688 112 } u_l_y;
garyservin 0:fd24f7ca9688 113 u_l_y.real = this->l_y;
garyservin 0:fd24f7ca9688 114 *(outbuffer + offset + 0) = (u_l_y.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 115 *(outbuffer + offset + 1) = (u_l_y.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 116 *(outbuffer + offset + 2) = (u_l_y.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 117 *(outbuffer + offset + 3) = (u_l_y.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 118 *(outbuffer + offset + 4) = (u_l_y.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 119 *(outbuffer + offset + 5) = (u_l_y.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 120 *(outbuffer + offset + 6) = (u_l_y.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 121 *(outbuffer + offset + 7) = (u_l_y.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 122 offset += sizeof(this->l_y);
garyservin 0:fd24f7ca9688 123 union {
garyservin 0:fd24f7ca9688 124 double real;
garyservin 0:fd24f7ca9688 125 uint64_t base;
garyservin 0:fd24f7ca9688 126 } u_l_z;
garyservin 0:fd24f7ca9688 127 u_l_z.real = this->l_z;
garyservin 0:fd24f7ca9688 128 *(outbuffer + offset + 0) = (u_l_z.base >> (8 * 0)) & 0xFF;
garyservin 0:fd24f7ca9688 129 *(outbuffer + offset + 1) = (u_l_z.base >> (8 * 1)) & 0xFF;
garyservin 0:fd24f7ca9688 130 *(outbuffer + offset + 2) = (u_l_z.base >> (8 * 2)) & 0xFF;
garyservin 0:fd24f7ca9688 131 *(outbuffer + offset + 3) = (u_l_z.base >> (8 * 3)) & 0xFF;
garyservin 0:fd24f7ca9688 132 *(outbuffer + offset + 4) = (u_l_z.base >> (8 * 4)) & 0xFF;
garyservin 0:fd24f7ca9688 133 *(outbuffer + offset + 5) = (u_l_z.base >> (8 * 5)) & 0xFF;
garyservin 0:fd24f7ca9688 134 *(outbuffer + offset + 6) = (u_l_z.base >> (8 * 6)) & 0xFF;
garyservin 0:fd24f7ca9688 135 *(outbuffer + offset + 7) = (u_l_z.base >> (8 * 7)) & 0xFF;
garyservin 0:fd24f7ca9688 136 offset += sizeof(this->l_z);
garyservin 0:fd24f7ca9688 137 return offset;
garyservin 0:fd24f7ca9688 138 }
garyservin 0:fd24f7ca9688 139
garyservin 0:fd24f7ca9688 140 virtual int deserialize(unsigned char *inbuffer)
garyservin 0:fd24f7ca9688 141 {
garyservin 0:fd24f7ca9688 142 int offset = 0;
garyservin 0:fd24f7ca9688 143 union {
garyservin 0:fd24f7ca9688 144 double real;
garyservin 0:fd24f7ca9688 145 uint64_t base;
garyservin 0:fd24f7ca9688 146 } u_x;
garyservin 0:fd24f7ca9688 147 u_x.base = 0;
garyservin 0:fd24f7ca9688 148 u_x.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 149 u_x.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 150 u_x.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 151 u_x.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 152 u_x.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 153 u_x.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 154 u_x.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 155 u_x.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 156 this->x = u_x.real;
garyservin 0:fd24f7ca9688 157 offset += sizeof(this->x);
garyservin 0:fd24f7ca9688 158 union {
garyservin 0:fd24f7ca9688 159 double real;
garyservin 0:fd24f7ca9688 160 uint64_t base;
garyservin 0:fd24f7ca9688 161 } u_y;
garyservin 0:fd24f7ca9688 162 u_y.base = 0;
garyservin 0:fd24f7ca9688 163 u_y.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 164 u_y.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 165 u_y.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 166 u_y.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 167 u_y.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 168 u_y.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 169 u_y.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 170 u_y.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 171 this->y = u_y.real;
garyservin 0:fd24f7ca9688 172 offset += sizeof(this->y);
garyservin 0:fd24f7ca9688 173 union {
garyservin 0:fd24f7ca9688 174 double real;
garyservin 0:fd24f7ca9688 175 uint64_t base;
garyservin 0:fd24f7ca9688 176 } u_z;
garyservin 0:fd24f7ca9688 177 u_z.base = 0;
garyservin 0:fd24f7ca9688 178 u_z.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 179 u_z.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 180 u_z.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 181 u_z.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 182 u_z.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 183 u_z.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 184 u_z.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 185 u_z.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 186 this->z = u_z.real;
garyservin 0:fd24f7ca9688 187 offset += sizeof(this->z);
garyservin 0:fd24f7ca9688 188 union {
garyservin 0:fd24f7ca9688 189 double real;
garyservin 0:fd24f7ca9688 190 uint64_t base;
garyservin 0:fd24f7ca9688 191 } u_r;
garyservin 0:fd24f7ca9688 192 u_r.base = 0;
garyservin 0:fd24f7ca9688 193 u_r.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 194 u_r.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 195 u_r.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 196 u_r.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 197 u_r.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 198 u_r.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 199 u_r.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 200 u_r.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 201 this->r = u_r.real;
garyservin 0:fd24f7ca9688 202 offset += sizeof(this->r);
garyservin 0:fd24f7ca9688 203 union {
garyservin 0:fd24f7ca9688 204 double real;
garyservin 0:fd24f7ca9688 205 uint64_t base;
garyservin 0:fd24f7ca9688 206 } u_l_x;
garyservin 0:fd24f7ca9688 207 u_l_x.base = 0;
garyservin 0:fd24f7ca9688 208 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 209 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 210 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 211 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 212 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 213 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 214 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 215 u_l_x.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 216 this->l_x = u_l_x.real;
garyservin 0:fd24f7ca9688 217 offset += sizeof(this->l_x);
garyservin 0:fd24f7ca9688 218 union {
garyservin 0:fd24f7ca9688 219 double real;
garyservin 0:fd24f7ca9688 220 uint64_t base;
garyservin 0:fd24f7ca9688 221 } u_l_y;
garyservin 0:fd24f7ca9688 222 u_l_y.base = 0;
garyservin 0:fd24f7ca9688 223 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 224 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 225 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 226 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 227 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 228 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 229 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 230 u_l_y.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 231 this->l_y = u_l_y.real;
garyservin 0:fd24f7ca9688 232 offset += sizeof(this->l_y);
garyservin 0:fd24f7ca9688 233 union {
garyservin 0:fd24f7ca9688 234 double real;
garyservin 0:fd24f7ca9688 235 uint64_t base;
garyservin 0:fd24f7ca9688 236 } u_l_z;
garyservin 0:fd24f7ca9688 237 u_l_z.base = 0;
garyservin 0:fd24f7ca9688 238 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0);
garyservin 0:fd24f7ca9688 239 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1);
garyservin 0:fd24f7ca9688 240 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2);
garyservin 0:fd24f7ca9688 241 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3);
garyservin 0:fd24f7ca9688 242 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4);
garyservin 0:fd24f7ca9688 243 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5);
garyservin 0:fd24f7ca9688 244 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6);
garyservin 0:fd24f7ca9688 245 u_l_z.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7);
garyservin 0:fd24f7ca9688 246 this->l_z = u_l_z.real;
garyservin 0:fd24f7ca9688 247 offset += sizeof(this->l_z);
garyservin 0:fd24f7ca9688 248 return offset;
garyservin 0:fd24f7ca9688 249 }
garyservin 0:fd24f7ca9688 250
garyservin 0:fd24f7ca9688 251 const char * getType(){ return GETPOINTMAPROI; };
garyservin 0:fd24f7ca9688 252 const char * getMD5(){ return "895f7e437a9a6dd225316872b187a303"; };
garyservin 0:fd24f7ca9688 253
garyservin 0:fd24f7ca9688 254 };
garyservin 0:fd24f7ca9688 255
garyservin 0:fd24f7ca9688 256 class GetPointMapROIResponse : public ros::Msg
garyservin 0:fd24f7ca9688 257 {
garyservin 0:fd24f7ca9688 258 public:
garyservin 0:fd24f7ca9688 259 sensor_msgs::PointCloud2 sub_map;
garyservin 0:fd24f7ca9688 260
garyservin 0:fd24f7ca9688 261 GetPointMapROIResponse():
garyservin 0:fd24f7ca9688 262 sub_map()
garyservin 0:fd24f7ca9688 263 {
garyservin 0:fd24f7ca9688 264 }
garyservin 0:fd24f7ca9688 265
garyservin 0:fd24f7ca9688 266 virtual int serialize(unsigned char *outbuffer) const
garyservin 0:fd24f7ca9688 267 {
garyservin 0:fd24f7ca9688 268 int offset = 0;
garyservin 0:fd24f7ca9688 269 offset += this->sub_map.serialize(outbuffer + offset);
garyservin 0:fd24f7ca9688 270 return offset;
garyservin 0:fd24f7ca9688 271 }
garyservin 0:fd24f7ca9688 272
garyservin 0:fd24f7ca9688 273 virtual int deserialize(unsigned char *inbuffer)
garyservin 0:fd24f7ca9688 274 {
garyservin 0:fd24f7ca9688 275 int offset = 0;
garyservin 0:fd24f7ca9688 276 offset += this->sub_map.deserialize(inbuffer + offset);
garyservin 0:fd24f7ca9688 277 return offset;
garyservin 0:fd24f7ca9688 278 }
garyservin 0:fd24f7ca9688 279
garyservin 0:fd24f7ca9688 280 const char * getType(){ return GETPOINTMAPROI; };
garyservin 0:fd24f7ca9688 281 const char * getMD5(){ return "313769f8b0e724525c6463336cbccd63"; };
garyservin 0:fd24f7ca9688 282
garyservin 0:fd24f7ca9688 283 };
garyservin 0:fd24f7ca9688 284
garyservin 0:fd24f7ca9688 285 class GetPointMapROI {
garyservin 0:fd24f7ca9688 286 public:
garyservin 0:fd24f7ca9688 287 typedef GetPointMapROIRequest Request;
garyservin 0:fd24f7ca9688 288 typedef GetPointMapROIResponse Response;
garyservin 0:fd24f7ca9688 289 };
garyservin 0:fd24f7ca9688 290
garyservin 0:fd24f7ca9688 291 }
garyservin 0:fd24f7ca9688 292 #endif