1 #ifndef _ROS_rosabridge_msgs_Mag_h 2 #define _ROS_rosabridge_msgs_Mag_h 19 virtual int serialize(
unsigned char *outbuffer)
const 27 *(outbuffer + offset + 0) = (u_x.base >> (8 * 0)) & 0xFF;
28 *(outbuffer + offset + 1) = (u_x.base >> (8 * 1)) & 0xFF;
29 *(outbuffer + offset + 2) = (u_x.base >> (8 * 2)) & 0xFF;
30 *(outbuffer + offset + 3) = (u_x.base >> (8 * 3)) & 0xFF;
31 offset +=
sizeof(this->
x);
37 *(outbuffer + offset + 0) = (u_y.base >> (8 * 0)) & 0xFF;
38 *(outbuffer + offset + 1) = (u_y.base >> (8 * 1)) & 0xFF;
39 *(outbuffer + offset + 2) = (u_y.base >> (8 * 2)) & 0xFF;
40 *(outbuffer + offset + 3) = (u_y.base >> (8 * 3)) & 0xFF;
41 offset +=
sizeof(this->
y);
47 *(outbuffer + offset + 0) = (u_z.base >> (8 * 0)) & 0xFF;
48 *(outbuffer + offset + 1) = (u_z.base >> (8 * 1)) & 0xFF;
49 *(outbuffer + offset + 2) = (u_z.base >> (8 * 2)) & 0xFF;
50 *(outbuffer + offset + 3) = (u_z.base >> (8 * 3)) & 0xFF;
51 offset +=
sizeof(this->
z);
63 u_x.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
64 u_x.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
65 u_x.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
66 u_x.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
68 offset +=
sizeof(this->
x);
74 u_y.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
75 u_y.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
76 u_y.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
77 u_y.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
79 offset +=
sizeof(this->
y);
85 u_z.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
86 u_z.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
87 u_z.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
88 u_z.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
90 offset +=
sizeof(this->
z);
94 const char *
getType(){
return "rosabridge_msgs/Mag"; };
95 const char *
getMD5(){
return "cc153912f1453b708d221682bc23d9ac"; };
virtual int serialize(unsigned char *outbuffer) const
virtual int deserialize(unsigned char *inbuffer)