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

Incorrect Yaw from imu_filter_magwick at ENU and NED

asked 2023-01-16 21:15:31 -0500

sdu568 gravatar image

updated 2023-01-18 05:38:45 -0500

Hello all,

Currently, I am using a PhidgetSpatial 3/3/3 1042. However, I encounter strange yaw output when passing the reading of my IMU to imu_filter_magwick.

1

When I set "world_frame" to "ned", my yaw value (after subscribe to /imu/rpy/filtered) gives 0 degree when facing __east__ and -90 degree when facing __north__. On the other hand, If I select "enu", my yaw value is 0 when facing __north__, and -90 when facing __east__.

Originally, base on my reading from https://answers.ros.org/question/3649... I was expecting in 'ENU', yaw = 0 when face __east__, and yaw=-90 when face __north__. And in "NED" mode, yaw =0 when face __north__ and yaw=90 when face __east__

2

Aside from the weird 90 degree offset. Something I find also strange. In "NED" mode,my yaw = 0 +/- 5 degree when face __east__. However, my yaw = -75 degree when facing North. On the other hand, yaw = 180 degree when face __west__, yaw = 75 when face __south__.

Thus, my question is why is the yaw offset rather huge when face __south__ and __north__.

Atempt

  1. Tried to calibrate IMU with the company's firmware.

Config file

imu_filter:
  ros__parameters:
    stateless: false
    use_mag: true
    publish_tf: true # pueublish /odom to imu_link
    reverse_tf: false
    fixed_frame: "odom"
    constant_dt: 0.0
    publish_debug_topics: false
    world_frame: "ned"
    gain: 0.1
    zeta: 0.0
    mag_bias_x: 0.0
    mag_bias_y: 0.0
    mag_bias_z: 0.0
    orientation_stddev: 0.1
    publish_debug_topics: true
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-01-29 16:36:33 -0500

sdu568 gravatar image

So I realized what I wrong.

The X-axis for the imu is pointing to the left side, not pointing forward. Is a very naive mistake of mine.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-01-16 21:15:31 -0500

Seen: 59 times

Last updated: Jan 29 '23