Chapters

3 Mobile Robot Kinematics and the Perception-Action Loop — Part 2

robotics
control
physical-world
Listen
Uses your device's voice. Tap ▶ beside any paragraph to hear just that one.
  • Podcast audio coming soon
  • Character narration audio coming soon
Lecture
Video lecture coming soon. The slides are the lecture for now.
Ask AI
Pick a prompt. We copy it for you and open an AI service; paste it there. Nothing is sent to IoTClass.

This is part 2 of 2. Begin with Part 1.

3.1 Under the Hood: Rotate Frames, Respect Constraints, Plan Curvature

Body-frame motion becomes world-frame motion by rotating the translational axes through heading θ\theta:

↔ Scroll the equation horizontally to inspect the complete body-to-world mapping.

[x˙y˙θ˙]=[cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001][u0ω]=[ucos⁡θusin⁡θω].\begin{bmatrix}\dot{x}\\\dot{y}\\\dot{\theta}\end{bmatrix} = \begin{bmatrix} \cos\theta & -\sin\theta & 0\\ \sin\theta & \cos\theta & 0\\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix}u\\0\\\omega\end{bmatrix} = \begin{bmatrix}u\cos\theta\\u\sin\theta\\\omega\end{bmatrix}.
The robot’s forward velocity has components along both floor axes. Its instantaneous lateral velocity in the robot’s body frame is zero.
Figure 3.1: The same forward velocity on the robot’s body axes and the fixed floor axes.

Use Figure 3.1 to read the translational rows of the rotation equation. Start at the axle centre, then turn from floor xx through θ\theta to the robot’s forward axis. Follow the arrow uu and trace the dashed guides from its tip to the floor axes. The horizontal projection is ucos⁡θu\cos\theta and the vertical projection is usin⁡θu\sin\theta. Both describe motion along the same forward arrow from the floor’s point of view. Check the lateral body axis at the axle centre to see the instantaneous constraint y˙B=0\dot{y}_B=0.

Top-down view of a forward velocity. Use one third of the quarter-turn in the heading check, 90∘/3=30∘90^\circ/3=30^\circ. The floor and body axes share the origin OO at the tail of the velocity arrow. The sketch shows directions and projections, with the angle drawn schematically.

y↑yBusin⁡30∘⋯∙u, xB↖∣↗⋮O⟶ucos⁡30∘⟶x\begin{array}{rcccl} & y & & & \\ & \uparrow & & & \\ y_B & {} & & & \\ & u\sin 30^\circ & \cdots & \bullet & u,\ x_B \\ \nwarrow & \vert & \nearrow & \vdots & \\ & O & \longrightarrow & u\cos 30^\circ & \longrightarrow x \end{array}

The xBx_B axis points along uu, at 30∘30^\circ counterclockwise from floor xx. The body lateral axis yBy_B points a quarter-turn left of xBx_B, and the velocity along it is zero. From the tip of uu, read straight down to floor xx and straight across to floor yy to get the two floor components.

The inverse rotation gives u=x˙cos⁡θ+y˙sin⁡θu=\dot{x}\cos\theta+\dot{y}\sin\theta and ω=θ˙\omega=\dot{\theta}, but it does not erase the mechanism’s constraint. A commanded world velocity must still satisfy:

x˙sin⁡θ=y˙cos⁡θ.\dot{x}\sin\theta=\dot{y}\cos\theta.

Check the earlier motion request at heading θ=0\theta=0: x˙=0.40 m/s\dot{x}=0.40\ \text{m/s}, y˙=0\dot{y}=0, and θ˙=0.80 rad/s\dot{\theta}=0.80\ \text{rad/s}. Substitution gives 0.40sin⁡0=0cos⁡00.40\sin 0=0\cos 0, so the request satisfies the no-sideways-motion constraint.

That equation is why an apparently simple pose-error controller cannot independently command arbitrary x˙\dot{x} and y˙\dot{y} for a differential drive. The planner must produce a curve whose tangent follows the robot’s heading.

