Modelcore
Velocity motion model
Also called velocity-based motion model.
A probabilistic model of the next pose of a planar robot given linear and angular velocity commands with noise.
The velocity motion model gives the probability of the next pose of a planar robot, given the linear and angular velocity that it was told to drive with. A pose is a position and a heading . If the robot followed the command exactly, with constant velocities and for a time , it would move on a circular arc. Real robots do not follow commands exactly, so the model adds Gaussian noise to both velocities and also adds a small noisy rotation at the end. The result is the motion model of the Bayes filter, with the control . Since it needs only the command, it can be used before the motion happens, for prediction and planning. The notation is the one of Thrun, Burgard and Fox (2005).
The machine
State. The pose before the motion and after it, in meters and radians.
Input. The command : a linear velocity in m/s and an angular velocity in rad/s, held constant for the time step in seconds.
Noise. The robot executes noisy velocities and a final rotation rate:
The second argument of is a variance. The printings of the source and many course notes differ: some use the standard deviation instead. The two forms are different models, and alpha values fitted for one do not carry over.
Parameters. Six numbers . They carry units, since each adds a squared linear and a squared angular velocity. They depend on the robot, its controller and the floor, and they are fitted to data.
Output. With ,
The robot moves on a circle of signed radius around the center . For the arc becomes a straight line, and , and code must treat this case on its own.
Standing assumptions. The robot moves in a plane, and the velocities are constant during ; a real controller changes them during the step. The three errors are independent of each other and of the errors of earlier steps, which is an approximation. The model is the unicycle model with noise, so it fits robots that can follow any arc, such as a differential drive. It does not fit a car, whose turning radius has a lower bound.
Two algorithms. Sampling draws and applies the output equations. The closed form inverts the output equations. Given and , the center of the circle through the two positions that is tangent to the start heading is with
The turn is , wrapped into . Then , with the signed radius , and . The closed form returns the product of the Gaussian densities of , and .
Example. Start at with m/s, rad/s and s. The noise-free end pose is , on the circle of radius 2 around . The closed form gives , the center , , and so , and . With every , each variance is , and .
What it counts
The model assigns a probability to a motion under a command. It gives the density for a hypothesized end pose, which grid filters such as the histogram filter need, and samples of , which a particle filter needs. Both take arithmetic operations and trigonometric calls per pose, so the prediction step of a filter with particles costs . The model also predicts the mean motion of a command, which a planner can use before the robot moves.
Relation to other models
- Odometry motion model. Uses the motion that the wheel encoders measured, as a rotation, a translation and a rotation, instead of the command. Thrun, Burgard and Fox (2005) note that odometry is usually more accurate than the commanded velocities, so the odometry model is the usual choice for localization when encoders exist. The velocity model is the one available for planning and for robots without encoders.
- Unicycle model and differential drive model. The noise-free output equations are the exact solution of the unicycle equations , , with constant and . A differential drive maps its two wheel speeds to .
- Kinematic bicycle model. Also moves on arcs under constant inputs, but its curvature is bounded by the steering limit, and its input is a steering angle, not .
- EKF localization. Linearizes the output equations around the command. The noise of is mapped into pose space by the Jacobian of the output equations with respect to the control.
- Dead reckoning. Integrating the noise-free output equations step by step is dead reckoning from commands.
Known results in the model
- Theorem (why the final rotation is needed). Without , the end pose depends on only two random numbers, and , so it lies on a two-dimensional surface in the three-dimensional pose space. On that surface the heading is fixed by the position: the chord from to has the direction , so , where is the direction of the chord (for , modulo ). The distribution of then has no density, and every pose off the surface has probability zero, however close it is to the surface. The term gives the end pose a density in all three coordinates. In the example the chord direction is .
- Theorem (change of variables). For fixed , the map has a Jacobian determinant of absolute value . Proof: enters only , with coefficient , so the determinant is times the determinant of with respect to . After a rotation to , with , the position is , and a direct computation gives that determinant as . Hence is a density over the controls, and the density over poses is divided by this factor. In the example the factor is , and the pose density at the noise-free end pose is about . The factor tends to as and is zero for , where the position does not depend on .
- The sign of the velocity. With the unsigned radius , the formula gives the sign of , which is wrong whenever and have opposite signs. For example, a robot at that drives forward with and turns right with gets from that formula, and one that backs up with , ends at and gets . The signed radius above, the position of the center to the left of the start heading, fixes this.
- Degenerate cases. The denominator of is zero when the end position lies on the line of the start heading. Then the motion is straight, , and is the signed distance along the heading divided by . When the end position equals the start position, and is not determined by the positions. The closed form must handle both cases on their own, and the wrap of assumes .
- Heuristic (fitting the alphas). The alphas are fitted to data, for example by driving fixed commands and matching the spread of the end poses. The Gaussian shape, the constant velocity over and the independence of the errors over time are modeling choices.
References
- Sebastian Thrun, Wolfram Burgard and Dieter Fox, Probabilistic Robotics, MIT Press, 2005, Chapter 5, Section 5.3 (the velocity motion model: the closed form density, the sampling algorithm and the derivation with the final rotation)
Where this leads
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 1MSSP0 Edit this page History Report an error Markdown