|
@@ -5,7 +5,7 @@
|
|
|
* Author: corvin
|
|
|
* History:
|
|
|
* 20200403: init this file.
|
|
|
- **************************************************/
|
|
|
+**************************************************/
|
|
|
#include <ros/ros.h>
|
|
|
#include <tf/tf.h>
|
|
|
#include "imu_data.h"
|
|
@@ -70,11 +70,7 @@ int main(int argc, char **argv)
|
|
|
yaw -= 360.0;
|
|
|
|
|
|
//ROS_INFO("yaw:%f pitch:%f roll:%f",yaw, pitch, roll);
|
|
|
- q = tf::createQuaternionMsgFromRollPitchYaw(roll, pitch, yaw);
|
|
|
- imu_msg.orientation.x = q.x;
|
|
|
- imu_msg.orientation.y = q.y;
|
|
|
- imu_msg.orientation.z = q.z;
|
|
|
- imu_msg.orientation.w = q.w;
|
|
|
+ imu_msg.orientation = tf::createQuaternionMsgFromRollPitchYaw(roll, pitch, yaw);
|
|
|
imu_msg.orientation_covariance = {0.0025, 0, 0,
|
|
|
0, 0.0025, 0,
|
|
|
0, 0, 0.0025};
|