Check the same motion at 30∘30^\circ.

  1. Project the forward speed onto the world axes. Use cos⁡30∘=3/2\cos 30^\circ=\sqrt{3}/2 and sin⁡30∘=1/2\sin 30^\circ=1/2 to get x˙=0.40(3/2)=0.203 m/s\dot{x}=0.40(\sqrt{3}/2)=0.20\sqrt{3}\ \text{m/s} and y˙=0.40(1/2)=0.20 m/s\dot{y}=0.40(1/2)=0.20\ \text{m/s}. The yaw rate is still θ˙=0.80 rad/s\dot{\theta}=0.80\ \text{rad/s}.
  2. Rotate back to recover the body forward speed. Substituting the world components gives u=(0.203)(3/2)+0.20(1/2)=0.30+0.10=0.40 m/su=(0.20\sqrt{3})(\sqrt{3}/2)+0.20(1/2)=0.30+0.10=0.40\ \text{m/s} and ω=θ˙=0.80 rad/s\omega=\dot{\theta}=0.80\ \text{rad/s}.
  3. Check the lateral residual, the velocity left over along the body sideways axis. Here y˙B=−x˙sin⁡30∘+y˙cos⁡30∘=−(0.203)(1/2)+0.20(3/2)=0 m/s\dot{y}_B=-\dot{x}\sin 30^\circ+\dot{y}\cos 30^\circ=-(0.20\sqrt{3})(1/2)+0.20(\sqrt{3}/2)=0\ \text{m/s}, so the command requires no sideways motion.

Predict. A differential-drive robot faces 90∘90^\circ, a quarter-turn counterclockwise from positive world xx. Which velocity points straight ahead?

  • Positive world xx velocity.
  • Positive world yy velocity.

Positive world yy velocity. At 90∘90^\circ, the no-sideways-motion constraint becomes x˙sin⁡90∘=y˙cos⁡90∘\dot{x}\sin 90^\circ = \dot{y}\cos 90^\circ, or x˙⋅1=y˙⋅0\dot{x}\cdot 1 = \dot{y}\cdot 0, so x˙=0\dot{x}=0. The body-frame forward speed is u=x˙⋅0+y˙⋅1=y˙u=\dot{x}\cdot 0+\dot{y}\cdot 1=\dot{y}. In the heading-zero example above, positive world xx was body-forward.

See Worked example 1: Bezier curvature and wheel limits to follow the calculation from a path’s curvature to the wheel rates and check them against the cap.

3.1.1 Goal Poses and Cubic Bezier Curves

A goal pose specifies both a destination and the heading required there. A cubic Bezier path offers one construction. Let p1=(x,y)p_1=(x,y) be the current position and p4=(xG,yG)p_4=(x_G,y_G) the goal. Choose positive control-point distances K1K_1 and K2K_2 and place the inner points along the current and goal headings:

p2=(x+K1cos⁡θ, y+K1sin⁡θ)p_2=(x+K_1\cos\theta,\ y+K_1\sin\theta)

p3=(xG−K2cos⁡θG, yG−K2sin⁡θG).p_3=(x_G-K_2\cos\theta_G,\ y_G-K_2\sin\theta_G).

Suppose an indoor sensor rover starts at p1=(1,1) mp_1=(1,1)\ \text{m} with heading θ=60∘\theta=60^\circ and has goal p4=(3,2) mp_4=(3,2)\ \text{m} with heading θG=90∘\theta_G=90^\circ. Choose K1=K2=0.50 mK_1=K_2=0.50\ \text{m} and assume headings are measured from the positive xx-axis. With cos⁡60∘=0.5\cos 60^\circ=0.5 and sin⁡60∘=3/2\sin 60^\circ=\sqrt{3}/2, the departure offsets are 0.25 m0.25\ \text{m} and 0.433013 m0.433013\ \text{m}. Thus p2=(1+0.25, 1+0.433013)=(1.25, 1.433013) mp_2=(1+0.25,\ 1+0.433013)=(1.25,\ 1.433013)\ \text{m}. With cos⁡90∘=0\cos 90^\circ=0 and sin⁡90∘=1\sin 90^\circ=1, p3=(3−0.50(0), 2−0.50(1))=(3, 1.50) mp_3=(3-0.50(0),\ 2-0.50(1))=(3,\ 1.50)\ \text{m}. Check the endpoint directions: p2−p1=(0.25, 0.433013) mp_2-p_1=(0.25,\ 0.433013)\ \text{m} points at arctan⁡(3)=60∘\arctan(\sqrt{3})=60^\circ, while p4−p3=(0, 0.50) mp_4-p_3=(0,\ 0.50)\ \text{m} points at 90∘90^\circ. These endpoint directions do not establish obstacle clearance or actuator feasibility.

