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