1 #ifndef _ROS_rosabridge_msgs_ImuCovariances_h 2 #define _ROS_rosabridge_msgs_ImuCovariances_h 19 virtual int serialize(
unsigned char *outbuffer)
const 22 for( uint8_t i = 0; i < 9; i++){
26 } u_orientation_covariancei;
27 u_orientation_covariancei.real = this->orientation_covariance[i];
28 *(outbuffer + offset + 0) = (u_orientation_covariancei.base >> (8 * 0)) & 0xFF;
29 *(outbuffer + offset + 1) = (u_orientation_covariancei.base >> (8 * 1)) & 0xFF;
30 *(outbuffer + offset + 2) = (u_orientation_covariancei.base >> (8 * 2)) & 0xFF;
31 *(outbuffer + offset + 3) = (u_orientation_covariancei.base >> (8 * 3)) & 0xFF;
32 offset +=
sizeof(this->orientation_covariance[i]);
34 for( uint8_t i = 0; i < 9; i++){
38 } u_angular_velocity_covariancei;
39 u_angular_velocity_covariancei.real = this->angular_velocity_covariance[i];
40 *(outbuffer + offset + 0) = (u_angular_velocity_covariancei.base >> (8 * 0)) & 0xFF;
41 *(outbuffer + offset + 1) = (u_angular_velocity_covariancei.base >> (8 * 1)) & 0xFF;
42 *(outbuffer + offset + 2) = (u_angular_velocity_covariancei.base >> (8 * 2)) & 0xFF;
43 *(outbuffer + offset + 3) = (u_angular_velocity_covariancei.base >> (8 * 3)) & 0xFF;
44 offset +=
sizeof(this->angular_velocity_covariance[i]);
46 for( uint8_t i = 0; i < 9; i++){
50 } u_linear_acceleration_covariancei;
51 u_linear_acceleration_covariancei.real = this->linear_acceleration_covariance[i];
52 *(outbuffer + offset + 0) = (u_linear_acceleration_covariancei.base >> (8 * 0)) & 0xFF;
53 *(outbuffer + offset + 1) = (u_linear_acceleration_covariancei.base >> (8 * 1)) & 0xFF;
54 *(outbuffer + offset + 2) = (u_linear_acceleration_covariancei.base >> (8 * 2)) & 0xFF;
55 *(outbuffer + offset + 3) = (u_linear_acceleration_covariancei.base >> (8 * 3)) & 0xFF;
56 offset +=
sizeof(this->linear_acceleration_covariance[i]);
64 for( uint8_t i = 0; i < 9; i++){
68 } u_orientation_covariancei;
69 u_orientation_covariancei.base = 0;
70 u_orientation_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
71 u_orientation_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
72 u_orientation_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
73 u_orientation_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
74 this->orientation_covariance[i] = u_orientation_covariancei.real;
75 offset +=
sizeof(this->orientation_covariance[i]);
77 for( uint8_t i = 0; i < 9; i++){
81 } u_angular_velocity_covariancei;
82 u_angular_velocity_covariancei.base = 0;
83 u_angular_velocity_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
84 u_angular_velocity_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
85 u_angular_velocity_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
86 u_angular_velocity_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
87 this->angular_velocity_covariance[i] = u_angular_velocity_covariancei.real;
88 offset +=
sizeof(this->angular_velocity_covariance[i]);
90 for( uint8_t i = 0; i < 9; i++){
94 } u_linear_acceleration_covariancei;
95 u_linear_acceleration_covariancei.base = 0;
96 u_linear_acceleration_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 0))) << (8 * 0);
97 u_linear_acceleration_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
98 u_linear_acceleration_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
99 u_linear_acceleration_covariancei.base |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
100 this->linear_acceleration_covariance[i] = u_linear_acceleration_covariancei.real;
101 offset +=
sizeof(this->linear_acceleration_covariance[i]);
106 const char *
getType(){
return "rosabridge_msgs/ImuCovariances"; };
107 const char *
getMD5(){
return "abc17e56a180069d18f7856848657acb"; };
float linear_acceleration_covariance[9]
virtual int serialize(unsigned char *outbuffer) const
virtual int deserialize(unsigned char *inbuffer)
float orientation_covariance[9]
float angular_velocity_covariance[9]