Robot Sensing: Measurements, Noise, and State Estimates
Published:
Different sensors answer different questions
Intuition first. An arm’s encoders report joint positions, but they do not directly say whether a cup has slipped. A camera may reveal the cup’s position while missing an occluded contact. Combining sensors is useful when their information complements one another.
| Sensor | Typical measurement | A limitation to remember |
|---|---|---|
| Joint encoder | Joint position or rotation | Does not directly locate external objects |
| Camera | Image intensity and colour | Occlusion and projection hide information |
| LiDAR | Range along measured rays | Range data still needs a frame and association |
| IMU | Angular rate and specific force | Bias and integration can cause drift |
| Force/torque sensor | Load at the sensor | Interpretation depends on mounting and contact |
An accelerometer measures specific force; recovering world-frame acceleration requires accounting for orientation and gravity. Merely integrating its raw readings twice is not a general position estimator.
Prediction and correction
A motion model predicts a state estimate forward. A new measurement supplies evidence for a correction. In a scalar linear example with measurement \(z=x+v\) and zero-mean noise, let \(\hat x^-\) be the prior estimate, \(P^-\) its error variance, and \(R\) the measurement-noise variance. The Kalman update is
These expressions assume the prior error and measurement noise are uncorrelated, with the stated linear measurement model. Gaussian assumptions make the update an exact posterior mean and variance. Kalman-filter course notes.
Worked example: uncertainty determines the weight
Suppose the predicted position is \(\hat x^-=1.0\) metre with variance \(P^-=0.04\;\mathrm{m}^2\). A sensor reports \(z=1.3\) metres with noise variance \(R=0.09\;\mathrm{m}^2\). Then
The correction favours the prior because its stated variance is smaller. The posterior standard deviation is approximately \(\sqrt{0.0277}=0.1664\) metres; variance and standard deviation have different units.
If the measurement variance were 0.01 instead, the gain would be 0.8 and the estimate 1.24 metres. More confidence in the measurement leads to a larger correction.
The assumptions can fail before the arithmetic does
Suppose two estimates both reuse the same camera detection. Treating them as independent evidence can count the same information twice and produce excessive confidence. Likewise, an unknown constant sensor bias is not explained by a zero-mean noise model merely because a variance was supplied.
Timing matters too. At 0.5 metres per second, a 0.1-second delay corresponds to 0.05 metres of motion. Combining the old position with a current joint reading without alignment describes a scene that may never have existed.
Calibration supplies the mapping between sensor units and geometry. A correct estimator using a wrong camera-to-base transform can confidently report the wrong location. The robot_localization sensor-data guide gives concrete examples of frame, sign, and covariance conventions.
Next, feedback control uses the estimate to correct motion. Rapid motor adaptation learns information about hidden dynamics from recent interaction history.
References
- Welch, G., & Bishop, G. An Introduction to the Kalman Filter: SIGGRAPH course notes.
- robot_localization maintainers. Preparing sensor data.
