Mobile Robotics · Study deck

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

The horizontal projection is ucos⁡θu\cos\thetaucosθ and the vertical projection is usin⁡θu\sin\thetausinθ.

Motor Max is your guide for this deck.

mobile-robotsperception-action-loopdifferential-drive
Robot Kinematics And Perception cover: Motor Max testing a robot arm with joint markers, path dots, and perception targets.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Trace perception, decision-making, control, and action around a robot's autonomy loop
  • Classify robot sensors as proprioceptive or exteroceptive and as passive or active
  • Distinguish holonomic, non-holonomic, and redundant actuation from degrees of freedom
  • Derive differential-drive forward and inverse kinematics in body and world frames
iotclass.org

Major section

Body motion in world coordinates

Rotating body velocity into the world frame preserves the no-sideways-motion constraint.

  • Heading determines the world components of forward body velocity.The chapter gives world x velocity as u cos θ and world y velocity as u sin θ.
  • The two world components depend on the same speed and heading.Changing coordinate frames describes the existing motion without adding an independent lateral actuator to the differential drive.
  • Arbitrary independent world-velocity commands can violate the mechanism’s constraint.At θ=0, 0.40 m/s and zero satisfy 0.40 sin 0=0 cos 0; the no-sideways constraint still applies after inverse coordinate rotation.
  • A feasible path needs its tangent aligned with the robot’s heading.The planner constructs a direction the wheels can follow, rather than using pose error to demand an impossible sideways slide.
The robot’s forward velocity has components along both floor axes. Its instantaneous lateral velocity in the robot’s body frame is zero.
The robot’s forward velocity has components along both floor axes. Its instantaneous lateral velocity in the robot’s body frame is zero.

I am expressing the floor robot’s forward motion in world coordinates. I rotate by its heading while keeping the same no-sideways-motion constraint, so the two world components remain linked.

The robot’s forward velocity has components along both floor axes. Its instantaneous lateral velocity in the robot’s body frame is zero.
iotclass.org

Activity 1 · Predict

✎ Rotate the forward direction

I want you to predict the world direction before rotating the velocity.

A differential-drive robot faces 90 degrees counterclockwise from positive world x. Choose whether positive world x or positive world y points straight ahead. Check the no-sideways constraint.

2 minutes · Pen and paper · Answer: Activity 1

Your answer
iotclass.org

Major section

Goal headings and Bezier curvature (1/2)

A Bezier path can align endpoint tangents with the current and goal headings.

  • Current and goal positions define the Bezier curve’s endpoints.A goal pose names position and heading; p1/p4 locate endpoints before inner control points align current and goal headings.
  • Inner control points can align endpoint tangents with the chosen headings.The path construction can address the no-sideways-motion constraint by connecting endpoint direction with current and target orientation.

I am building a Bezier path from the current robot pose to a goal pose. I use the endpoint headings to shape the tangents, then check whether the resulting turn schedule respects the platform’s limits.

iotclass.org

Major section

Goal headings and Bezier curvature (2/2)

  • Path curvature determines the required turning schedule.The turn rate depends on both path curvature and the chosen forward speed; wheel and acceleration limits still need checking.
  • A smooth curve still needs checks against physical limits.Curvature, wheel speed, obstacle clearance, and acceleration can rule out a control-point choice even when the endpoint headings match.
iotclass.org

Major section

State and control inputs across platforms

Different platforms connect state and control inputs through different physical constraints.

  • A differential drive has 3 pose DOF and 2 controllable DOF.Forward and angular velocity control the floor robot, while its instantaneous lateral velocity remains constrained to zero.
  • A bicycle has 3 pose DOF with speed and steering inputs.Its turning rate is coupled to forward motion through steering angle and wheelbase, requiring its own motion model.
  • The chapter’s quadrotor model has 6 DOF and 4 control inputs.The model uses one body-force and three body-moment inputs to control position plus roll, pitch, and yaw.
  • Quadrotor translation and attitude are dynamically coupled.The chapter’s different platform equations mean a differential-drive controller cannot be reused as though the mechanisms had identical constraints.

I am comparing the differential drive, bicycle, and quadrotor in the chapter’s table. I keep each mechanism’s control inputs beside its pose coordinates before choosing a controller model.

iotclass.org

Major section

Under the Hood: Rotate Frames, Respect Constraints, Plan Curvature (continued)