The curve B(t∣p1,p2,p3,p4)B(t\mid p_1,p_2,p_3,p_4) now leaves along the current orientation and arrives along the target orientation. Its curvature and a chosen forward-speed schedule together supply the turn-rate schedule. This does not automatically make every choice of K1K_1 and K2K_2 safe: curvature, wheel-speed, obstacle-clearance, and acceleration limits still have to be checked.

The Bernstein form blends the four control points as the path parameter tt runs from 00 at the start to 11 at the goal:

B(t)=(1−t)3p1+3(1−t)2tp2+3(1−t)t2p3+t3p4.B(t)=(1-t)^3p_1+3(1-t)^2tp_2+3(1-t)t^2p_3+t^3p_4.

Differentiating with respect to tt and grouping the terms by consecutive point differences gives

B′(t)=3(1−t)2(p2−p1)+6(1−t)t(p3−p2)+3t2(p4−p3).B'(t)=3(1-t)^2(p_2-p_1)+6(1-t)t(p_3-p_2)+3t^2(p_4-p_3).

At t=0t=0 only the first term survives, giving B′(0)=3(p2−p1)B'(0)=3(p_2-p_1). At t=1t=1 only the last term survives, giving B′(1)=3(p4−p3)B'(1)=3(p_4-p_3). These vectors point along the start and goal headings.

Signed curvature κ\kappa measures how much the tangent heading ψ\psi changes per metre travelled along the curve. Write B(t)=(x(t),y(t))B(t)=(x(t),y(t)), with primes denoting derivatives with respect to tt. The tangent heading is ψ=atan2⁡(y′,x′)\psi=\operatorname{atan2}(y',x'). Differentiating this angle gives dψ/dt=(x′y′′−y′x′′)/(x′2+y′2)d\psi/dt=(x'y''-y'x'')/(x'^2+y'^2). Arc length ss increases at ds/dt=x′2+y′2ds/dt=\sqrt{x'^2+y'^2}. Dividing the heading change by the distance change gives

κ=dψds=x′y′′−y′x′′(x′2+y′2)3/2.\kappa=\frac{d\psi}{ds}=\frac{x'y''-y'x''}{(x'^2+y'^2)^{3/2}}.

This formula requires a nonzero tangent (x′,y′)(x',y'). At forward speed u=ds/d(time)u=ds/d(\text{time}), the yaw rate is ω=uκ\omega=u\kappa.

Worked example 1. Bezier curvature and wheel limits

  1. Use control points (0,0)(0,0), (1/3,0)(1/3,0), (2/3,1/3)(2/3,1/3) and (1,1)(1,1), in metres. Substitution in the Bernstein form gives x(t)=(1−t)2t+2(1−t)t2+t3=tx(t)=(1-t)^2t+2(1-t)t^2+t^3=t and y(t)=(1−t)t2+t3=t2y(t)=(1-t)t^2+t^3=t^2.
  2. At t=0.5t=0.5, the derivatives are x′=1x'=1, y′=2t=1y'=2t=1, x′′=0x''=0 and y′′=2y''=2. The curvature is (1⋅2−1⋅0)/(12+12)3/2≈0.707 m−1(1\cdot2-1\cdot0)/(1^2+1^2)^{3/2}\approx0.707\ \text{m}^{-1}.
  3. At u=0.40 m/su=0.40\ \text{m/s}, ω=uκ≈0.283 rad/s\omega=u\kappa\approx0.283\ \text{rad/s}. With r=0.05 mr=0.05\ \text{m} and d=0.30 md=0.30\ \text{m}, inverse kinematics gives (0.40−0.283(0.30)/2)/0.05≈7.15 rad/s(0.40-0.283(0.30)/2)/0.05\approx7.15\ \text{rad/s} on the left and (0.40+0.283(0.30)/2)/0.05≈8.85 rad/s(0.40+0.283(0.30)/2)/0.05\approx8.85\ \text{rad/s} on the right. The right wheel exceeds an illustrative 8 rad/s8\ \text{rad/s} cap.

