9.1 Tracking 2D Orientation

This section explains how the orientation of a rigid body is estimated using an inertial measurement unit (IMU). The main application is determining the viewpoint orientation, $ R_{eye}$ from Section 3.4, while the user is wearing a VR headset. Another application is estimating the orientation of a hand-held controller. For example, suppose we would like to make a laser pointer that works in the virtual world, based on a direction indicated by the user. The location of a bright red dot in the scene would be determined by the estimated orientation of a controller. More generally, the orientation of any human body part or moving object in the physical world can be determined if it has an attached IMU.

To estimate orientation, we first consider the 2D case by closely following the merry-go-round model of Section 8.1.2. The technical issues are easy to visualize in this case, and extend to the more important case of 3D rotations. Thus, imagine that we mount a gyroscope on a spinning merry-go-round. Its job is to measure the angular velocity as the merry-go-round spins. It will be convenient throughout this chapter to distinguish a true parameter value from an estimate. To accomplish this, a ``hat'' will be placed over estimates. Thus, let $ \hat{\omega}$ correspond to the estimated or measured angular velocity, which may not be the same as $ \omega $, the true value.

How are $ \hat{\omega}$ and $ \omega $ related? If the gyroscope were functioning perfectly, then $ \hat{\omega}$ would equal $ \omega $; however, in the real world this cannot be achieved. The main contributor to the discrepancy between $ \hat{\omega}$ and $ \omega $ is calibration error. The quality of calibration is the largest differentiator between an expensive IMU (thousands of dollars) and cheap one (a dollar).

We now define a simple model of calibration error. The following sensor mapping indicates how the sensor output is related to true angular velocity:

$\displaystyle \hat{\omega}= a + b  \omega .$ (9.1)

Above, $ a$ and $ b$ are called the offset and scale, respectively. They are unknown constants that interfere with the measurement. If $ \omega $ were perfectly measured, then we would have $ a = 0$ and $ b = 1$.

Consider the effect of calibration error. Comparing the measured and true angular velocities yields:

$\displaystyle \hat{\omega}- \omega = a + b  \omega - \omega = a + \omega (b-1) .$ (9.2)

Now imagine using the sensor to estimate the orientation of the merry-go-round. We would like to understand the difference between the true orientation $ \theta $ and an estimate $ \hat{\theta}$ computed using the sensor output. Let $ d(t)$ denote a function of time called the drift error:

$\displaystyle d(t) = \theta(t) - \hat{\theta}(t) .$ (9.3)

Note that $ d(t)$ might be negative, which could be forced into being positive by applying the absolute value to obtain $ \vert d(t)\vert$. This will be avoided to simplify the discussion.

Suppose it is initially given that $ \theta(0) = 0$, and to keep it simple, the angular velocity $ \omega $ is constant. By integrating (9.2) over time, drift error is

$\displaystyle d(t) = (\hat{\omega} - \omega)t = (a + b  \omega - \omega)t = (a + \omega (b-1))t .$ (9.4)

Of course, the drift error grows (positively or negatively) as $ a$ deviates from 0 or as $ b$ deviates from one; however, note that the second component is proportional to $ \omega $. Ignoring $ a$, this means that the drift error is proportional to the speed of the merry-go-round. In terms of tracking a VR headset using a gyroscope, this means that tracking error increases at a faster rate as the head rotates more quickly [168].

At this point, four general problems must be solved to make an effective tracking system, even for this simple case:

  1. Calibration: If a better sensor is available, then the two can be closely paired so that the outputs of the worse sensor are transformed to behave as closely to the better sensor as possible.
  2. Integration: The sensor provides measurements at discrete points in time, resulting in a sampling rate. The orientation is estimated by aggregating or integrating the measurements.
  3. Registration: The initial orientation must somehow be determined, either by an additional sensor, or a clever default assumption or start-up procedure.
  4. Drift error: As the error grows over time, other sensors are needed to directly estimate it and compensate for it.
All of these issues remain throughout this chapter for the more complicated settings. The process of combining information from multiple sensor readings is often called sensor fusion or filtering.

We discuss each of these for the 2D case, before extending the ideas to the 3D case in Section 9.2.



Subsections
Steven M LaValle 2016-12-31