The body lateral axis yBy_ByB​ points a quarter-turn left of xBx_BxB​, and the velocity along it is zero.

  • The inverse rotation gives u=x˙cos⁡θ+y˙sin⁡θu=\dot{x}\cos\theta+\dot{y}\sin\thetau=x˙cosθ+y˙​sinθ and ω=θ˙\omega=\dot{\theta}ω=θ˙, but it does not erase the mechanism's constraint.
  • Substitution gives 0.40sin⁡0=0cos⁡00.40\sin 0=0\cos 00.40sin0=0cos0, so the request satisfies the no-sideways-motion constraint.
  • Rotate back to recover the body forward speed.
iotclass.org

Major section

Reveal the answer

Positive world yyy velocity: At 90∘90^\circ90∘, the no-sideways-motion constraint becomes x˙sin⁡90∘=y˙cos⁡90∘\dot{x}\sin 90^\circ = \dot{y}\cos 90^\circx˙sin90∘=y˙​cos90∘, or x˙⋅1=y˙⋅0\dot{x}\cdot 1 = \dot{y}\cdot 0x˙⋅1=y˙​⋅0, so x˙=0\dot{x}=0x˙=0.

  • The body-frame forward speed is u=x˙⋅0+y˙⋅1=y˙u=\dot{x}\cdot 0+\dot{y}\cdot 1=\dot{y}u=x˙⋅0+y˙​⋅1=y˙​.
  • Bezier curvature and wheel limits].

Why it matters

The curvature has the same sign as this numerator because x′=3(t−2/3)2+2/3x'=3(t-2/3)^2+2/3x′=3(t−2/3)2+2/3 stays positive and the tangent therefore has nonzero length.

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.
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.
iotclass.org

Major section

Reveal the answer (continued)

In the heading-zero example above, positive world xxx was body-forward.

  • With cos⁡60∘=0.5\cos 60^\circ=0.5cos60∘=0.5 and sin⁡60∘=3/2\sin 60^\circ=\sqrt{3}/2sin60∘=3​/2, the departure offsets are 0.25 m0.25\ \text{m}0.25 m and 0.433013 m0.433013\ \text{m}0.433013 m.
  • These endpoint directions do not establish obstacle clearance or actuator feasibility.
  • The tangent heading is ψ=atan2⁡(y′,x′)\psi=\operatorname{atan2}(y',x')ψ=atan2(y′,x′).
iotclass.org

Major section

Reveal the answer (continued)

The curve B(t∣p1,p2,p3,p4)B(t\mid p_1,p_2,p_3,p_4)B(t∣p1​,p2​,p3​,p4​) 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.
  • Differentiating with respect to ttt and grouping the terms by consecutive point differences gives.
  • Dividing the heading change by the distance change gives.
iotclass.org

Major section

Reveal the answer (continued)

Signed curvature κ\kappaκ measures how much the tangent heading ψ\psiψ changes per metre travelled along the curve.

  • 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)dψ/dt=(x′y′′−y′x′′)/(x′2+y′2).
  • Arc length sss increases at ds/dt=x′2+y′2ds/dt=\sqrt{x'^2+y'^2}ds/dt=x′2+y′2​.
  • This formula requires a nonzero tangent (x′,y′)(x',y')(x′,y′).
iotclass.org

Major section

Reveal the answer (continued)

At t=0.5t=0.5t=0.5, the derivatives are x′=1x'=1x′=1, y′=2t=1y'=2t=1y′=2t=1, x′′=0x''=0x′′=0 and y′′=2y''=2y′′=2.

  • At forward speed u=ds/d(time)u=ds/d(\text{time})u=ds/d(time), the yaw rate is ω=uκ\omega=u\kappaω=uκ.
  • 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}(1⋅2−1⋅0)/(12+12)3/2≈0.707 m−1.
  • The three body moments change its attitude.
iotclass.org

Major section

Reveal the answer (continued)

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=tx(t)=(1−t)2t+2(1−t)t2+t3=t and y(t)=(1−t)t2+t3=t2y(t)=(1-t)t^2+t^3=t^2y(t)=(1−t)t2+t3=t2.

  • The right wheel exceeds an illustrative 8 rad/s8\ \text{rad/s}8 rad/s cap.
  • In the Bernstein formula, the extra 1/31/31/3 adds 3(1−t)2t(1/3)=t(1−t)23(1-t)^2t(1/3)=t(1-t)^23(1−t)2t(1/3)=t(1−t)2 to the xxx coordinate.
  • Differential-drive and bicycle models have non-holonomic no-side-slip constraints.
iotclass.org

Major section

Reveal the answer (continued)