Bezier path walkthrough

  1. Mark the start at p1p_1 and the goal at p4p_4 from the worked example. Draw the start heading along positive xx and the goal heading along p4−p3p_4-p_3.
  2. Place p2p_2 ahead of the start along its heading and p3p_3 back from the goal along its heading. Trace the curve from t=0t=0 to t=1t=1 and check that the endpoint tangents follow the heading arrows.
  3. Move p2p_2 along the start heading to (1/3+1/3,0)=(2/3,0)(1/3+1/3,0)=(2/3,0), keeping the poses, wheel geometry, forward speed and wheel cap fixed. The endpoint tangents still follow the same directions. In the Bernstein formula, the extra 1/31/3 adds 3(1−t)2t(1/3)=t(1−t)23(1-t)^2t(1/3)=t(1-t)^2 to the xx coordinate. Thus x(t)=t+t(1−t)2x(t)=t+t(1-t)^2 and y(t)=t2y(t)=t^2 as before.
  4. Find where the turn changes direction. The derivatives are x′=2−4t+3t2x'=2-4t+3t^2, x′′=−4+6tx''=-4+6t, y′=2ty'=2t and y′′=2y''=2. The numerator of the curvature is (2−4t+3t2)2−(2t)(−4+6t)=4−6t2(2-4t+3t^2)2-(2t)(-4+6t)=4-6t^2. It crosses zero at t=4/6=2/3t=\sqrt{4/6}=\sqrt{2/3}. The curvature has the same sign as this numerator because x′=3(t−2/3)2+2/3x'=3(t-2/3)^2+2/3 stays positive and the tangent therefore has nonzero length.
  5. Mark the wheel-limit violations on the moved curve. With zero curvature, both wheels are already at the cap, u/r=0.40/0.05=8 rad/su/r=0.40/0.05=8\ \text{rad/s}. From t=0t=0 up to but excluding 2/3\sqrt{2/3}, the curvature is positive and the right wheel exceeds the cap. After 2/3\sqrt{2/3} through t=1t=1, the curvature is negative and the left wheel exceeds the cap. At 2/3\sqrt{2/3} both wheel rates equal the cap.

3.1.2 Compare Models by State and Control Rank

Platform Pose state Independent inputs Key constraint
Differential drive (x,y,θ)(x,y,\theta): 3 DOF Forward and angular velocity: 2 independent inputs No instantaneous lateral velocity
Bicycle model (x,y,θ)(x,y,\theta): 3 DOF Speed $v$ and steering angle ϕ\phi: 2 independent inputs θ˙=vtan⁡ϕ/L\dot{\theta}=v\tan\phi/L couples turning to forward motion
Quadrotor Position plus roll, pitch, yaw: 6 DOF Collective thrust and three body moments: 4 independent inputs Translation and attitude are dynamically coupled

Suppose an IoT delivery rover follows the bicycle model with wheelbase L=0.40 mL=0.40\ \text{m}, forward speed v=0.50 m/sv=0.50\ \text{m/s}, and steering angle ϕ=30∘\phi=30^\circ. Assume no sideways slip; wheelbase is the distance between the front and rear axles. First, tan⁡30∘=1/3≈0.577350\tan 30^\circ=1/\sqrt{3}\approx 0.577350. Then vtan⁡ϕ=(0.50)(1/3)≈0.288675 m/sv\tan\phi=(0.50)(1/\sqrt{3})\approx 0.288675\ \text{m/s}. Divide by wheelbase: θ˙=0.288675/0.40≈0.721688 rad/s\dot{\theta}=0.288675/0.40\approx 0.721688\ \text{rad/s}. Check with the turning radius R=L/tan⁡ϕ=0.403≈0.692820 mR=L/\tan\phi=0.40\sqrt{3}\approx 0.692820\ \text{m}: v/R=0.50/(0.403)≈0.721688 rad/sv/R=0.50/(0.40\sqrt{3})\approx 0.721688\ \text{rad/s}.

Calculate the bicycle yaw rate. In the no-slip model above, use speed v=1 m/sv=1\ \text{m/s}, steering angle ϕ=30∘\phi=30^\circ, and wheelbase L=0.5 mL=0.5\ \text{m}. Since tan⁡30∘=1/3\tan 30^\circ=1/\sqrt{3}, the yaw rate is θ˙=(1 m/s)(1/3)/(0.5 m)=2/3 rad/s≈1.15 rad/s\dot{\theta}=(1\ \text{m/s})(1/\sqrt{3})/(0.5\ \text{m})=2/\sqrt{3}\ \text{rad/s}\approx1.15\ \text{rad/s}.

