Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output of imu_filter_madgwick is skewed over time #184

Open
phu251099 opened this issue Aug 26, 2023 · 2 comments
Open

output of imu_filter_madgwick is skewed over time #184

phu251099 opened this issue Aug 26, 2023 · 2 comments

Comments

@phu251099
Copy link

I am currently using a filter to filter out the raw IMU value from the D435i camera but it seems that the yaw value on the continuous Z increases (or decreases) over time even though the camera mounted on the robot is stationary. Can anyone help me with this problem? Thank you guys in advance.

1570495249995420378.mp4
@mintar
Copy link
Collaborator

mintar commented Aug 28, 2023

There's probably a drift in the IMU yaw angle of the D435i camera. You could plot the IMU output to find out.

@Kaiser-Wang
Copy link

I had the same issue. The D435i camera only outputs angular velocity and acceleration. It doesn't have a magnetometer and therefore the use_mag is set to false while using imu_filter_madgwick to get orientation.

The angular velocity is not perfectly 0 rad/s and contains small noises (within 0.01 rad/s) when standing still. The acceleration is also not perfectly 9.81 m/s^2 when sitting on a flat table (it's about 9.7 m/s^2). Both angular velocity and acceleration are steady (don't drift over time) but the calculated orientation (especially yaw around world vertical axis) drifts over time (about a few degrees every minute).

The inaccurate acceleration can lead to errors in the estimation of roll and pitch angles but shouldn't cause the yaw angle to drift over time. The angular velocity contains some noises that can accumulate errors in orientation over time but shouldn't these noises be filtered by the imu_filter_madgwick package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants