ROS Serial library for Mbed platforms for ROS Kinetic Kame. Check http://wiki.ros.org/rosserial_mbed/ for more information.
Dependents: mbed-os-example-blinky
map_msgs/ProjectedMapInfo.h@2:f2240ad62eaf, 2019-08-01 (annotated)
- Committer:
- fllay
- Date:
- Thu Aug 01 17:08:55 2019 +0000
- Revision:
- 2:f2240ad62eaf
- Parent:
- 0:9e9b7db60fd5
fix time.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
garyservin | 0:9e9b7db60fd5 | 1 | #ifndef _ROS_map_msgs_ProjectedMapInfo_h |
garyservin | 0:9e9b7db60fd5 | 2 | #define _ROS_map_msgs_ProjectedMapInfo_h |
garyservin | 0:9e9b7db60fd5 | 3 | |
garyservin | 0:9e9b7db60fd5 | 4 | #include <stdint.h> |
garyservin | 0:9e9b7db60fd5 | 5 | #include <string.h> |
garyservin | 0:9e9b7db60fd5 | 6 | #include <stdlib.h> |
garyservin | 0:9e9b7db60fd5 | 7 | #include "ros/msg.h" |
garyservin | 0:9e9b7db60fd5 | 8 | |
garyservin | 0:9e9b7db60fd5 | 9 | namespace map_msgs |
garyservin | 0:9e9b7db60fd5 | 10 | { |
garyservin | 0:9e9b7db60fd5 | 11 | |
garyservin | 0:9e9b7db60fd5 | 12 | class ProjectedMapInfo : public ros::Msg |
garyservin | 0:9e9b7db60fd5 | 13 | { |
garyservin | 0:9e9b7db60fd5 | 14 | public: |
garyservin | 0:9e9b7db60fd5 | 15 | typedef const char* _frame_id_type; |
garyservin | 0:9e9b7db60fd5 | 16 | _frame_id_type frame_id; |
garyservin | 0:9e9b7db60fd5 | 17 | typedef double _x_type; |
garyservin | 0:9e9b7db60fd5 | 18 | _x_type x; |
garyservin | 0:9e9b7db60fd5 | 19 | typedef double _y_type; |
garyservin | 0:9e9b7db60fd5 | 20 | _y_type y; |
garyservin | 0:9e9b7db60fd5 | 21 | typedef double _width_type; |
garyservin | 0:9e9b7db60fd5 | 22 | _width_type width; |
garyservin | 0:9e9b7db60fd5 | 23 | typedef double _height_type; |
garyservin | 0:9e9b7db60fd5 | 24 | _height_type height; |
garyservin | 0:9e9b7db60fd5 | 25 | typedef double _min_z_type; |
garyservin | 0:9e9b7db60fd5 | 26 | _min_z_type min_z; |
garyservin | 0:9e9b7db60fd5 | 27 | typedef double _max_z_type; |
garyservin | 0:9e9b7db60fd5 | 28 | _max_z_type max_z; |
garyservin | 0:9e9b7db60fd5 | 29 | |
garyservin | 0:9e9b7db60fd5 | 30 | ProjectedMapInfo(): |
garyservin | 0:9e9b7db60fd5 | 31 | frame_id(""), |
garyservin | 0:9e9b7db60fd5 | 32 | x(0), |
garyservin | 0:9e9b7db60fd5 | 33 | y(0), |
garyservin | 0:9e9b7db60fd5 | 34 | width(0), |
garyservin | 0:9e9b7db60fd5 | 35 | height(0), |
garyservin | 0:9e9b7db60fd5 | 36 | min_z(0), |
garyservin | 0:9e9b7db60fd5 | 37 | max_z(0) |
garyservin | 0:9e9b7db60fd5 | 38 | { |
garyservin | 0:9e9b7db60fd5 | 39 | } |
garyservin | 0:9e9b7db60fd5 | 40 | |
garyservin | 0:9e9b7db60fd5 | 41 | virtual int serialize(unsigned char *outbuffer) const |
garyservin | 0:9e9b7db60fd5 | 42 | { |
garyservin | 0:9e9b7db60fd5 | 43 | int offset = 0; |
garyservin | 0:9e9b7db60fd5 | 44 | uint32_t length_frame_id = strlen(this->frame_id); |
garyservin | 0:9e9b7db60fd5 | 45 | varToArr(outbuffer + offset, length_frame_id); |
garyservin | 0:9e9b7db60fd5 | 46 | offset += 4; |
garyservin | 0:9e9b7db60fd5 | 47 | memcpy(outbuffer + offset, this->frame_id, length_frame_id); |
garyservin | 0:9e9b7db60fd5 | 48 | offset += length_frame_id; |
garyservin | 0:9e9b7db60fd5 | 49 | union { |
garyservin | 0:9e9b7db60fd5 | 50 | double real; |
garyservin | 0:9e9b7db60fd5 | 51 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 52 | } u_x; |
garyservin | 0:9e9b7db60fd5 | 53 | u_x.real = this->x; |
garyservin | 0:9e9b7db60fd5 | 54 | *(outbuffer + offset + 0) = (u_x.base >> (8 * 0)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 55 | *(outbuffer + offset + 1) = (u_x.base >> (8 * 1)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 56 | *(outbuffer + offset + 2) = (u_x.base >> (8 * 2)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 57 | *(outbuffer + offset + 3) = (u_x.base >> (8 * 3)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 58 | *(outbuffer + offset + 4) = (u_x.base >> (8 * 4)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 59 | *(outbuffer + offset + 5) = (u_x.base >> (8 * 5)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 60 | *(outbuffer + offset + 6) = (u_x.base >> (8 * 6)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 61 | *(outbuffer + offset + 7) = (u_x.base >> (8 * 7)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 62 | offset += sizeof(this->x); |
garyservin | 0:9e9b7db60fd5 | 63 | union { |
garyservin | 0:9e9b7db60fd5 | 64 | double real; |
garyservin | 0:9e9b7db60fd5 | 65 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 66 | } u_y; |
garyservin | 0:9e9b7db60fd5 | 67 | u_y.real = this->y; |
garyservin | 0:9e9b7db60fd5 | 68 | *(outbuffer + offset + 0) = (u_y.base >> (8 * 0)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 69 | *(outbuffer + offset + 1) = (u_y.base >> (8 * 1)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 70 | *(outbuffer + offset + 2) = (u_y.base >> (8 * 2)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 71 | *(outbuffer + offset + 3) = (u_y.base >> (8 * 3)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 72 | *(outbuffer + offset + 4) = (u_y.base >> (8 * 4)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 73 | *(outbuffer + offset + 5) = (u_y.base >> (8 * 5)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 74 | *(outbuffer + offset + 6) = (u_y.base >> (8 * 6)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 75 | *(outbuffer + offset + 7) = (u_y.base >> (8 * 7)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 76 | offset += sizeof(this->y); |
garyservin | 0:9e9b7db60fd5 | 77 | union { |
garyservin | 0:9e9b7db60fd5 | 78 | double real; |
garyservin | 0:9e9b7db60fd5 | 79 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 80 | } u_width; |
garyservin | 0:9e9b7db60fd5 | 81 | u_width.real = this->width; |
garyservin | 0:9e9b7db60fd5 | 82 | *(outbuffer + offset + 0) = (u_width.base >> (8 * 0)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 83 | *(outbuffer + offset + 1) = (u_width.base >> (8 * 1)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 84 | *(outbuffer + offset + 2) = (u_width.base >> (8 * 2)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 85 | *(outbuffer + offset + 3) = (u_width.base >> (8 * 3)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 86 | *(outbuffer + offset + 4) = (u_width.base >> (8 * 4)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 87 | *(outbuffer + offset + 5) = (u_width.base >> (8 * 5)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 88 | *(outbuffer + offset + 6) = (u_width.base >> (8 * 6)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 89 | *(outbuffer + offset + 7) = (u_width.base >> (8 * 7)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 90 | offset += sizeof(this->width); |
garyservin | 0:9e9b7db60fd5 | 91 | union { |
garyservin | 0:9e9b7db60fd5 | 92 | double real; |
garyservin | 0:9e9b7db60fd5 | 93 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 94 | } u_height; |
garyservin | 0:9e9b7db60fd5 | 95 | u_height.real = this->height; |
garyservin | 0:9e9b7db60fd5 | 96 | *(outbuffer + offset + 0) = (u_height.base >> (8 * 0)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 97 | *(outbuffer + offset + 1) = (u_height.base >> (8 * 1)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 98 | *(outbuffer + offset + 2) = (u_height.base >> (8 * 2)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 99 | *(outbuffer + offset + 3) = (u_height.base >> (8 * 3)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 100 | *(outbuffer + offset + 4) = (u_height.base >> (8 * 4)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 101 | *(outbuffer + offset + 5) = (u_height.base >> (8 * 5)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 102 | *(outbuffer + offset + 6) = (u_height.base >> (8 * 6)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 103 | *(outbuffer + offset + 7) = (u_height.base >> (8 * 7)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 104 | offset += sizeof(this->height); |
garyservin | 0:9e9b7db60fd5 | 105 | union { |
garyservin | 0:9e9b7db60fd5 | 106 | double real; |
garyservin | 0:9e9b7db60fd5 | 107 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 108 | } u_min_z; |
garyservin | 0:9e9b7db60fd5 | 109 | u_min_z.real = this->min_z; |
garyservin | 0:9e9b7db60fd5 | 110 | *(outbuffer + offset + 0) = (u_min_z.base >> (8 * 0)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 111 | *(outbuffer + offset + 1) = (u_min_z.base >> (8 * 1)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 112 | *(outbuffer + offset + 2) = (u_min_z.base >> (8 * 2)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 113 | *(outbuffer + offset + 3) = (u_min_z.base >> (8 * 3)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 114 | *(outbuffer + offset + 4) = (u_min_z.base >> (8 * 4)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 115 | *(outbuffer + offset + 5) = (u_min_z.base >> (8 * 5)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 116 | *(outbuffer + offset + 6) = (u_min_z.base >> (8 * 6)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 117 | *(outbuffer + offset + 7) = (u_min_z.base >> (8 * 7)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 118 | offset += sizeof(this->min_z); |
garyservin | 0:9e9b7db60fd5 | 119 | union { |
garyservin | 0:9e9b7db60fd5 | 120 | double real; |
garyservin | 0:9e9b7db60fd5 | 121 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 122 | } u_max_z; |
garyservin | 0:9e9b7db60fd5 | 123 | u_max_z.real = this->max_z; |
garyservin | 0:9e9b7db60fd5 | 124 | *(outbuffer + offset + 0) = (u_max_z.base >> (8 * 0)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 125 | *(outbuffer + offset + 1) = (u_max_z.base >> (8 * 1)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 126 | *(outbuffer + offset + 2) = (u_max_z.base >> (8 * 2)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 127 | *(outbuffer + offset + 3) = (u_max_z.base >> (8 * 3)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 128 | *(outbuffer + offset + 4) = (u_max_z.base >> (8 * 4)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 129 | *(outbuffer + offset + 5) = (u_max_z.base >> (8 * 5)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 130 | *(outbuffer + offset + 6) = (u_max_z.base >> (8 * 6)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 131 | *(outbuffer + offset + 7) = (u_max_z.base >> (8 * 7)) & 0xFF; |
garyservin | 0:9e9b7db60fd5 | 132 | offset += sizeof(this->max_z); |
garyservin | 0:9e9b7db60fd5 | 133 | return offset; |
garyservin | 0:9e9b7db60fd5 | 134 | } |
garyservin | 0:9e9b7db60fd5 | 135 | |
garyservin | 0:9e9b7db60fd5 | 136 | virtual int deserialize(unsigned char *inbuffer) |
garyservin | 0:9e9b7db60fd5 | 137 | { |
garyservin | 0:9e9b7db60fd5 | 138 | int offset = 0; |
garyservin | 0:9e9b7db60fd5 | 139 | uint32_t length_frame_id; |
garyservin | 0:9e9b7db60fd5 | 140 | arrToVar(length_frame_id, (inbuffer + offset)); |
garyservin | 0:9e9b7db60fd5 | 141 | offset += 4; |
garyservin | 0:9e9b7db60fd5 | 142 | for(unsigned int k= offset; k< offset+length_frame_id; ++k){ |
garyservin | 0:9e9b7db60fd5 | 143 | inbuffer[k-1]=inbuffer[k]; |
garyservin | 0:9e9b7db60fd5 | 144 | } |
garyservin | 0:9e9b7db60fd5 | 145 | inbuffer[offset+length_frame_id-1]=0; |
garyservin | 0:9e9b7db60fd5 | 146 | this->frame_id = (char *)(inbuffer + offset-1); |
garyservin | 0:9e9b7db60fd5 | 147 | offset += length_frame_id; |
garyservin | 0:9e9b7db60fd5 | 148 | union { |
garyservin | 0:9e9b7db60fd5 | 149 | double real; |
garyservin | 0:9e9b7db60fd5 | 150 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 151 | } u_x; |
garyservin | 0:9e9b7db60fd5 | 152 | u_x.base = 0; |
garyservin | 0:9e9b7db60fd5 | 153 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
garyservin | 0:9e9b7db60fd5 | 154 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
garyservin | 0:9e9b7db60fd5 | 155 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
garyservin | 0:9e9b7db60fd5 | 156 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
garyservin | 0:9e9b7db60fd5 | 157 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
garyservin | 0:9e9b7db60fd5 | 158 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
garyservin | 0:9e9b7db60fd5 | 159 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
garyservin | 0:9e9b7db60fd5 | 160 | u_x.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
garyservin | 0:9e9b7db60fd5 | 161 | this->x = u_x.real; |
garyservin | 0:9e9b7db60fd5 | 162 | offset += sizeof(this->x); |
garyservin | 0:9e9b7db60fd5 | 163 | union { |
garyservin | 0:9e9b7db60fd5 | 164 | double real; |
garyservin | 0:9e9b7db60fd5 | 165 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 166 | } u_y; |
garyservin | 0:9e9b7db60fd5 | 167 | u_y.base = 0; |
garyservin | 0:9e9b7db60fd5 | 168 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
garyservin | 0:9e9b7db60fd5 | 169 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
garyservin | 0:9e9b7db60fd5 | 170 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
garyservin | 0:9e9b7db60fd5 | 171 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
garyservin | 0:9e9b7db60fd5 | 172 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
garyservin | 0:9e9b7db60fd5 | 173 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
garyservin | 0:9e9b7db60fd5 | 174 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
garyservin | 0:9e9b7db60fd5 | 175 | u_y.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
garyservin | 0:9e9b7db60fd5 | 176 | this->y = u_y.real; |
garyservin | 0:9e9b7db60fd5 | 177 | offset += sizeof(this->y); |
garyservin | 0:9e9b7db60fd5 | 178 | union { |
garyservin | 0:9e9b7db60fd5 | 179 | double real; |
garyservin | 0:9e9b7db60fd5 | 180 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 181 | } u_width; |
garyservin | 0:9e9b7db60fd5 | 182 | u_width.base = 0; |
garyservin | 0:9e9b7db60fd5 | 183 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
garyservin | 0:9e9b7db60fd5 | 184 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
garyservin | 0:9e9b7db60fd5 | 185 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
garyservin | 0:9e9b7db60fd5 | 186 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
garyservin | 0:9e9b7db60fd5 | 187 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
garyservin | 0:9e9b7db60fd5 | 188 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
garyservin | 0:9e9b7db60fd5 | 189 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
garyservin | 0:9e9b7db60fd5 | 190 | u_width.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
garyservin | 0:9e9b7db60fd5 | 191 | this->width = u_width.real; |
garyservin | 0:9e9b7db60fd5 | 192 | offset += sizeof(this->width); |
garyservin | 0:9e9b7db60fd5 | 193 | union { |
garyservin | 0:9e9b7db60fd5 | 194 | double real; |
garyservin | 0:9e9b7db60fd5 | 195 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 196 | } u_height; |
garyservin | 0:9e9b7db60fd5 | 197 | u_height.base = 0; |
garyservin | 0:9e9b7db60fd5 | 198 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
garyservin | 0:9e9b7db60fd5 | 199 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
garyservin | 0:9e9b7db60fd5 | 200 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
garyservin | 0:9e9b7db60fd5 | 201 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
garyservin | 0:9e9b7db60fd5 | 202 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
garyservin | 0:9e9b7db60fd5 | 203 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
garyservin | 0:9e9b7db60fd5 | 204 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
garyservin | 0:9e9b7db60fd5 | 205 | u_height.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
garyservin | 0:9e9b7db60fd5 | 206 | this->height = u_height.real; |
garyservin | 0:9e9b7db60fd5 | 207 | offset += sizeof(this->height); |
garyservin | 0:9e9b7db60fd5 | 208 | union { |
garyservin | 0:9e9b7db60fd5 | 209 | double real; |
garyservin | 0:9e9b7db60fd5 | 210 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 211 | } u_min_z; |
garyservin | 0:9e9b7db60fd5 | 212 | u_min_z.base = 0; |
garyservin | 0:9e9b7db60fd5 | 213 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
garyservin | 0:9e9b7db60fd5 | 214 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
garyservin | 0:9e9b7db60fd5 | 215 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
garyservin | 0:9e9b7db60fd5 | 216 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
garyservin | 0:9e9b7db60fd5 | 217 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
garyservin | 0:9e9b7db60fd5 | 218 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
garyservin | 0:9e9b7db60fd5 | 219 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
garyservin | 0:9e9b7db60fd5 | 220 | u_min_z.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
garyservin | 0:9e9b7db60fd5 | 221 | this->min_z = u_min_z.real; |
garyservin | 0:9e9b7db60fd5 | 222 | offset += sizeof(this->min_z); |
garyservin | 0:9e9b7db60fd5 | 223 | union { |
garyservin | 0:9e9b7db60fd5 | 224 | double real; |
garyservin | 0:9e9b7db60fd5 | 225 | uint64_t base; |
garyservin | 0:9e9b7db60fd5 | 226 | } u_max_z; |
garyservin | 0:9e9b7db60fd5 | 227 | u_max_z.base = 0; |
garyservin | 0:9e9b7db60fd5 | 228 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
garyservin | 0:9e9b7db60fd5 | 229 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
garyservin | 0:9e9b7db60fd5 | 230 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
garyservin | 0:9e9b7db60fd5 | 231 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
garyservin | 0:9e9b7db60fd5 | 232 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
garyservin | 0:9e9b7db60fd5 | 233 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
garyservin | 0:9e9b7db60fd5 | 234 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
garyservin | 0:9e9b7db60fd5 | 235 | u_max_z.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
garyservin | 0:9e9b7db60fd5 | 236 | this->max_z = u_max_z.real; |
garyservin | 0:9e9b7db60fd5 | 237 | offset += sizeof(this->max_z); |
garyservin | 0:9e9b7db60fd5 | 238 | return offset; |
garyservin | 0:9e9b7db60fd5 | 239 | } |
garyservin | 0:9e9b7db60fd5 | 240 | |
garyservin | 0:9e9b7db60fd5 | 241 | const char * getType(){ return "map_msgs/ProjectedMapInfo"; }; |
garyservin | 0:9e9b7db60fd5 | 242 | const char * getMD5(){ return "2dc10595ae94de23f22f8a6d2a0eef7a"; }; |
garyservin | 0:9e9b7db60fd5 | 243 | |
garyservin | 0:9e9b7db60fd5 | 244 | }; |
garyservin | 0:9e9b7db60fd5 | 245 | |
garyservin | 0:9e9b7db60fd5 | 246 | } |
garyservin | 0:9e9b7db60fd5 | 247 | #endif |