ros melodic library with custom message
Dependents: Robot_team1_QEI_Douglas Robot_team1
ros_lib/geometry_msgs/Inertia.h@3:b964e3f71102, 2019-12-03 (annotated)
- Committer:
- florine_van
- Date:
- Tue Dec 03 09:39:29 2019 +0000
- Revision:
- 3:b964e3f71102
- Parent:
- 0:020db18a476d
Clean code and remove unused lines
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
scarter1 | 0:020db18a476d | 1 | #ifndef _ROS_geometry_msgs_Inertia_h |
scarter1 | 0:020db18a476d | 2 | #define _ROS_geometry_msgs_Inertia_h |
scarter1 | 0:020db18a476d | 3 | |
scarter1 | 0:020db18a476d | 4 | #include <stdint.h> |
scarter1 | 0:020db18a476d | 5 | #include <string.h> |
scarter1 | 0:020db18a476d | 6 | #include <stdlib.h> |
scarter1 | 0:020db18a476d | 7 | #include "ros/msg.h" |
scarter1 | 0:020db18a476d | 8 | #include "geometry_msgs/Vector3.h" |
scarter1 | 0:020db18a476d | 9 | |
scarter1 | 0:020db18a476d | 10 | namespace geometry_msgs |
scarter1 | 0:020db18a476d | 11 | { |
scarter1 | 0:020db18a476d | 12 | |
scarter1 | 0:020db18a476d | 13 | class Inertia : public ros::Msg |
scarter1 | 0:020db18a476d | 14 | { |
scarter1 | 0:020db18a476d | 15 | public: |
scarter1 | 0:020db18a476d | 16 | typedef double _m_type; |
scarter1 | 0:020db18a476d | 17 | _m_type m; |
scarter1 | 0:020db18a476d | 18 | typedef geometry_msgs::Vector3 _com_type; |
scarter1 | 0:020db18a476d | 19 | _com_type com; |
scarter1 | 0:020db18a476d | 20 | typedef double _ixx_type; |
scarter1 | 0:020db18a476d | 21 | _ixx_type ixx; |
scarter1 | 0:020db18a476d | 22 | typedef double _ixy_type; |
scarter1 | 0:020db18a476d | 23 | _ixy_type ixy; |
scarter1 | 0:020db18a476d | 24 | typedef double _ixz_type; |
scarter1 | 0:020db18a476d | 25 | _ixz_type ixz; |
scarter1 | 0:020db18a476d | 26 | typedef double _iyy_type; |
scarter1 | 0:020db18a476d | 27 | _iyy_type iyy; |
scarter1 | 0:020db18a476d | 28 | typedef double _iyz_type; |
scarter1 | 0:020db18a476d | 29 | _iyz_type iyz; |
scarter1 | 0:020db18a476d | 30 | typedef double _izz_type; |
scarter1 | 0:020db18a476d | 31 | _izz_type izz; |
scarter1 | 0:020db18a476d | 32 | |
scarter1 | 0:020db18a476d | 33 | Inertia(): |
scarter1 | 0:020db18a476d | 34 | m(0), |
scarter1 | 0:020db18a476d | 35 | com(), |
scarter1 | 0:020db18a476d | 36 | ixx(0), |
scarter1 | 0:020db18a476d | 37 | ixy(0), |
scarter1 | 0:020db18a476d | 38 | ixz(0), |
scarter1 | 0:020db18a476d | 39 | iyy(0), |
scarter1 | 0:020db18a476d | 40 | iyz(0), |
scarter1 | 0:020db18a476d | 41 | izz(0) |
scarter1 | 0:020db18a476d | 42 | { |
scarter1 | 0:020db18a476d | 43 | } |
scarter1 | 0:020db18a476d | 44 | |
scarter1 | 0:020db18a476d | 45 | virtual int serialize(unsigned char *outbuffer) const |
scarter1 | 0:020db18a476d | 46 | { |
scarter1 | 0:020db18a476d | 47 | int offset = 0; |
scarter1 | 0:020db18a476d | 48 | union { |
scarter1 | 0:020db18a476d | 49 | double real; |
scarter1 | 0:020db18a476d | 50 | uint64_t base; |
scarter1 | 0:020db18a476d | 51 | } u_m; |
scarter1 | 0:020db18a476d | 52 | u_m.real = this->m; |
scarter1 | 0:020db18a476d | 53 | *(outbuffer + offset + 0) = (u_m.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 54 | *(outbuffer + offset + 1) = (u_m.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 55 | *(outbuffer + offset + 2) = (u_m.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 56 | *(outbuffer + offset + 3) = (u_m.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 57 | *(outbuffer + offset + 4) = (u_m.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 58 | *(outbuffer + offset + 5) = (u_m.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 59 | *(outbuffer + offset + 6) = (u_m.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 60 | *(outbuffer + offset + 7) = (u_m.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 61 | offset += sizeof(this->m); |
scarter1 | 0:020db18a476d | 62 | offset += this->com.serialize(outbuffer + offset); |
scarter1 | 0:020db18a476d | 63 | union { |
scarter1 | 0:020db18a476d | 64 | double real; |
scarter1 | 0:020db18a476d | 65 | uint64_t base; |
scarter1 | 0:020db18a476d | 66 | } u_ixx; |
scarter1 | 0:020db18a476d | 67 | u_ixx.real = this->ixx; |
scarter1 | 0:020db18a476d | 68 | *(outbuffer + offset + 0) = (u_ixx.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 69 | *(outbuffer + offset + 1) = (u_ixx.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 70 | *(outbuffer + offset + 2) = (u_ixx.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 71 | *(outbuffer + offset + 3) = (u_ixx.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 72 | *(outbuffer + offset + 4) = (u_ixx.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 73 | *(outbuffer + offset + 5) = (u_ixx.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 74 | *(outbuffer + offset + 6) = (u_ixx.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 75 | *(outbuffer + offset + 7) = (u_ixx.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 76 | offset += sizeof(this->ixx); |
scarter1 | 0:020db18a476d | 77 | union { |
scarter1 | 0:020db18a476d | 78 | double real; |
scarter1 | 0:020db18a476d | 79 | uint64_t base; |
scarter1 | 0:020db18a476d | 80 | } u_ixy; |
scarter1 | 0:020db18a476d | 81 | u_ixy.real = this->ixy; |
scarter1 | 0:020db18a476d | 82 | *(outbuffer + offset + 0) = (u_ixy.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 83 | *(outbuffer + offset + 1) = (u_ixy.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 84 | *(outbuffer + offset + 2) = (u_ixy.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 85 | *(outbuffer + offset + 3) = (u_ixy.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 86 | *(outbuffer + offset + 4) = (u_ixy.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 87 | *(outbuffer + offset + 5) = (u_ixy.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 88 | *(outbuffer + offset + 6) = (u_ixy.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 89 | *(outbuffer + offset + 7) = (u_ixy.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 90 | offset += sizeof(this->ixy); |
scarter1 | 0:020db18a476d | 91 | union { |
scarter1 | 0:020db18a476d | 92 | double real; |
scarter1 | 0:020db18a476d | 93 | uint64_t base; |
scarter1 | 0:020db18a476d | 94 | } u_ixz; |
scarter1 | 0:020db18a476d | 95 | u_ixz.real = this->ixz; |
scarter1 | 0:020db18a476d | 96 | *(outbuffer + offset + 0) = (u_ixz.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 97 | *(outbuffer + offset + 1) = (u_ixz.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 98 | *(outbuffer + offset + 2) = (u_ixz.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 99 | *(outbuffer + offset + 3) = (u_ixz.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 100 | *(outbuffer + offset + 4) = (u_ixz.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 101 | *(outbuffer + offset + 5) = (u_ixz.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 102 | *(outbuffer + offset + 6) = (u_ixz.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 103 | *(outbuffer + offset + 7) = (u_ixz.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 104 | offset += sizeof(this->ixz); |
scarter1 | 0:020db18a476d | 105 | union { |
scarter1 | 0:020db18a476d | 106 | double real; |
scarter1 | 0:020db18a476d | 107 | uint64_t base; |
scarter1 | 0:020db18a476d | 108 | } u_iyy; |
scarter1 | 0:020db18a476d | 109 | u_iyy.real = this->iyy; |
scarter1 | 0:020db18a476d | 110 | *(outbuffer + offset + 0) = (u_iyy.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 111 | *(outbuffer + offset + 1) = (u_iyy.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 112 | *(outbuffer + offset + 2) = (u_iyy.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 113 | *(outbuffer + offset + 3) = (u_iyy.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 114 | *(outbuffer + offset + 4) = (u_iyy.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 115 | *(outbuffer + offset + 5) = (u_iyy.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 116 | *(outbuffer + offset + 6) = (u_iyy.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 117 | *(outbuffer + offset + 7) = (u_iyy.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 118 | offset += sizeof(this->iyy); |
scarter1 | 0:020db18a476d | 119 | union { |
scarter1 | 0:020db18a476d | 120 | double real; |
scarter1 | 0:020db18a476d | 121 | uint64_t base; |
scarter1 | 0:020db18a476d | 122 | } u_iyz; |
scarter1 | 0:020db18a476d | 123 | u_iyz.real = this->iyz; |
scarter1 | 0:020db18a476d | 124 | *(outbuffer + offset + 0) = (u_iyz.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 125 | *(outbuffer + offset + 1) = (u_iyz.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 126 | *(outbuffer + offset + 2) = (u_iyz.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 127 | *(outbuffer + offset + 3) = (u_iyz.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 128 | *(outbuffer + offset + 4) = (u_iyz.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 129 | *(outbuffer + offset + 5) = (u_iyz.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 130 | *(outbuffer + offset + 6) = (u_iyz.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 131 | *(outbuffer + offset + 7) = (u_iyz.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 132 | offset += sizeof(this->iyz); |
scarter1 | 0:020db18a476d | 133 | union { |
scarter1 | 0:020db18a476d | 134 | double real; |
scarter1 | 0:020db18a476d | 135 | uint64_t base; |
scarter1 | 0:020db18a476d | 136 | } u_izz; |
scarter1 | 0:020db18a476d | 137 | u_izz.real = this->izz; |
scarter1 | 0:020db18a476d | 138 | *(outbuffer + offset + 0) = (u_izz.base >> (8 * 0)) & 0xFF; |
scarter1 | 0:020db18a476d | 139 | *(outbuffer + offset + 1) = (u_izz.base >> (8 * 1)) & 0xFF; |
scarter1 | 0:020db18a476d | 140 | *(outbuffer + offset + 2) = (u_izz.base >> (8 * 2)) & 0xFF; |
scarter1 | 0:020db18a476d | 141 | *(outbuffer + offset + 3) = (u_izz.base >> (8 * 3)) & 0xFF; |
scarter1 | 0:020db18a476d | 142 | *(outbuffer + offset + 4) = (u_izz.base >> (8 * 4)) & 0xFF; |
scarter1 | 0:020db18a476d | 143 | *(outbuffer + offset + 5) = (u_izz.base >> (8 * 5)) & 0xFF; |
scarter1 | 0:020db18a476d | 144 | *(outbuffer + offset + 6) = (u_izz.base >> (8 * 6)) & 0xFF; |
scarter1 | 0:020db18a476d | 145 | *(outbuffer + offset + 7) = (u_izz.base >> (8 * 7)) & 0xFF; |
scarter1 | 0:020db18a476d | 146 | offset += sizeof(this->izz); |
scarter1 | 0:020db18a476d | 147 | return offset; |
scarter1 | 0:020db18a476d | 148 | } |
scarter1 | 0:020db18a476d | 149 | |
scarter1 | 0:020db18a476d | 150 | virtual int deserialize(unsigned char *inbuffer) |
scarter1 | 0:020db18a476d | 151 | { |
scarter1 | 0:020db18a476d | 152 | int offset = 0; |
scarter1 | 0:020db18a476d | 153 | union { |
scarter1 | 0:020db18a476d | 154 | double real; |
scarter1 | 0:020db18a476d | 155 | uint64_t base; |
scarter1 | 0:020db18a476d | 156 | } u_m; |
scarter1 | 0:020db18a476d | 157 | u_m.base = 0; |
scarter1 | 0:020db18a476d | 158 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 159 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 160 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 161 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 162 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 163 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 164 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 165 | u_m.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 166 | this->m = u_m.real; |
scarter1 | 0:020db18a476d | 167 | offset += sizeof(this->m); |
scarter1 | 0:020db18a476d | 168 | offset += this->com.deserialize(inbuffer + offset); |
scarter1 | 0:020db18a476d | 169 | union { |
scarter1 | 0:020db18a476d | 170 | double real; |
scarter1 | 0:020db18a476d | 171 | uint64_t base; |
scarter1 | 0:020db18a476d | 172 | } u_ixx; |
scarter1 | 0:020db18a476d | 173 | u_ixx.base = 0; |
scarter1 | 0:020db18a476d | 174 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 175 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 176 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 177 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 178 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 179 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 180 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 181 | u_ixx.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 182 | this->ixx = u_ixx.real; |
scarter1 | 0:020db18a476d | 183 | offset += sizeof(this->ixx); |
scarter1 | 0:020db18a476d | 184 | union { |
scarter1 | 0:020db18a476d | 185 | double real; |
scarter1 | 0:020db18a476d | 186 | uint64_t base; |
scarter1 | 0:020db18a476d | 187 | } u_ixy; |
scarter1 | 0:020db18a476d | 188 | u_ixy.base = 0; |
scarter1 | 0:020db18a476d | 189 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 190 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 191 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 192 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 193 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 194 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 195 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 196 | u_ixy.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 197 | this->ixy = u_ixy.real; |
scarter1 | 0:020db18a476d | 198 | offset += sizeof(this->ixy); |
scarter1 | 0:020db18a476d | 199 | union { |
scarter1 | 0:020db18a476d | 200 | double real; |
scarter1 | 0:020db18a476d | 201 | uint64_t base; |
scarter1 | 0:020db18a476d | 202 | } u_ixz; |
scarter1 | 0:020db18a476d | 203 | u_ixz.base = 0; |
scarter1 | 0:020db18a476d | 204 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 205 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 206 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 207 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 208 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 209 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 210 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 211 | u_ixz.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 212 | this->ixz = u_ixz.real; |
scarter1 | 0:020db18a476d | 213 | offset += sizeof(this->ixz); |
scarter1 | 0:020db18a476d | 214 | union { |
scarter1 | 0:020db18a476d | 215 | double real; |
scarter1 | 0:020db18a476d | 216 | uint64_t base; |
scarter1 | 0:020db18a476d | 217 | } u_iyy; |
scarter1 | 0:020db18a476d | 218 | u_iyy.base = 0; |
scarter1 | 0:020db18a476d | 219 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 220 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 221 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 222 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 223 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 224 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 225 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 226 | u_iyy.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 227 | this->iyy = u_iyy.real; |
scarter1 | 0:020db18a476d | 228 | offset += sizeof(this->iyy); |
scarter1 | 0:020db18a476d | 229 | union { |
scarter1 | 0:020db18a476d | 230 | double real; |
scarter1 | 0:020db18a476d | 231 | uint64_t base; |
scarter1 | 0:020db18a476d | 232 | } u_iyz; |
scarter1 | 0:020db18a476d | 233 | u_iyz.base = 0; |
scarter1 | 0:020db18a476d | 234 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 235 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 236 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 237 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 238 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 239 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 240 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 241 | u_iyz.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 242 | this->iyz = u_iyz.real; |
scarter1 | 0:020db18a476d | 243 | offset += sizeof(this->iyz); |
scarter1 | 0:020db18a476d | 244 | union { |
scarter1 | 0:020db18a476d | 245 | double real; |
scarter1 | 0:020db18a476d | 246 | uint64_t base; |
scarter1 | 0:020db18a476d | 247 | } u_izz; |
scarter1 | 0:020db18a476d | 248 | u_izz.base = 0; |
scarter1 | 0:020db18a476d | 249 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 0))) << (8 * 0); |
scarter1 | 0:020db18a476d | 250 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 1))) << (8 * 1); |
scarter1 | 0:020db18a476d | 251 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 2))) << (8 * 2); |
scarter1 | 0:020db18a476d | 252 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 3))) << (8 * 3); |
scarter1 | 0:020db18a476d | 253 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 4))) << (8 * 4); |
scarter1 | 0:020db18a476d | 254 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 5))) << (8 * 5); |
scarter1 | 0:020db18a476d | 255 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 6))) << (8 * 6); |
scarter1 | 0:020db18a476d | 256 | u_izz.base |= ((uint64_t) (*(inbuffer + offset + 7))) << (8 * 7); |
scarter1 | 0:020db18a476d | 257 | this->izz = u_izz.real; |
scarter1 | 0:020db18a476d | 258 | offset += sizeof(this->izz); |
scarter1 | 0:020db18a476d | 259 | return offset; |
scarter1 | 0:020db18a476d | 260 | } |
scarter1 | 0:020db18a476d | 261 | |
scarter1 | 0:020db18a476d | 262 | const char * getType(){ return "geometry_msgs/Inertia"; }; |
scarter1 | 0:020db18a476d | 263 | const char * getMD5(){ return "1d26e4bb6c83ff141c5cf0d883c2b0fe"; }; |
scarter1 | 0:020db18a476d | 264 | |
scarter1 | 0:020db18a476d | 265 | }; |
scarter1 | 0:020db18a476d | 266 | |
scarter1 | 0:020db18a476d | 267 | } |
scarter1 | 0:020db18a476d | 268 | #endif |