This is a fork from the original, including a small change in the buffer size of the hardware interface (increased to 2048) and decreasing the number of publishers and subscribers to 5. Besides, the library about the message Adc.h was modified so as to increase the number of available Adc channels to be read ( from 6 to 7 ) For this modification, a change in checksum was required

Dependencies:   BufferedSerial

Fork of ros_lib_kinetic by Gary Servin

Committer:
jacobepfl1692
Date:
Tue Oct 17 18:49:03 2017 +0000
Revision:
2:9114cc24ddcf
Parent:
0:9e9b7db60fd5
I increased the channels of the ADC to 6 (hence change in checksum) because my application needed it (STM32f407V6)

Who changed what in which revision?

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