Reference configuration for interpreting quaternion data
Hi, I would like to follow up on this post: https://mbientlab.com/community/discussion/3183/sensor-fusion-reference-frame
I tried to find the answer by searching through the forum records but came up short. Apologies if it has been addressed before.
The quaternions describe an axis-angle rotation. Every rotation needs to be described relative to some reference configuration. Without knowledge of the reference configuration, the quaternion data is useless, unless you want to use it to find angular velocities.
Is there a universal reference configuration for each sensor to properly interpret the orientation described by the quaternions? I have been doing some testing and it does not appear to be the case. I would have guessed that the quaternion (w,x,y,z) = (1,0,0,0) would correspond to a sensor lying flat on a horizontal table with its local x-axis pointing North and its y-axis pointing West (according to the local tangent plane on the Earth's surface).
However, if I play around and look at the data as it is streamed:
then it seems as though the reference configuration of the sensor (the configuration at (w,x,y,z)=(1,0,0,0)) is dependent on the sensor orientation at the time instance when the data starts streaming. Here is what the data looks like when I precisely find the reference configuration:
I have found in all my tests that the (w,x,y,z)=(1,0,0,0) configuration is one in which the sensor is approximately lying flat on a horizontal table. If I preserve the initial heading angle and lay the sensor flat on the table, it seems that I get close to the reference configuration. But in all experiments, this configuration is not unique, but dependent on the initial sensor configuration at the start stream time.
Can anyone confirm if this is the case?