Plotting orientation in 3-D plot using quaternion

조회 수: 39 (최근 30일)
Ofir Yaish
Ofir Yaish 2018년 8월 5일
댓글: Brendan Jenkins 2021년 4월 12일
Hello, I getting a real time information from 9DoF IMU sensor (gyro, magnetometer and accelerometer), and I'm using a well known function "MahonyQuaternionUpdate" to get the Quaternion coordination: q0, q1, q2 and q4. I know how to translate the Quaternion coordination to euler angles (pitch, yaw and roll), and plot by then the orientation of the object in 3D. My problem is that pitch, yaw and roll are has limited range of angels. pitch- from -90 to 90,and once you get angel over 90, the angel start to reduce to 0. roll- from -180 to 180, and it's working fine. Yaw- I think that is the same as pitch. I read that this limited range situation is due to problem called gimbal lock, and I understood that if I will not translate the Quaternion coordination to euler angles, I can get full orientation of the body in 3-D.
Therefore, My question is how I can plot orientation in 3-D using quaternion without losing the full orientation that I lost using euler angles. thank you.
  댓글 수: 3
Hutin Puy
Hutin Puy 2020년 2월 21일
I have the same question.
Does anybody solve this problem??
Brendan Jenkins
Brendan Jenkins 2021년 4월 12일
Same question let me knowif you figure this out

댓글을 달려면 로그인하십시오.

답변 (1개)

Joel Handy
Joel Handy 2019년 8월 12일
편집: Joel Handy 2019년 8월 12일
Check out this link which explains the quaternion mah required.

카테고리

Help CenterFile Exchange에서 Quaternion Math에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by