Get Roll/Pitch/Yaw from IMU not correct
Hi, I have 2D robot with IMU. I am trying to extract the roll/pitch/yaw data from the IMU message but found the results were not what I expected.
At the beginning, the IMU orientation (x, y, z, w) is (-0.08443, -0.5308, -0.0665, 0.01739), the correspondent yaw is about 64 degree. Then the car rotate about 90 degree, the IMU reported orientation is (0.8799, 0.4707, 0.0645, -0.0027) and the yaw is about 54 degree. The difference between 64 and 54 is far from 90 degree. Why?
How are you performing the conversion from quaternion values to the yaw value?
This is what I used:
I am thinking may be the IMU orientation is related to the robot the IMU device attached to? Even the car rotated 90 degree, since the IMU is fixed on the car, yaw did not change much...