Differential-drive and bicycle models have non-holonomic no-side-slip constraints. Recall the turn-and-drive example in Degrees of Freedom and Controllability: a differential drive can reach a position beside its start over time (Modern Robotics, ch. 13). The quadrotor is underactuated: its four independent inputs cannot command all six pose coordinates independently at an instant. The three body moments change its attitude. When the quadrotor tilts, its collective thrust gains a horizontal component that accelerates it horizontally (Lee, Leok, and McClamroch, Geometric Tracking Control of a Quadrotor UAV on SE(3)). These are different limits on motion and actuation. Their equations differ because their mechanisms differ. Reusing a differential-drive controller on a bicycle or quadrotor is a model mismatch.

Two-wheel motion from above

ViewWhat the robot can do
At one instantPoint the robot along its forward axis. It can roll forward or backward along that axis and yaw left or right. Mark the sideways arrow with a cross because the robot cannot roll along it.
Over several movesPicture a goal beside the start, facing the same way. Turn in place to face the goal, drive straight to its position, then turn in place to match its heading.

See why the tempting answer fails.

  1. Motor Max points to an arm's existing range of rotation beside a crossed-out extra motor.

    Wrong idea: planning a curved path adds an actuator. The crossed-out extra motor illustrates the mistake: a plan must work with the mechanism's existing controls.

Planning a path does not add an actuator or remove the two-wheel robot's no-sideways-motion constraint.

The strip shows an arm and marks an extra motor with a cross. It warns against assuming that a plan adds a motor to the machine. A path is a proposed way to move; it does not change the controls already fitted to the robot. For a two-wheel robot, the plan must respect the limit on sideways motion. The robot can turn and then move along a curve, but it cannot slide sideways at once just because a path asks it to.

A differential-drive base has zero sideways velocity in its own frame, yet it can reach a pose beside the start by turning, driving forward, and turning back.
Figure 3.2: Instantaneous motion and a reachable side-offset pose for the same differential-drive base.

Follow Figure 3.2 from the panel showing motion at an instant. The green arrow follows the base’s heading, the curved arrow shows rotation about its centre, and the crossed arrow marks zero sideways velocity in the body frame. In the route panel, start with the same heading and turn in place using equal and opposite wheel speeds. The dashed outline at the start shows the base facing the goal. Follow the straight arrow using equal forward wheel speeds. The dashed outline at the goal shows the base on arrival, still facing along the straight segment. Then reverse the first pivot at the goal. The final heading matches the start, and the sideways displacement comes from forward travel after the turn.

3.2 Summary

Follow a motion request around the loop. Sensors observe the robot and its surroundings. An estimate describes the state, and a decision selects a feasible motion. The actuators move the robot, which is then measured again. Kinematics links wheel speeds to ideal motion. The independent inputs describe what can be commanded at once. Controllability concerns which states can be reached over time using admissible inputs. Feedback shows where real motion differs from the model.

  • The perception-action loop connects sensing, estimation, decision-making, and physical action.
  • Proprioceptive/exteroceptive and passive/active are separate sensor-classification axes.
  • A differential drive has three planar pose coordinates but only two independently controllable instantaneous motions.
  • Forward kinematics predicts motion from wheel speeds; inverse kinematics maps feasible body motion back to wheel commands.
  • Closed-loop following repeatedly measures and replans because kinematics alone cannot remove disturbance or uncertainty.

3.3 Key Takeaway

A mobile robot needs a motion model that reflects its limits.

State what the robot can measure and command, and which motions it cannot make. Use feedback to guide the next command.

3.4 See Also

Use the linked chapters to follow the contract in either direction. The actuator chapters move downward from body motion to mechanisms and motor commands; Braitenberg vehicles show a compact perception-to-action loop; unmanned aerial vehicle (UAV) control shows how a different platform changes the feasible-motion model. The control-architecture chapter then moves upward from kinematics to the rules, behaviors, and plans that choose each command.

Hi, I’m Motor Max. What do you need?

Find help

Let’s find what you need

Find a lesson or return to your module guide.

Give feedback

Help improve this chapter

Tell us what helped or what needs fixing.

Tips

Try a small next step

A few ways to get more from this chapter.

Ask AI

Continue the conversation

Take the conversation further with your preferred assistant.

AI help is available in supported modules when enabled in Settings.

No live person answers on independent study. Feedback does not promise a personal reply.

For welfare or safety concerns, follow your school’s procedures outside IoTClass.