Wheeled Robot Control: Differential Drive Odometry Tutorial

Added:

Dynamic Modeling and Slip Compensation

Traditional differential drive kinematics and wheel odometry rely on the assumption of ideal 'pure rolling without slipping' (non-holonomic constraints). In real-world environments, however, robots frequently experience wheel slip, skidding, and surface irregularities, causing rapid error accumulation (drift) in dead reckoning. Critics argue that purely kinematic models are fundamentally insufficient for reliable navigation. Instead, alternative approaches advocate for dynamic modeling—which accounts for forces, mass, and tire-ground interaction physics—often coupled with exteroceptive sensor fusion (like Visual-Inertial Odometry or LiDAR SLAM). By integrating dynamic slip estimation, robots can correct for the physical limitations of wheel encoders, offering robust localization where kinematic odometry fails.

Basic trigonometry and 2D coordinate transformations, including translation and rotation in a Cartesian plane.
The working principles of rotary wheel encoders and how they translate physical wheel rotations into digital ticks.
Fundamental concepts of linear and angular velocity, along with basic calculus for time-integration.
An introductory understanding of kinematics, specifically the difference between holonomic and non-holonomic constraints.
Analyzing and mathematically modeling cumulative odometry error propagation (drift) over time.
Implementing sensor fusion techniques (such as the Extended Kalman Filter) to combine wheel odometry with IMU and GPS sensor data.
Designing motion control algorithms (like PID controllers or Pure Pursuit) to guide the robot along a desired trajectory using odometry feedback.
Exploring simultaneous localization and mapping (SLAM) frameworks that rely on odometry as a primary motion model input.
53.2K views1.4Klikes42:15@ccirobotics8123Original Release: 2019-09-11

This video explains how differential drive robots use wheel encoders to compute odometry (position and orientation) through geometric modeling. The key formulas are: distance traveled by each wheel DL = ((SL - S_prev)/Q) × C, change in orientation Δθ = (DR - DL)/(2×RW), and change in position D = (DL + DR)/2. For velocity, linear velocity V = (VL + VR)/2 and angular velocity θ̇ = (R × (VR - VL))/(2×RW). The fundamental non-holonomic constraint for differential drive robots is Ẏ × cos(θ) - Ẋ × sin(θ) = 0, meaning robots cannot move sideways instantaneously—they must rotate and translate simultaneously.