Wheel Odometry Calculator

Convert wheel encoder tick counts into position, heading change, linear velocity, angular velocity, and turning radius — the foundational calculation in every differential-drive robot’s base controller and ROS 2 odometry node.

⚙️ Input Parameters

Wheel Configuration
Common: 512, 1024, 2048, 4096
Measure actual outer tyre diameter
Distance between tyre contact patches
Encoder Readings (this interval)
Increment since last update
Encoder polling period

📊 Results

⚙️

Enter encoder tick counts for one time interval to compute position, heading, and velocity for your differential-drive robot.

Centre Distance Travelled
m
Left wheel distance
Right wheel distance
Heading change Δθ
Linear velocity v
Angular velocity ω
Turning radius

Wheel Odometry: The Foundation of Robot Dead-Reckoning

What This Calculates

Wheel odometry converts encoder tick counts into robot motion estimates using the differential drive kinematic model. The robot travels straight when both wheels turn equally; it turns when they differ. Δθ = (d_right − d_left) / wheel_separation captures this precisely. This runs continuously as a baseline in every robot, even those using SLAM or GPS correction.

When to Use It

  • Verifying your ROS 2 odometry node calculations before deployment
  • Debugging unexpected robot heading drift per-interval
  • Converting encoder resolution to real-world distance during robot setup
  • Calculating expected odometry accuracy over a test trajectory
  • Understanding odometry error before adding SLAM correction

Formula

d_L = (ticks_L/TPR) × π × diameter d_R = (ticks_R/TPR) × π × diameter d_centre = (d_L + d_R) / 2Δθ = (d_R − d_L) / wheel_separation v = d_centre / Δt ω = Δθ / Δt R_turn = d_centre / Δθ
ROS 2 connection: These values map directly to nav_msgs/Odometry: twist.linear.x = v, twist.angular.z = ω. Pose is accumulated by integrating Δθ and d_centre at each step: x += d_centre × cos(θ), y += d_centre × sin(θ), θ += Δθ. See the UDHY ROS 2 Jazzy Tutorial for a complete Python implementation of this odometry node.
Built by Dr. Dilip Kumar Limbu · Co-Founder, MooVita · Former Principal Scientist, A*STAR · UDHY Engineering Tools

FAQs on Wheel Odometry Calculator

Scroll to Top