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