Algorithm Search⌘K

Modelintro

Unicycle model

Also called unicycle kinematics.

A planar robot with pose x, y, theta that moves forward at speed v along its heading and turns at rate w. It is the simplest nonholonomic system and the base of most wheeled-robot models.

The unicycle model is the kinematic model of a body that moves in the plane, can only go forward or backward along its heading, and can turn. Its state is the pose (x,y,θ)(x, y, \theta), and its inputs are the forward speed vv and the turning rate ω\omega: x˙=vcos⁡θ\dot x = v\cos\theta, y˙=vsin⁡θ\dot y = v\sin\theta, θ˙=ω\dot\theta = \omega. For a control reader, it is the standard example of a driftless control-affine system with two inputs and three states. It is controllable by the Lie algebra rank condition, its Jacobian linearization at rest is not controllable, it fails Brockett's condition, so no continuous time-invariant feedback stabilizes a pose, and it is differentially flat with the position as flat output. The no-sideways-slip condition behind it is a nonholonomic constraint. The differential-drive model is the same motion written with the two wheel speeds as inputs; the unicycle uses vv and ω\omega directly.

The machine

State. The pose q=(x,y,θ)∈R2×S1q = (x, y, \theta) \in \mathbb{R}^2 \times S^1: the position of a reference point in meters and the heading in radians, measured from the xx axis and wrapped to [−π,π)[-\pi, \pi). For a wheeled robot the reference point is on the wheel axle, for example the midpoint between two drive wheels.

Inputs. The forward speed vv in m/s and the turning rate ω\omega in rad/s. Either can be negative.

Equations.

q˙=[cos⁡θsin⁡θ0]v+[001]ω=g1(q) v+g2(q) ω.\dot q = \begin{bmatrix} \cos\theta \\ \sin\theta \\ 0 \end{bmatrix} v + \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix} \omega = g_1(q)\, v + g_2(q)\, \omega.

Constraint. The velocity of the reference point has no component along the axle: x˙sin⁡θ−y˙cos⁡θ=0\dot x\sin\theta - \dot y\cos\theta = 0. This is a Pfaffian constraint, and g1g_1, g2g_2 span its null space.

Output. Usually the full pose, or the position (x,y)(x, y).

Standing assumptions. Rigid body on a flat plane. The wheels roll without slipping in any direction, so there is no sideways motion and the forward speed is the rolling speed. The velocities are inputs: mass, inertia, motor torques and friction limits are not in the model. The heading is the direction of motion, so the reference point must be on the axle; a point ahead of the axle moves sideways during a turn.

Bounds. A real robot adds bounds such as ∣v∣≤vmax⁡|v| \le v_{\max} and ∣ω∣≤ωmax⁡|\omega| \le \omega_{\max}, or a bound on the curvature ∣ω∣≤∣v∣/Rmin⁡|\omega| \le |v| / R_{\min}. The second bound turns the unicycle into a car: the Dubins car (vv = 1, forward only) or the Reeds-Shepp car (v=±1v = \pm 1).

What it counts

The model predicts the path of the pose for a given input signal. For constant inputs on an interval of length tt, the solution is exact. With ω≠0\omega \ne 0, the reference point moves on a circle of radius v/ωv / \omega about the instantaneous center:

x(t)=x0+vω(sin⁡(θ0+ωt)−sin⁡θ0),y(t)=y0−vω(cos⁡(θ0+ωt)−cos⁡θ0),θ(t)=θ0+ωt.x(t) = x_0 + \frac{v}{\omega}\bigl(\sin(\theta_0 + \omega t) - \sin\theta_0\bigr), \quad y(t) = y_0 - \frac{v}{\omega}\bigl(\cos(\theta_0 + \omega t) - \cos\theta_0\bigr), \quad \theta(t) = \theta_0 + \omega t.

With ω=0\omega = 0 it moves on a line: x(t)=x0+vtcos⁡θ0x(t) = x_0 + v t\cos\theta_0 and y(t)=y0+vtsin⁡θ0y(t) = y_0 + v t\sin\theta_0. Inputs that are constant over each sample period, as a digital controller gives, therefore produce a path of arcs and lines, and this formula updates the pose exactly.

Worked example. From (0,0,0)(0, 0, 0) with v=1v = 1 m/s and ω=0.5\omega = 0.5 rad/s, the radius is 2 m. After t=2t = 2 s the pose is (2sin⁡1, 2(1−cos⁡1), 1)=(1.6829,0.9194,1)(2\sin 1,\ 2(1 - \cos 1),\ 1) = (1.6829, 0.9194, 1). After t=πt = \pi s it is exactly (2,2,π/2)(2, 2, \pi/2), a quarter circle. The forward Euler method with step 0.1 s gives (1.7056,0.8771)(1.7056, 0.8771) at t=2t = 2 s, 4.8 cm from the exact point; with step 0.01 s the error is 0.48 cm. This error is a measurement of the integration method, and it shrinks in proportion to the step. The exact arc has no such error.

The model does not predict slip, skid, tip-over, or the time that motors need to reach a commanded speed. A probabilistic version, which adds noise to vv and ω\omega, is the velocity motion model.

