Modelintro
Differential-drive model
Also called differential-drive kinematics.
Two independently driven wheels on one axle, whose wheel speeds map to the forward and turning speeds of a unicycle.
The differential-drive model gives the motion of a robot with two drive wheels on one axle, each with its own motor, and passive casters for balance. It maps the two wheel speeds to the forward speed and the turning rate of the midpoint of the axle. Equal speeds drive straight, unequal speeds turn, and opposite speeds turn on the spot. Most indoor mobile robots and robot vacuum cleaners use this drive. The map from wheel speeds to is linear and invertible, so the robot moves exactly as the unicycle model: the unicycle has and as inputs, and this page adds the wheel geometry, the wheel speed limits and the wheel angles that encoders measure.
The machine
Parameters. The wheel radius (m), the same for both wheels, and the half distance (m) between the wheel contact points, so the wheels are apart.
State. The pose of the midpoint of the axle. For odometry, add the wheel angles and (rad).
Inputs. The wheel angular speeds and (rad/s), positive when the wheel drives the robot forward.
Equations.
The inverse map is and .
Constraints. With the wheel angles in the state, , the model is three Pfaffian constraints: each wheel rolls without slip along its plane, and neither slips along the axle.
Standing assumptions. Rigid body on a flat floor. Coaxial wheels of known, equal radius that roll without slipping in any direction, with a point contact. Casters roll freely and do not resist motion. The wheel speeds are inputs, so motor dynamics, inertia and the friction limit are not in the model.
What it counts
The model predicts the pose for given wheel speeds, and, from encoder counts, the pose change for given wheel rotations.
Turning radius. For , the instantaneous center of rotation is on the line of the axle, at the signed distance from the midpoint, to the left when . It is the instant center of velocity of the chassis. For , and the robot turns on the spot.
Exact pose update. For wheel speeds that are constant over a time , the pose moves on an arc of radius through the angle . The arc formula of the unicycle gives the new pose with no integration error.
Odometry. If the encoders report wheel rotations and over a sample, the distance traveled by the midpoint is and the change of heading is . Under the assumption that each wheel speed was constant during the sample, the motion was an arc of length , and the pose update is exact. This is dead reckoning; the odometry motion model adds noise to it.
Worked example. Take m and m. With rad/s and rad/s, m/s and rad/s, so m. After 1 s from the pose is . To drive at m/s with rad/s, set rad/s and rad/s.
Speed limits. If each wheel speed is bounded by , the reachable pairs are the diamond . In the example with rad/s, the top speed is 1 m/s when driving straight and the top turning rate is 6.667 rad/s when turning on the spot, but not both at once. Planners such as the dynamic window approach search inside this region.
Calibration. The heading from odometry is inversely proportional to the value of that the robot uses. If that value is 1% smaller than the true one, a full turn on the spot is measured as , an error of 3.6 degrees, and every later position inherits it. Errors in and in the ratio of the two wheel radii are the usual systematic odometry errors. This is a heuristic statement about real robots; the model itself has no error.
The model does not predict wheel slip, which happens on hard acceleration, on smooth floors and when a caster sticks.
Relation to other models
- Unicycle model. The same paths, with as inputs. Every result about the unicycle holds here through the invertible map above.
- Skid steering. Tracked vehicles and four-wheel robots with fixed wheels on each side also use left and right speeds. They must slip to turn, so the effective value of is larger than the geometric one and depends on the floor. The differential-drive equations with a fitted are a common approximation.
- Kinematic bicycle model. A car cannot turn on the spot; its turning radius is bounded below. A differential drive has no such bound.
- Omnidirectional robot. Wheels with rollers remove the constraint along the axle, so the chassis can move sideways.
- Classification. In the classification of Campion, Bastin and d'Andréa-Novel (1996), the differential drive has degree of mobility 2 and degree of steerability 0, type (2,0), as does the unicycle.
Known results in the model
- The wheel angles are partly holonomic (theorem). Subtract the first two constraints: . This integrates to $\theta - r(\varphi_R - \varphi_L)/(2d) = $ const. So the heading is a function of the wheel angles, and the reachable set in the five variables has dimension 4. The other two constraints are nonholonomic: the robot can reach any position and heading, with the wheel angle sum free.
- Controllability and stabilization (theorems). As for the unicycle: controllable by the Lie algebra rank condition, with no continuous time-invariant feedback that stabilizes a pose, by Brockett's condition.
- Time-optimal paths (theorem). With bounded wheel speeds, the fastest paths between two poses are made of turns on the spot and straight lines, with both wheels at full speed, and there is a finite list of their types. Balkcom and Mason found this structure in 2002.
- Odometry error grows without bound (theorem in the noisy model). With independent noise on each wheel increment, the variance of the heading grows linearly with the distance, and the position error grows faster. So odometry needs a correction from outside, as in a localization filter.
References
- Roland Siegwart, Illah R. Nourbakhsh and Davide Scaramuzza, Introduction to Autonomous Mobile Robots, 2nd edition, MIT Press, 2011, Section 3.2 (kinematic models and constraints: forward kinematic models, wheel kinematic constraints and the differential-drive example)
- Kevin M. Lynch and Frank C. Park, Modern Robotics: Mechanics, Planning, and Control, Cambridge University Press, 2017, Section 13.3.1 (the differential-drive robot and its map to the unicycle) and Section 13.4 (odometry)
- Steven M. LaValle, Planning Algorithms, Cambridge University Press, 2006, Section 13.1.2 (the differential drive among the kinematic models of wheeled systems)
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 | W4 complete |
|
Tag SNKBY0 Edit this page History Report an error Markdown