After 2/3\sqrt{2/3}2/3​ through t=1t=1t=1, the curvature is negative and the left wheel exceeds the cap.

  • The derivatives are x′=2−4t+3t2x'=2-4t+3t^2x′=2−4t+3t2, x′′=−4+6tx''=-4+6tx′′=−4+6t, y′=2ty'=2ty′=2t and y′′=2y''=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(2−4t+3t2)2−(2t)(−4+6t)=4−6t2.
  • Their equations differ because their mechanisms differ.
iotclass.org

Major section

Reveal the answer (continued)

The quadrotor is underactuated: its four independent inputs cannot command all six pose coordinates independently at an instant.

  • 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}u/r=0.40/0.05=8 rad/s.
  • From t=0t=0t=0 up to but excluding 2/3\sqrt{2/3}2/3​, the curvature is positive and the right wheel exceeds the cap.
  • Reusing a differential-drive controller on a bicycle or quadrotor is a model mismatch.
iotclass.org

Major section

Reveal the answer (continued)

Since tan⁡30∘=1/3\tan 30^\circ=1/\sqrt{3}tan30∘=1/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}θ˙=(1 m/s)(1/3​)/(0.5 m)=2/3​ rad/s≈1.15 rad/s.

  • 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.
  • For a two-wheel robot, the plan must respect the limit on sideways motion.
iotclass.org

Major section

Reveal the answer (continued)

A path is a proposed way to move; it does not change the controls already fitted to the robot.

  • 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.
  • The dashed outline at the start shows the base facing the goal.
  • The dashed outline at the goal shows the base on arrival, still facing along the straight segment.
iotclass.org

Major section

Summary

Close the loop around the motion that the mechanism can actually attempt.

  • Sensors and estimation supply the state for the next action.The controller needs observations of both the robot and its environment before selecting motion that the mechanism can attempt.
  • Forward and inverse kinematics connect wheel rates with feasible body motion.Forward kinematics predicts travel, while inverse kinematics converts requested forward speed and turning into individual wheel commands.
  • Closed-loop following measures deviations and recomputes commands.Wheel slip, sensor error, and moving obstacles become evidence for the next command rather than invisible departures from precomputed travel.
  • The motion contract needs command limits and a stale-perception response.The chapter also records the state estimate, update rate, and saturation behavior because feedback cannot guarantee a perfect estimate or feasible replanning.

I carry one motion request around the robot’s full loop. I connect its sensor estimate to feasible wheel commands, then use the measured deviation to decide how the next command should change.

iotclass.org

Major section

Summary (continued)

Closed-loop following repeatedly measures and replans because kinematics alone cannot remove disturbance or uncertainty.

  • 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.
iotclass.org

Deck summary

Key takeaways

An honest motion contract connects sensing, geometry, constraints, and feedback.

  • Sensor role and energy mechanism answer different classification questions.The encoder and ultrasonic ranger can both be active while measuring the robot and the environment respectively.
  • Pose coordinates do not guarantee equally many independent motion commands.A differential drive needs three coordinates to describe its floor pose but cannot command instantaneous sideways travel.
  • Wheel-speed signs can check the requested travel direction.In the chapter’s example, 10.4 rad/s on the right and 5.6 rad/s on the left agree with a left curve.
  • Feedback reveals model errors but cannot remove every uncertainty.The estimated state can remain imperfect, and a replanned path still needs feasibility checks against motion and obstacle constraints.

I review the robot’s sensor classifications and wheel commands before testing the path. I keep the motion constraints and feedback limits visible so a valid calculation does not become a promise of perfect travel.

iotclass.org

Retrieval practice

Recall check

Motor Max says: answer from memory, then check your reasoning.

Q1Why can a cubic Bezier path help a differential-drive robot reach a goal pose when an unconstrained Cartesian pose-error command may fail?

AA Bezier curve makes the robot holonomic by adding a third independent actuator input.
BThe curve removes wheel slip and sensor noise, so feedback is no longer necessary.
CBezier control points align path tangents with start and goal headings, respecting the no-sideways-motion constraint.
DIt independently commands world-frame x and y velocity at every instant, bypassing the body frame.
Show answer

Answer: C A feasible path works with the mechanism: its tangent follows the robot heading, after which inverse kinematics can turn the path velocity into wheel commands.

iotclass.org

Print reference

Answers

Answer key.

  1. C · A feasible path works with the mechanism: its tangent follows the robot heading, after which inverse kinematics can turn the path velocity into wheel commands.
iotclass.org

Print reference

Activity 1 answer

Model answer.

Predict: Positive world y points straight ahead. At 90 degrees the constraint requires world x velocity to be zero; body forward speed equals world y velocity.

iotclass.org