Atlas Robotics
Robot KinematicsIntermediate

Mecanum robot kinematics: how 4 wheels enable movement in every direction

Atlasbot · 17/8/2026 · 11 min read

Mecanum robot kinematics: how 4 wheels enable movement in every direction
4 Mecanum wheel with 45° inclined rollers creating combined force in all directions

The Differential Drive article clearly stated the limitation: the differential-drive robot cannot move sideways, it always has to turn its head before moving in another direction. wheel Mecanum — used in this site's autonomous Mecanum Robot and Atlas A2 projects — solves that limitation, allowing the robot to walk sideways, diagonally, and rotate in place without having to rotate the front body.

Key concepts

Unlike a normal wheel (flat contact surface, only generating force in the correct rolling direction), the Mecanum wheel has a series of small rollers mounted at an angle of 45° around the wheel rim. When the wheel rotates, the friction force at contact point is not generated in the rolling direction of the wheel, but in the direction perpendicular to the roller axis — 45° deviation from the normal direction of rotation.

Four Mecanum wheels on a robot are mounted in two symmetrical tilt directions (X-style viewed from above) — with these 4 different 45° offset force vectors, coordinating the speeds of the 4 wheels allows the synthesis of force in any direction in the plane.

How it works

differential-drive robot can only independently control 2 quantities (v, ω) from 2 wheels. Mecanum robot with 4 independently controlled wheels with 3 degrees of freedom at the same time: forward/backward (vx), sideways (vy), and rotation (ω):

v1 = vx − vy − ω·(lx+ly)/2 # front-left wheel
v2 = vx + vy + ω·(lx+ly)/2 # front-right wheel
v3 = vx + vy − ω·(lx+ly)/2 # rear-left wheel
v4 = vx − vy + ω·(lx+ly)/2 # rear-right wheel

In which lx, ly are half the distance between the wheels along the two axes. These four formulas are the inverse kinematics of the Mecanum robot — knowing the desired speed of the whole robot, deducing the speed to set for each individual wheel.

Summary: In exchange for the ability to move sideways, the Mecanum robot must accurately control all 4 wheels synchronously - small deviations between the wheels cause more slippage than differential-drive robots, this is the reason why the odometry of Mecanum robots is often less accurate in practice than the odometry of differential-drive robots of the same size.

Place vx = 0, ω = 0, only vy ≠ 0 left:

v1 = −vy      v2 = +vy      v3 = +vy      v4 = −vy

Two diagonal wheels rotate in the same direction, the other two diagonal wheels rotate in opposite directions — no similar formula is possible with differential-drive robots. This is the core mechanical difference that explains all of Mecanum's "go in every direction" advantage.

Technical details

Formulas

The reverse direction — knowing the measured 4-wheel speed (from encoder), calculating the actual vx, vy, ω for odometry — is forward kinematics of Mecanum, more complicated than differential-drive robot because the system has 4 equations but only 3 unknowns (remaining 1 equation):

System of 4 equations, 3 unknowns (vx, vy, ω) — using pseudo-inverse matrix
instead of regular matrix inversion (only applicable to square matrices)

[vx, vy, ω]ᵀ = (JᵀJ)⁻¹Jᵀ × [v1,v2,v3,v4]ᵀ (J is the 4×3 coefficient matrix above)

The residual equation (4 instead of 3) is actually an advantage — allowing to estimate and partially compensate for wheel slip by cross-comparing between 4 measurements instead of relying absolutely on any one wheel.

Parameters

ParametersTypical value
Roller tilt angle45° (most common standard)
Distance lx, ly (small-medium AMR)0.15 – 0.3m per half axis

Practical applications

Mecanum's strafe ability is especially valuable in narrow spaces such as aisles between shelves in a warehouse — the differential-drive robot needs to perform a multi-step 3-point turn to align into the correct parking position, while the Mecanum robot only needs to slide horizontally directly into the correct position without rotating its body, significantly saving time and space for manipulation — this is the reason why AMR projects carry goods in Narrow spaces (like the Atlas A2) favor the Mecanum configuration at the expense of lower control complexity and odometry accuracy.

Practical example

def mecanum_ik(vx, vy, omega, lx, ly):
    L = (lx + ly) / 2
    v1 = vx - vy - omega * L  # front-left
    v2 = vx + vy + omega * L  # front-right
    v3 = vx + vy - omega * L  # rear-left
    v4 = vx - vy + omega * L  # rear-right
    return v1, v2, v3, v4

# Diagonal movement: forward 0.3 m/s and right 0.2 m/s, no rotation
v1, v2, v3, v4 = mecanum_ik(vx=0.3, vy=-0.2, omega=0, lx=0.2, ly=0.15)
print(f"v1={v1:.2f} v2={v2:.2f} v3={v3:.2f} v4={v4:.2f}")
Output:
v1=0.50 v2=0.10 v3=0.10 v4=0.50

Four wheels run at 2 different speeds (0.5 and 0.1 m/s) to synthesize diagonal motion — no wheel rotates in the exact direction of the robot's actual motion, visually demonstrating how four 45° offset forces synthesize into 1 arbitrary direction of movement.

Common mistakes

  • Installing rollers in the wrong direction when changing wheels — Mecanum wheels have "forward/reverse" properties (left and right are mirror images of each other, not interchangeable) — installing on the wrong side completely breaks the kinematics formula, the robot moves in the wrong direction even though the code is completely correct.
  • Unsuitable for use on floors — the small rollers on the Mecanum wheel need a hard, flat, low-friction surface that prevents free rolling — carpeted or rough floors prevent the rollers from rolling properly, breaking the mathematical assumption behind the entire formula.
  • Underestimating odometry errors compared to differential-drive robots — as mentioned in the Principle of Operation section, wheel slippage is significantly more — Mecanum robots often need to calibrate the SLAM/AMCL more often to compensate for accumulated errors faster.
  • Wrong positive direction of vy — the "positive" convention for the y-axis (left or right) varies depending on the document/library — always check the convention before grafting control code from another source, wrong sign causes the robot to walk sideways in the opposite direction as expected.

Conclusion

Mecanum robot achieves multi-directional movement thanks to a special 45° inclined roller structure, exchanging the 2 degrees of freedom of the differential-drive robot for 3 independent degrees of freedom — the trade-off is the complexity of controlling 4 synchronized wheels and lower odometry accuracy due to more wheel slippage. This is also the last article of the Robot Kinetics section — Forward/Inverse Kinematics for both differential-drive robots and Mecanum is the direct foundation for the next section: Robot Control, where these kinematic formulas are included in the real-time control loop.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

Mecanum robot kinematics: how 4 wheels enable movement in every direction — Atlas Robotics