ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to deal with imu_drift when robot is stationary ?

asked 2017-01-18 03:06:14 -0500

jxl gravatar image

Hello,

  • I'm using one imu and my odom to feed robot_pose_ekf to get a more accurate tf (from odom to base),and then let amcl use this tf.But I found that when robot is stationary ,the imu output orientation data is drafting over time. When robot is moving, the estimated pose from amcl is pretty good. My imu is mpu6050,it can output rotation,angular_velocity and linear accleration .This is imu drift picture when robot is stationary for about 30 minutes. The red line is imu_yaw get from mpu6050 topic. image description  imu drift .
  • when i use imu_filter_madgwick,make robot_pose_ekfto use the filtered imu_data,this is the result.The pink line got from imu_filter_node:/imu_data topic,the purple line got from mpu6050 topic:/imu_data_raw. It is werid the raw yaw data(purple line) from mpu6050 doesn't drift and the filtered yaw data(pink line)is drifting,Why???
  • image descriptionimu_filtered
  • Does imu_filter_madgwick package can improve robot_pose_ekf's output , when robot is stationary?? Or robot_localization can help this ?? How to get a accurate yaw estimate when robot is stationary?
  • Thanks in advance!!!! If i describe my question not clearly,please let me know .
edit retag flag offensive close merge delete

Comments

have you figured this out?

aarontan gravatar image aarontan  ( 2018-08-08 11:16:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-02-19 01:14:46 -0500

vishrut gravatar image

No, you will always face this problem when you are working with real robot. i way have solved this problem by saving amcl_pose when by robot stop for more than 10 secs and publishing this saved pose at initialpose topic at every 20 secs.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2017-01-18 03:06:14 -0500

Seen: 1,034 times

Last updated: Feb 19 '21