Robotics · October 2026

Differential Drive Calculator

Kinematics and odometry for two-wheeled robots, worked out for you.

Contact the team
Differential Drive Calculator
The Differential Drive Calculator running in the browser.

About

About Differential Drive Calculator

Most mobile robots steer by driving two wheels at different speeds. The maths is short, but the details (units, signs, wheel separation, encoder counts) cause a large share of real-world bugs. The Differential Drive Calculator puts the maths in front of you with a drawing of the result.

Three calculators in one

  • cmd_vel to wheels: turn a ROS Twist command into wheel speeds in m/s, rad/s, RPM and encoder ticks per second, with the turning radius and a speed limit that keeps the robot on the same curve.
  • Wheels to cmd_vel: turn measured wheel speeds back into the robot's linear and angular velocity.
  • Encoder odometry: turn tick counts into a new pose using the exact arc update, and compare it with the simple straight-line update.

Who it is for

Anyone writing a motor driver node, configuring diff_drive_controller, or debugging odometry that drifts. The defaults are typical of small TurtleBot-style robots.

How it is checked

The calculator uses the same unicycle model as the ROS 2 diff_drive_controller. We test it with cases that have exact answers: equal wheel travel gives a straight line, opposite wheel travel gives a turn on the spot, and an arc of known radius ends exactly where geometry says it should.

Open the Differential Drive Calculator. The guides below derive the kinematics, follow a Twist message down to the motors, build odometry from encoders, calibrate the robot and limit its motion smoothly.

0Robots
0Online now
1Team members
0%Progress

Team

The people behind Differential Drive Calculator

The team that builds, runs and answers for this project on XPARO.

pankaj

Owner

Robotics Engineer specializing in ROS2, autonomous navigation, and full-stack robotic system development. Proven experience in building real-world robots with…

FAQ

Questions, answered

Which robots does it apply to?

Any robot with two independently driven wheels on one axis and passive casters, such as TurtleBot-style rovers, and skid-steer robots as an approximation.

Does it use the same equations as ros2_control?

Yes. It uses the standard unicycle model that the diff_drive_controller uses, with wheel separation and wheel radius as the two parameters.

Is the calculator free?

Yes. It is free and runs entirely in your browser.

Contact

Get in touch

Questions, ideas, or want to work with the team? Your message goes straight to the Differential Drive Calculator team on XPARO. Add your email if you'd like a reply.

How would you rate the project? (optional)