﻿# Diff-drive geometry: command and odometry agreement can hide the same wrong wheel scale

A wheel radius used in inverse kinematics and encoder odometry can produce an internally consistent result without independently validating real ground displacement.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/robotics-diffdrive-shared-geometry-odometry-self-consistency/
Language: en

## The controller agrees with itself

A base receives a straight-motion command and its encoder odometry reports the expected travel. A separate physical reference shows a shorter displacement. The software comparison can be internally consistent because both paths use the same wrong geometry. Start by recording the fixed wheel parameters and multipliers used for the run. Agreement between desired body motion and geometry-derived odometry is useful for checking some implementation relationships, but it cannot independently calibrate the assumptions shared by both sides.

## Inverse kinematics converts body motion into wheel rotation

The reviewed [controller source](https://raw.githubusercontent.com/ros-controls/ros2_controllers/kilted/diff_drive_controller/src/diff_drive_controller.cpp) uses wheel separation for the angular contribution and divides each side’s linear command by its configured radius. The [parameter guide](https://control.ros.org/kilted/doc/ros2_controllers/diff_drive_controller/doc/userdoc.html) explains radius and separation effects. Preserve left and right multipliers as well as nominal values. A wheel angular-velocity command is not yet a ground-distance measurement. Its physical result also depends on the real effective radius, contact conditions and whether the commanded rotation is achieved.

## The odometry path uses geometry again

The reviewed [odometry implementation](https://raw.githubusercontent.com/ros-controls/ros2_controllers/kilted/diff_drive_controller/src/odometry.cpp) converts encoder wheel positions into travel with configured radii, then computes body displacement using the separation. Consider fixed equal-radius settings under an ideal no-slip thought experiment. If inverse kinematics divides by the configured radius and odometry multiplies by that same radius, their software scale can cancel. The actual ground travel still uses the physical wheel radius. This is an analytical dependency argument, not a measured accuracy result or a claim that real slip is absent.

## Open-loop odometry is a different evidence source

The guide separately defines open_loop as deriving odometry from commanded values instead of feedback. Do not mix that mode with the encoder-based example or describe its reported displacement as measured wheel motion. In either case, retain the generation path of the pose estimate. Changing a covariance number does not remove shared calibration dependence. Likewise, a visually smooth odometry trace does not identify whether the underlying geometry, encoder scale or external reference alignment is correct.

## Design a calibration comparison with an independent reference

For a passive first check, compare the forward and inverse calculations using declared synthetic wheel geometry and a separate ground-motion model. Keep configured and model radii distinct so shared-parameter cancellation is visible. A later physical calibration needs its own qualified measurement protocol, reference frame and contact conditions. No controller, simulator or robot was run here. Acceptance requires explaining both internal command/odometry consistency and error against the independent reference, without attributing every residual to wheel radius or assuming a single correction generalizes to turning.

## Choose evidence that does not reuse the same assumption

[MVSEC reference provenance](/journal/fg2-mvsec-pose-odometry-different-optimization-reference/) distinguishes trajectory evidence by generation history. [ACRONYM physical scale](/journal/fg2-acronym-object-scale-normalization-invalidates-grasp-geometry/) explains another geometry-dependent interpretation. A diff-drive qualification should retain parameter identity, feedback mode and independent displacement evidence together. Internal agreement can validate a conversion path while leaving physical scale unresolved. The useful outcome states both facts, rather than calling the wheel geometry calibrated because the controller’s own odometry repeats its intended motion.