Relation to other models

  • Differential-drive model. Two wheels on one axle. The map (ωR,ωL)↦(v,ω)(\omega_R, \omega_L) \mapsto (v, \omega) is linear and invertible, so the two models have the same paths. The differential drive adds the wheel geometry and the wheel speed limits.
  • Kinematic bicycle model. A car with steered front wheels. At the rear axle it is the unicycle with ω=vtan⁡δ/L\omega = v\tan\delta / L, so the turning rate is tied to the speed and ∣ω∣≤∣v∣/Rmin⁡|\omega| \le |v| / R_{\min}. It cannot turn on the spot.
  • Dubins and Reeds-Shepp cars. The unicycle with a fixed speed and a bound on curvature. Their shortest paths are the Dubins path and the Reeds-Shepp path.
  • Omnidirectional robot. Three independent velocity inputs and no nonholonomic constraint. It can move sideways.
  • Odometry motion model and dead reckoning. They integrate measured wheel motion through the same kinematics.
  • Point mass. The model x˙=u1\dot x = u_1, y˙=u2\dot y = u_2 ignores the heading. Planners often plan for it and then track the plan with a unicycle controller.

Known results in the model

All of these are theorems about the equations above.

  • Controllability. The bracket [g1,g2]=(sin⁡θ,−cos⁡θ,0)[g_1, g_2] = (\sin\theta, -\cos\theta, 0) and the fields g1g_1, g2g_2 span R3\mathbb{R}^3 at every pose (the determinant is 1). By the Lie algebra rank condition and the Chow-Rashevskii theorem, any pose can reach any other pose, in any time, with unbounded inputs. With ∣v∣≤vmax⁡|v| \le v_{\max} and ∣ω∣≤ωmax⁡|\omega| \le \omega_{\max} the system is still controllable, because it has no drift.
  • The linearization is not controllable. At a rest pose (x0,y0,θ0)(x_0, y_0, \theta_0) with v=ω=0v = \omega = 0, the Jacobian linearization is q~˙=Bu\dot{\tilde q} = B u with A=0A = 0 and B=[g1(q0),g2(q0)]B = [g_1(q_0), g_2(q_0)], of rank 2. The sideways direction is lost, so linear methods such as LQR cannot park the unicycle.
  • No continuous stabilizing feedback. The map (q,v,ω)↦(vcos⁡θ,vsin⁡θ,ω)(q, v, \omega) \mapsto (v\cos\theta, v\sin\theta, \omega) near (q0,0,0)(q_0, 0, 0) does not reach the velocity (−εsin⁡θ0,εcos⁡θ0,0)(-\varepsilon\sin\theta_0, \varepsilon\cos\theta_0, 0), the sideways direction, for small ε≠0\varepsilon \ne 0: that needs ω=0\omega = 0 and a heading θ0±π/2\theta_0 \pm \pi/2, far from θ0\theta_0. So Brockett's condition fails, and no continuous feedback u=k(q)u = k(q) makes a pose asymptotically stable. Time-varying feedback and discontinuous feedback can.
  • Tracking is easier. Along a reference path with a forward speed that does not go to zero, the error dynamics have a controllable linearization, and smooth feedback gives local exponential stability. Path trackers such as pure pursuit and the Stanley controller use this, the latter in the bicycle form.
  • Flatness. The position (x,y)(x, y) is a flat output: where v≠0v \ne 0, θ=atan2⁡(y˙,x˙)\theta = \operatorname{atan2}(\dot y, \dot x), v=±x˙2+y˙2v = \pm\sqrt{\dot x^2 + \dot y^2} and ω=(x˙y¨−y˙x¨)/(x˙2+y˙2)\omega = (\dot x\ddot y - \dot y\ddot x) / (\dot x^2 + \dot y^2). A smooth curve in the plane fixes the inputs; see differential flatness.
  • Shortest paths. With a bound on curvature and forward motion only, the shortest path between two poses is a Dubins path of at most three arcs and lines (Dubins 1957); with reverse allowed, a Reeds-Shepp path (Reeds and Shepp 1990). Without a bound on curvature, the shortest path in length is turn, line, turn, but the infimum of time with bounded vv and ω\omega is a different problem.
  • Chained form. For ∣θ∣<π/2|\theta| < \pi/2, a change of coordinates and inputs puts the unicycle into the chained form z˙1=u1\dot z_1 = u_1, z˙2=u2\dot z_2 = u_2, z˙3=z2u1\dot z_3 = z_2 u_1, which is equivalent to Brockett's nonholonomic integrator. Steering methods with sinusoids and piecewise constant inputs work in that form (LaValle, Section 15.5).

References

  1. Kevin M. Lynch and Frank C. Park, Modern Robotics: Mechanics, Planning, and Control, Cambridge University Press, 2017, Section 13.3.1 (the unicycle and the canonical model of nonholonomic wheeled robots), Section 13.3.2 (controllability), Section 13.3.3 (motion planning) and Section 13.3.4 (feedback control)
  2. Steven M. LaValle, Planning Algorithms, Cambridge University Press, 2006, Section 13.1.2 (kinematics of the simple car, the differential drive and the unicycle) and Sections 15.3 to 15.5 (optimal paths, nonholonomic system theory and steering methods)
  3. Jean-Paul Laumond (editor), Robot Motion Planning and Control, Lecture Notes in Control and Information Sciences 229, Springer, 1998, the chapters on nonholonomic motion planning and on feedback control of a nonholonomic car-like robot

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/HFTPYZ/text.yaml