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