Main Content

Mobile Robot Kinematics Equations

Learn details about mobile robot kinematics equations including unicycle, bicycle, differential drive, and Ackermann models. This topic covers the variables and specific equations for each motion model [1]. For an example that simulates the different mobile robots using these models, see Simulate Different Kinematic Models for Mobile Robots.

Variable Overview

The robot state is represented as a three-element vector: [x y θ].

For a given robot state:

  • x: Global vehicle x-position in meters

  • y: Global vehicle y-position in meters

  • θ: Global vehicle heading in radians

For Ackermann kinematics, the state also includes steering angle:

  • ψ: Vehicle steering angle in radians

The unicycle, bicycle, and differential drive models share a generalized control input, which accepts the following:

  • v: Vehicle speed in meters/s

  • ω: Vehicle angular velocity in radians/s

Other variables represented in the kinematics equations are:

  • r: Wheel radius in meters

  • ϕ˙: Wheel speed in radians/s

  • d: Track width in meters

  • l: Wheel base in meters

  • ψ: Vehicle steering angle in radians

Unicycle Kinematics

The unicycle kinematics equations model a single rolling wheel that pivots about a central axis using the unicycleKinematics object.

The unicycle model state is [x y θ].

Variables

  • x: Global vehicle x-position in meters

  • y: Global vehicle y-position in meters

  • θ: Global vehicle heading in radians

  • ϕ˙: Wheel speed in meters/s

  • r: Wheel radius in meters

  • v: Vehicle speed in meters/s

  • ω: Vehicle heading angular velocity in radians/s

Kinematic Equations

Depending on the VehicleInputs name-value argument, you can input only wheel speeds or the vehicle speed and heading rate. This change in input affects the equations.

Wheel Speed Equation

[x˙y˙θ˙]=[rcos(θ)0rsin(θ)001][ϕ˙ω]Unicycle Equation of Motion

Vehicle Speed and Heading Rate Equation (Generalized)

When the generalized inputs are given as the speed v=rϕ˙ and vehicle heading angular velocity ω, the equation simplifies to:

[x˙y˙θ˙]=[cos(θ)0sin(θ)001][vω]Unicycle Equation of Motion

Bicycle Kinematics

The bicycle kinematics equations model a car-like vehicle that accepts the front steering angle as a control input using the bicycleKinematics object.

The bicycle model state is [x y θ].

Variables

  • x: Global vehicle x-position in meters

  • y: Global vehicle y-position in meters

  • θ: Global vehicle heading in radians

  • l: Wheel base, in meters

  • ψ: Vehicle steering angle in radians

  • v: Vehicle speed in meters/s

  • ω: Vehicle heading angular velocity in radians/s

Kinematic Equations

Depending on the VehicleInputs name-value argument, you can input the vehicle speed as either the steering angle or heading rate. This change in input affects the equations.

Steering Angle Equation

[x˙y˙θ˙]=[cos(θ)0sin(θ)0tan(ψ)l1][vω]

Vehicle Speed and Heading Rate Equation (Generalized)

In this generalized format, the heading rate ω can be related to the steering angle ψ with the relation ω=vltanψ. Then, the ODE simplifies to:

[x˙y˙θ˙]=[cos(θ)0sin(θ)001][vω]Unicycle Equation of Motion

Differential Drive Kinematics

The differential drive kinematics equations model a vehicle where the wheels on the left and right may spin independently using the differentialDriveKinematics object.

The differential drive model state is [x y θ].

Variables

  • x: Global vehicle x-position, in meters

  • y: Global vehicle y-position, in meters

  • θ: Global vehicle heading, in radians

  • ϕ˙L: Left wheel speed in meters/s

  • ϕ˙R: Right wheel speed in meters/s

  • r: Wheel radius in meters

  • d: Track width in meters

  • v: Vehicle speed in meters/s

  • ω: Vehicle heading angular velocity in radians/s

Kinematic Equations

Depending on the VehicleInputs name-value argument, you can input the wheel speed as either the steering angle or heading rate. This change in input affects the equations.

Wheel Speed Equation

[x˙y˙θ˙]=[r2cos(θ)r2cos(θ)r2sin(θ)r2sin(θ)-r/dr/d][ϕ˙Lϕ˙R]Differential-Drive Equation of Motion

Vehicle Speed and Heading Rate Equation (Generalized)

In the generalized format, the inputs are given as the speed v=r2(ϕ˙R+ϕ˙L) and vehicle heading angular velocity ω=rd(ϕ˙R-ϕ˙L). The ODE simplifies to:

[x˙y˙θ˙]=[cos(θ)0sin(θ)001][vω]Unicycle Equation of Motion

Ackermann Kinematics

The Ackermann kinematic equations model a car-like vehicle model with an Ackermann-steering mechanism using the ackermannKinematics object. The equation adjusts the position of the axle tires based on the track width so that the tires follow concentric circles. Mathematically, this means that the input has to be the steering heading angular velocity ψ˙, and there is no generalized format.

The Ackermann model state is [x y θ ψ].

Variables

  • x: Global vehicle x-position in meters

  • y: Global vehicle y-position in meters

  • θ: Global vehicle heading in radians

  • ψ: Vehicle steering angle in radians

  • l: Wheel base in meters

  • v: Vehicle speed in meters/s

Kinematic Equations

For the Ackermann kinematics model, the ODE is:

[x˙y˙θ˙ψ˙]=[cos(θ)0sin(θ)0tan(ψ)/l001][vψ˙]

References

[1] Lynch, Kevin M., and Frank C. Park. Modern Robotics: Mechanics, Planning, and Control. Cambridge University Press, 2017.

For an example the simulates the different mobile robot using these models, see Simulate Different Kinematic Models for Mobile Robots.