Modelcore
Odometry motion model
Also called odometry-based motion model.
A probabilistic model of motion as a rotation, a translation and a rotation read from wheel odometry, each with noise.
The odometry motion model gives the probability that a planar robot moves from one pose to another, given what its wheel encoders report. A pose is a position and a heading . The encoders do not measure the true motion: wheels slip, the floor is uneven, and the wheel radius is not known exactly. The model treats the reported motion as a measurement of the true motion. It splits each motion into three steps, a rotation, a straight translation and a second rotation, and adds independent zero-mean Gaussian noise to each step. The result is the motion model of the Bayes filter, where the control is a pair of odometry readings. Monte Carlo localization draws samples from it, and EKF localization uses a linearized form of it. The notation is the one of Thrun, Burgard and Fox (2005).
The machine
State. The pose of the robot in the world frame, in meters and radians. The pose before the motion is and the pose after it is .
Input. Two readings of the internal odometry of the robot, , with and . The odometry frame drifts against the world frame, so only the relative motion between the two readings is used. It is the motion that the encoders report:
The first rotation turns the robot towards the end point, the translation drives it there, and the second rotation turns it to the final heading.
Noise. The true motion is the reported motion minus independent Gaussian errors. In the variance form used on this page,
The second argument of is a variance. The printings of the source and many course notes differ here: some use the standard deviation instead. The two forms are different models, and alpha values fitted for one do not carry over to the other.
Parameters. Four dimensionless numbers . scales rotation noise from rotation, rotation noise from translation, translation noise from translation, and translation noise from rotation. They depend on the robot and the floor, and they are fitted to data; there are no correct default values.
Output. The new pose is the old pose moved by the true motion:
Standing assumptions. The robot moves in a plane. The three errors are independent of each other, of the pose and of the errors of earlier steps; this independence is what makes the motion a Markov process, and it is an approximation (slip on a wet patch persists over several steps). Odometry is treated as a measurement and not as a control, so the model can be used only after the motion, not to plan it.
Two algorithms. Sampling draws and applies the output equations. The closed form takes a hypothesized pair , computes the motion that would produce it with the same three equations as for , and returns , the product of the three Gaussian densities of the differences . Angle differences must be wrapped into before the Gaussian is evaluated. Implementations differ in where they take the variances from: from the reported motion , as the sampler does, or from the hypothesized motion .
Example. The odometry reports and , so , and . Take . The variances are for each rotation (standard deviation rad) and for the translation (standard deviation m). A robot at ends at if there is no noise. At that pose the closed form returns .
What it counts
The model assigns a probability to a motion. It gives two things:
- the density for a hypothesized end pose, which the Bayes filter needs in its prediction step on a grid (histogram filter, Markov localization);
- samples of given and , which a particle filter needs.
Both take arithmetic operations and calls to , and for one pose. The prediction step of a particle filter with particles therefore costs , and the prediction step on a grid of poses costs if every pair of cells is evaluated. The model does not predict where the robot is in the world; it predicts how far the robot is from where the odometry says it moved, relative to the last pose.
Relation to other models
- Velocity motion model. Uses the commanded linear and angular velocities instead of odometry readings, and moves the robot on an arc instead of along a rotation, a translation and a rotation. Thrun, Burgard and Fox (2005) note that odometry is usually more accurate than the commands, so the odometry model is the common choice when encoders exist. The velocity model is needed for planning and control, before the motion has happened.
- Dead reckoning. Dead reckoning integrates the same odometry with no noise and no correction; it is the mean path of this model, up to the shrinking effect below. The errors grow without bound over time, which is why the noise model is used inside a filter that also has a measurement model, such as the beam range finder model.
- Differential drive model and unicycle model. These are the kinematic models that turn wheel rotations into the odometry pose . The odometry model sits on top of them and adds noise to their output.
- EKF localization. Linearizes the output equations around the mean motion. The noise is Gaussian in and is mapped into the pose space by the Jacobian of the output equations, so the pose noise in the filter is only approximately Gaussian.
Known results in the model
- Theorem (change of variables). The output map for a fixed has a Jacobian with determinant . Proof: the derivatives of with respect to form the matrix with , , , whose determinant is ; the third output adds a row , and does not depend on , so expanding along the last column gives . Hence, when the variances are taken from the reported motion, is the density of the motion parameters, and the density of the pose is (summed over every parameter triple that gives the same pose, which matters only when the noise can make the translation negative). The closed form that returns is therefore not a density over poses. In a particle filter this does not matter, since the sampler is exact. On a grid it adds a weight that favors poses far from .
- Measurement (the size of the factor). For the example above, a numerical integral of over a fine grid of end poses gives about , close to , and the integral of gives about . The pose density at the noise-free end pose is . With the variances taken from the hypothesized motion instead, the integral after the division is about , so that variant is not exactly a density in any coordinates.
- Theorem (the mean falls short). If , then , and the same holds for . Since and are independent, and , where is the variance of , and when the heading is not wrapped. So the mean position is not the noise-free position: it lies on the same line, closer to the start. In the example , and the mean is ; a Monte Carlo run with 200000 samples gave . The samples form a curved, banana-shaped cloud around the arc of radius , so a single Gaussian in fits them badly when the rotation noise is large.
- Pure rotation. When , the direction is not defined, and a tiny translation makes it jump. Implementations set below a small threshold on and put the whole rotation into . The same issue appears in the closed form for hypothesized poses with and .
- Heuristic (fitting the alphas). The alphas are fitted to data, for example by driving known paths and matching the spread of the end poses, or by maximum likelihood inside a localization run. The Gaussian shape and the independence of the three errors are modeling choices, not facts about wheels. Since the true errors are correlated in time, alphas fitted to single steps can make the predicted spread over many steps too small.
References
- Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 5, Section 5.4 (the odometry motion model: the closed form density in Section 5.4.1, sampling in Section 5.4.2 and the derivation in Section 5.4.3), and Chapter 2, Section 2.4 (the place of the motion model in the Bayes filter)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag P133N7 Edit this page History Report an error Markdown