Robotics
Sensing position and motion
Robots measure their own movement with several kinds of sensor. A potentiometer gives a voltage that depends on a joint's angle. An encoder produces pulses as a shaft turns: an incremental encoder counts changes from a starting point, while an absolute encoder reports the actual position. An inertial measurement unit combines accelerometers, which measure acceleration including gravity, with gyroscopes, which measure rotation rate. Integrating a rate to get a position adds up small errors over time, so estimates such as wheel odometry or a gyroscope's heading slowly drift.
Why it mattersA wheeled robot that relies only on wheel encoders gradually loses track of where it is because small errors accumulate.