Advanced robotics (Master level)

← Robot list · The basics

Eight topics that turn a good robotics student into a specialist: parallel robots (Delta, Stewart), optimal control (LQR), model predictive control (MPC), legged robots and balance, aerial robots, vision in practice (calibration, markers, hand-eye, point clouds) and reinforcement learning. Each lesson gives the method, worked numbers and, where useful, a program that was run.

Prerequisites

This course assumes the maths course (matrices, frames, derivatives, probability, quaternions), the modelling course (DH, MGD, MGI, Jacobian) and the control course (dynamics, transfer functions, state space, PID). Each lesson says which earlier lesson to review. The lessons are independent: take them in any order.

1

Parallel robots: the Delta and the Stewart platform

20 min
You will learn

why closed chains change everything, how to compute the inverse kinematics of a Delta and of a Stewart platform, why their forward kinematics is hard, and their two kinds of singularities.

1.1 Serial and parallel: the world turned upside down

In a serial robot the links form one chain from the base to the tool. In a parallel robot the tool (the moving platform) is held by several chains at once, each with its own motor near the base. The motors do not carry each other: the moving parts are light, so the robot is very fast (Delta: up to 300 picks per minute) and very stiff (Stewart: flight simulators, machine tools).

Serial robotParallel robot
Forward kinematicseasy: multiply the matriceshard: a system of equations with several solutions
Inverse kinematicshard: several solutions, often numericaleasy: one independent formula per chain
Workspacelargesmall (the intersection of the chains)
Stiffness, speederrors add along the chainthe chains share the load: stiff and fast

1.2 The Delta robot: inverse kinematics, arm by arm

Three motors on the base, at 120° from each other, at a radius R. Each turns an upper arm of length L; a parallelogram of length l links its end to the platform, at a radius r from its centre. The parallelograms keep the platform horizontal: it only translates (3 DOF: x, y, z).

The key fact: each arm only sees the point where its forearm meets the platform. Given the platform position, this point is known, and the motor angle θ must place the elbow at distance l from it. In the plane of the arm (x along the arm, z up), with (xq, yq, zq) the wrist joint seen from the motor axis:

k = (xq² + yq² + zq² + L² − l²) / (2L)    ρ = √(xq² + zq²)    θ = −atan2(zq, xq) − arccos(k / ρ)

It comes from writing |elbow − wrist|² = l² and grouping the terms in cos θ and sin θ. If |k| > ρ, the point is out of reach. The second sign of arccos gives the elbow pointing inwards, which is never used.

One arm of the Delta robot, seen in its own plane. Knowing where the platform must be gives the wrist point Q; the motor angle θ must put the elbow both on the circle of the upper arm and at the distance l from Q.
"""Inverse kinematics of a Delta robot: one closed formula per arm, then a check of every constraint."""
import numpy as np

R, r = 0.20, 0.05          # radius of the motor circle (base) and of the joint circle (moving platform), m
L, l = 0.30, 0.60          # upper arm (driven by the motor) and forearm (the parallelogram), m
PHI = np.radians([0, 120, 240])   # directions of the three arms around the vertical axis


def ik(p):
    """Platform centre p = (x, y, z) -> the three motor angles (rad, positive = arm going down), or None."""
    angles = []
    for phi in PHI:
        c, s = np.cos(phi), np.sin(phi)
        x, y, z = c * p[0] + s * p[1], -s * p[0] + c * p[1], p[2]   # p seen from the plane of this arm
        xq, yq, zq = x + r - R, y, z                                  # wrist joint relative to the motor axis
        k = (xq**2 + yq**2 + zq**2 + L**2 - l**2) / (2 * L)
        rho = np.hypot(xq, zq)
        if abs(k) > rho:
            return None                                              # out of the workspace
        angles.append(-np.arctan2(zq, xq) - np.arccos(k / rho))      # the elbow pointing outwards
    return np.array(angles)


def check(p, th):
    """Length of each forearm for the solution: must be exactly l."""
    out = []
    for phi, t in zip(PHI, th):
        c, s = np.cos(phi), np.sin(phi)
        elbow = np.array([R + L * np.cos(t), 0, -L * np.sin(t)])
        wrist = np.array([c * p[0] + s * p[1] + r, -s * p[0] + c * p[1], p[2]])
        out.append(np.linalg.norm(elbow - wrist))
    return np.array(out)


if __name__ == '__main__':
    np.set_printoptions(precision=4, suppress=True)
    for p in [(0, 0, -0.6), (0.1, 0, -0.6), (0.05, 0.08, -0.55), (0.6, 0, -0.6)]:
        th = ik(np.array(p, dtype=float))
        if th is None:
            print(f'p = {p}: out of reach')
        else:
            print(f'p = {p}: angles = {np.degrees(th)} deg   forearm lengths = {check(np.array(p, float), th)} m')
p = (0, 0, -0.6): angles = [31.6843 31.6843 31.6843] deg   forearm lengths = [0.6 0.6 0.6] m
p = (0.1, 0, -0.6): angles = [19.5999 39.6792 39.6792] deg   forearm lengths = [0.6 0.6 0.6] m
p = (0.05, 0.08, -0.55): angles = [18.688  19.5434 38.7396] deg   forearm lengths = [0.6 0.6 0.6] m
p = (0.6, 0, -0.6): out of reach
Read the output

With R = 0.2 m, r = 0.05 m, L = 0.3 m, l = 0.6 m and the platform centred at 0.6 m below the base, the three motors are at 31.7°: by symmetry they must be equal. Moving the platform 10 cm towards arm 1 lifts arm 1 (19.6°) and lowers the two others (39.7°). Every forearm is exactly 0.6 m: the solution respects all the constraints.

1.3 The Stewart platform: six legs, six lengths

Six linear actuators (legs) link the base to a platform that can move in all 6 directions. Its inverse kinematics is the simplest of all robots: for a wanted pose (position p, rotation R) of the platform, leg i joins the base point ai to the platform point bi, so its length is:

ℓi = ‖ p + R bi − ai ‖

Example: a = (0.5, 0, 0), b = (0.3, 0, 0), platform at p = (0, 0, 0.8) without rotation: ℓ = ‖(−0.2, 0, 0.8)‖ = 0.825 m. Six such lines, and the controller knows the length to give each leg. The forward problem (six lengths → the pose) can have up to 40 solutions and is solved numerically, starting from the last known pose.

One leg of the Stewart platform, seen from the side. The vectors p (to the platform centre), R bᵢ (to the leg end on the platform) and aᵢ (to the leg end on the base) close a loop: the length of the leg is what remains.

1.4 Two kinds of singularities

KindWhat happensExample
Serial (type 1)a chain is stretched or folded: the platform loses a direction of motion, as in a serial armthe edge of the workspace
Parallel (type 2)the platform gains a free motion even with the motors locked: it can no longer resist a force in that directionlegs of a Stewart platform all lying in one plane
Type 2 is dangerous

Near a parallel singularity the motor torques needed to hold a small load become huge, and the robot can collapse or break. Designers choose the dimensions so that these poses lie outside the useful workspace, and the controller checks the distance to them.

Key terms

  • parallel robot
  • closed chain
  • Delta robot
  • Stewart platform
  • parallel singularity
The essentials
  • Parallel robot: several chains hold the platform; the motors stay on the base: fast and stiff.
  • Inverse kinematics is easy (one formula per chain); forward kinematics is hard (several solutions).
  • Stewart: leg length ℓᵢ = ‖p + R bᵢ − aᵢ‖. Beware of parallel (type 2) singularities.
A parallel robot: several legs hold one platform. Knowing the pose of the platform, each leg length follows from its own formula.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

How many degrees of freedom does the platform of a Delta robot have?

Solution

3: x, y, z. The parallelograms keep it horizontal (a 4th motor in the centre often turns the tool).

Level 2 · Intermediate2

Stewart leg: base point (0.5, 0, 0), platform point (0.3, 0, 0), platform at (0, 0, 1.0) without rotation. Leg length (m)?

Solution

p + b − a = (−0.2, 0, 1.0); length = √(0.04 + 1) = 1.020 m.

Level 3 · Professional3

The Delta of the lesson, platform centred at 0.6 m below the base. All three motors are at the same angle. Why?

  1. By symmetry: the platform is on the axis, each arm sees the same geometry
  2. Because the forward model has one solution
  3. Because the robot is at a singularity

Solution

The three arms are identical and placed at 120°: on the vertical axis each one solves the same equation, so the same angle (31.7°).

Check yourself
  1. For a parallel robot, which model is easy: forward or inverse?

    The inverse model: one independent formula per chain. The forward model is a hard system with several solutions.

  2. Why can a Delta robot be so fast?

    The motors are fixed on the base; only light arms and a light platform move.

  3. What happens at a parallel (type 2) singularity?

    The platform can move even with the motors locked: it can no longer resist a force in that direction.

See the Delta robot in 3D →

2

Optimal control: the LQR

18 min
You will learn

what “optimal” means for a controller, how the LQR finds the best gains from two weights, and how to choose them.

2.1 From tuning to a price

A PID is tuned by hand, gain by gain. With many states (positions and speeds of 6 joints, a drone, a balancing robot) this becomes impossible. The linear quadratic regulator (LQR) asks a different question: what does an error cost, and what does a command cost? Then it computes the gains that make the total cost as small as possible.

For a system in state-space form ẋ = A x + B u (control course, lesson 11):

J = ∫ ( xT Q x + uT R u ) dt

  • Q (a diagonal matrix) = the price of each error: a large Q on the position means “be accurate”.
  • R = the price of the command: a large R means “save the motors, avoid big torques”.
The result

The best controller is always a simple state feedback u = −K x, with K = R−1 BT P, where P solves the Riccati equation:

AT P + P A − P B R−1 BT P + Q = 0

You never solve it by hand: every library has a function (scipy.linalg.solve_continuous_are, lqr in MATLAB). The closed loop is always stable when the system is controllable.

2.2 A joint, by LQR

A joint driven in acceleration is a double integrator: state = (position error, speed), ẍ = u. The code below integrates the Riccati equation until it stops changing, for three prices of the position error:

"""LQR for a joint seen as a double integrator: find the best gains K for u = -K x."""
import numpy as np

A = np.array([[0.0, 1.0], [0.0, 0.0]])     # x = (position error, speed), x' = A x + B u
B = np.array([[0.0], [1.0]])               # u = acceleration
R = np.array([[1.0]])                      # price of the command

for q in [1.0, 100.0, 10000.0]:            # price of the position error
    Q = np.diag([q, 0.0])
    P = np.eye(2)
    for _ in range(200000):                # integrate the Riccati equation until it stops changing
        dP = A.T @ P + P @ A - P @ B @ np.linalg.inv(R) @ B.T @ P + Q
        P += 1e-4 * dP
        if np.abs(dP).max() < 1e-9:
            break
    K = np.linalg.inv(R) @ B.T @ P
    poles = np.linalg.eigvals(A - B @ K)
    wn = abs(poles[0]); zeta = -poles[0].real / wn
    print(f'q = {q:7.0f}:  K = [{K[0, 0]:7.3f} {K[0, 1]:6.3f}]   poles = {np.round(poles, 3)}   '
          f'wn = {wn:5.2f} rad/s   damping = {zeta:.3f}')
q =       1:  K = [  1.000  1.414]   poles = [-0.707+0.707j -0.707-0.707j]   wn =  1.00 rad/s   damping = 0.707
q =     100:  K = [ 10.000  4.472]   poles = [-2.236+2.236j -2.236-2.236j]   wn =  3.16 rad/s   damping = 0.707
q =   10000:  K = [100.000 14.142]   poles = [-7.071+7.071j -7.071-7.071j]   wn = 10.00 rad/s   damping = 0.707
What it teaches
  • The LQR finds a PD controller: K = [Kp, Kd]. For this system, in theory Kp = √(q/r) and Kd = √(2 √(q/r)): 10 and 4.47 for q = 100, as computed.
  • Multiplying q by 100 makes the loop 10 times faster (ωn = 1 → 10 rad/s) and asks for 100 times more gain.
  • The damping is always 0.707: the LQR gives a well-damped loop by itself, with a good phase margin (at least 60° in theory).

2.3 How to choose Q and R

  1. Bryson's rule: put on the diagonal 1 / (largest acceptable value)². If 1 cm of error is the most you accept, Q = 1 / 0.01² = 10 000; if the motor gives at most 5 N·m, R = 1 / 25.
  2. Simulate, look at the largest command; if it is too big, increase R; if the response is too slow, increase Q.
  3. The LQR needs the full state: if only positions are measured, an observer (a Kalman filter) estimates the speeds. Together they are called LQG.

Where it is used: balancing robots and Segways, the attitude of drones and satellites, the stabilisation of legged robots around a pose, and as the inner loop of many industrial controllers.

Key terms

  • LQR
  • cost function
  • Riccati equation
  • state feedback
  • Bryson's rule
  • LQG
The essentials
  • LQR: minimise ∫ (xᵀQx + uᵀRu) dt; Q = price of the errors, R = price of the commands.
  • The optimal controller is u = −K x, K = R⁻¹ Bᵀ P with P from the Riccati equation.
  • Bryson's rule: 1 / (largest acceptable value)² on the diagonal.
The same LQR with two choices of weights: Q prices the error, R prices the command. The designer picks the trade-off.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

Double integrator, q/r = 400. LQR position gain Kp = √(q/r)?

Solution

√400 = 20.

Level 2 · Intermediate2

Same system: speed gain Kd = √(2 √(q/r))?

Solution

√(2 × 20) = √40 = 6.32. The closed loop has ωn = √20 = 4.47 rad/s and damping 0.707.

Level 3 · Professional3

Bryson: the largest acceptable position error is 2 cm. Weight q on the position (in 1/m²)?

Solution

q = 1 / 0.02² = 2500.

Check yourself
  1. What do Q and R mean in the LQR cost?

    Q is the price of the errors (states), R the price of the commands.

  2. What is the form of the optimal controller?

    A state feedback u = −K x, with K computed from the Riccati equation.

  3. The response is too slow. What do you change?

    Increase Q (or decrease R): errors become more expensive than commands.

3

Model predictive control (MPC)

18 min
You will learn

how a controller can look into the future, optimise a whole sequence of commands, respect the limits of the motors, and why it has become the standard for legged robots, cars and drones.

3.1 Plan, act a little, plan again

A driver looks at the road ahead, plans how to take the next bend, turns the wheel a little, looks again, and corrects the plan. MPC does exactly this, many times per second:

  1. Predict: with the model xk+1 = A xk + B uk, compute where the robot will be over the next N steps (the horizon) for any sequence of commands.
  2. Optimise: choose the sequence u0 … uN−1 that minimises a cost (errors and commands, as in the LQR) while respecting the limits (torque, speed, obstacles).
  3. Apply only the first command u0, measure the new state, and start again at the next sample.
The big advantage: constraints

A PID or an LQR does not know the limits: when the motor saturates, the loop behaves badly (lesson 12 of the control course and its anti-windup). MPC plans with the limits: it knows that the motor cannot give more than 1 rad/s², so it starts braking at the right time.

3.2 A joint with a limited acceleration

The joint must go from 0 to 1 rad and stop, with |u| ≤ 1 rad/s², a sample time of 0.1 s and a horizon of 20 steps (2 s). The predictions are stacked into one big matrix equation; the optimisation is a quadratic programme, solved here with a simple projected gradient (descend, then clip to the limits):

"""Model predictive control of a joint (double integrator) with a limit on the acceleration."""
import numpy as np

dt, N = 0.1, 20                   # sample time (s) and horizon (steps): the controller looks 2 s ahead
A = np.array([[1, dt], [0, 1]])   # state x = (position, speed)
B = np.array([[0.5 * dt**2], [dt]])
U_MAX = 1.0                       # |acceleration| <= 1 rad/s^2 (the motor limit)
Q, R_W = np.diag([10.0, 1.0]), 0.1


def predict_matrices():
    """Stack the predictions: X = F x0 + G U over the whole horizon."""
    F = np.vstack([np.linalg.matrix_power(A, k + 1) for k in range(N)])
    G = np.zeros((2 * N, N))
    for k in range(N):
        for j in range(k + 1):
            G[2 * k:2 * k + 2, j:j + 1] = np.linalg.matrix_power(A, k - j) @ B
    return F, G


F, G = predict_matrices()
Qbar = np.kron(np.eye(N), Q)
H = G.T @ Qbar @ G + R_W * np.eye(N)          # cost = U^T H U + 2 U^T g  (a quadratic programme)


def mpc_step(x0, target):
    g = G.T @ Qbar @ (F @ x0 - np.tile(target, N))
    U = np.zeros(N)
    step = 1.0 / np.linalg.eigvalsh(H).max()
    for _ in range(300):                       # projected gradient: descend, then clip to the limits
        U = np.clip(U - step * (H @ U + g), -U_MAX, U_MAX)
    return U[0]                                # apply only the first command, then do it all again


if __name__ == '__main__':
    x, target = np.array([0.0, 0.0]), np.array([1.0, 0.0])    # go from 0 to 1 rad and stop
    for k in range(41):
        u = mpc_step(x, target)
        if k % 5 == 0:
            print(f't = {k * dt:3.1f} s   position = {x[0]:6.3f} rad   speed = {x[1]:6.3f} rad/s   u = {u:6.3f} rad/s^2')
        x = A @ x + B[:, 0] * u
t = 0.0 s   position =  0.000 rad   speed =  0.000 rad/s   u =  1.000 rad/s^2
t = 0.5 s   position =  0.125 rad   speed =  0.500 rad/s   u =  1.000 rad/s^2
t = 1.0 s   position =  0.496 rad   speed =  0.926 rad/s   u = -0.554 rad/s^2
t = 1.5 s   position =  0.854 rad   speed =  0.471 rad/s   u = -1.000 rad/s^2
t = 2.0 s   position =  0.984 rad   speed =  0.103 rad/s   u = -0.341 rad/s^2
t = 2.5 s   position =  1.004 rad   speed =  0.005 rad/s   u = -0.052 rad/s^2
t = 3.0 s   position =  1.003 rad   speed = -0.005 rad/s   u =  0.004 rad/s^2
t = 3.5 s   position =  1.001 rad   speed = -0.002 rad/s   u =  0.005 rad/s^2
t = 4.0 s   position =  1.000 rad   speed = -0.001 rad/s   u =  0.002 rad/s^2
Read the output

The controller accelerates at the limit (+1) until about 0.8 s, then brakes, at the limit again (−1) around 1.5 s, and arrives at 1 rad with almost no overshoot (1.004) around 2.5 s. It never asks more than the motor can give: the constraint is part of the plan. An LQR with the same weights would ask for more than 1 rad/s² at the start and be clipped.

3.3 In practice

QuestionAnswer
How long a horizon?Long enough to see the end of the manoeuvre (here 2 s to brake); longer costs more computation.
Is it fast enough?Dedicated solvers (OSQP, acados, qpOASES) solve such problems in less than 1 ms: MPC runs at 100 Hz to 1 kHz on legged robots.
Nonlinear robots?Nonlinear MPC uses the full model, or relinearises it at each step.
What if the model is wrong?Replanning at every step corrects small errors; large ones need a better model or a robust MPC.

Where it is used: the walking of humanoids and quadrupeds (the next lesson), autonomous cars (lane keeping with steering limits), drones racing through gates, and the path following controller of Nav2 (MPPI).

Key terms

  • model predictive control (MPC)
  • horizon
  • receding horizon
  • constraint
  • quadratic programme
The essentials
  • MPC: predict over a horizon, optimise the commands under constraints, apply only the first, repeat.
  • Its main advantage: the limits of the motors are part of the plan.
  • Fast QP solvers run it at 100 Hz to 1 kHz on legged robots, cars and drones.
MPC: from the present state, the controller predicts the motion over a horizon, respects the limits, applies the first command, then repeats one step later.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

Sample time 0.05 s, horizon 40 steps. How far ahead does the controller look (s)?

Solution

40 × 0.05 = 2 s.

Level 2 · Intermediate2

|acceleration| ≤ 1 rad/s². Shortest time to go from rest to rest over 1 rad (bang-bang, s)?

Hint

Accelerate over half the distance, brake over the other half: 0.5 = ½ a t².

Solution

Each half: t = √(2 × 0.5 / 1) = 1 s, so 2 s in total. The MPC of the lesson arrives in about 2.5 s: close to this limit, without overshoot.

Level 3 · Professional3

Why does MPC replan at every sample instead of executing its whole plan?

  1. To correct model errors and disturbances with the newest measurement
  2. Because the solver forgets the plan
  3. To use less computation

Solution

Replanning closes the loop: the plan always starts from the measured state.

Check yourself
  1. Why does MPC apply only the first command of its plan?

    Because it replans at the next sample with the new measurement: this corrects model errors and disturbances.

  2. What is the main advantage of MPC over an LQR?

    It takes the limits (constraints) into account in the plan.

  3. What does the horizon N set?

    How far ahead the controller looks: long enough to see the manoeuvre, but more computation.

4

Legged robots: balance, ZMP and the inverted pendulum

18 min
You will learn

when a legged robot is stable, what the zero moment point is, how the linear inverted pendulum model explains walking, and where to put the foot to stop after a push.

4.1 Static balance: the support polygon

Standing still, a robot is stable if the vertical through its centre of mass falls inside the support polygon: the convex area drawn by the feet on the ground. A table with four legs has a large polygon; a biped on one foot has a polygon the size of its sole. Slow quadruped gaits keep three feet on the ground and move the body so that this condition always holds.

4.2 Dynamic balance: the ZMP

When the robot moves, inertia adds to gravity. The zero moment point (ZMP) is the point of the ground where the total of gravity and inertia forces has no tipping moment: it is where the ground reaction acts. The rule of all walking controllers since the 1970s: keep the ZMP inside the support polygon, and the feet stay flat on the ground.

4.3 The linear inverted pendulum

Model the robot as a point mass at a constant height zc above the ground, on a massless leg whose foot is at the ZMP p. The horizontal motion of the centre of mass x becomes linear:

ẍ = ω² ( x − p )    ω = √( g / zc )

If the centre of mass is ahead of the foot, it accelerates forward: the robot falls, exponentially, with the time constant 1/ω. For zc = 0.8 m: ω = 3.50 rad/s, 1/ω = 0.29 s. Walking is a controlled fall: the robot falls forward and puts its next foot to catch itself, step after step.

4.4 The capture point: where to step

Combine position and speed into one number, the capture point (or divergent component of motion):

ξ = x + ẋ / ω

If the robot puts its foot exactly at ξ, it comes to a stop above it. Example: after a push the centre of mass, above the foot, moves at 0.5 m/s: ξ = 0.5 / 3.50 = 0.14 m. A step of 14 cm stops the robot; a shorter step does not, and it must step again. This is the logic of push recovery in modern humanoids.

4.5 From the model to a walking robot

  1. Footstep planner: where to put the feet (on a map, around obstacles).
  2. Centre of mass planner: an MPC on the inverted pendulum (lesson 3) keeps the ZMP in the feet while following the steps.
  3. Whole-body controller: turns the wanted motion of the centre of mass and of the feet into joint torques, with the full dynamic model (control course, lesson 10) and the contact forces.
  4. State estimation: IMU + joint encoders + contact detection give the pose of the body (a Kalman filter).

Quadrupeds use the same ideas with trotting gaits (two diagonal feet at once). Recent robots also learn their gaits in simulation with reinforcement learning (lesson 7), with the model-based layers as a safety net.

Key terms

  • support polygon
  • zero moment point (ZMP)
  • linear inverted pendulum
  • capture point
  • gait
  • whole-body control
The essentials
  • Static balance: the centre of mass above the support polygon. Dynamic balance: the ZMP inside it.
  • Linear inverted pendulum: ẍ = ω²(x − p), ω = √(g/z_c): walking is a controlled fall.
  • Capture point ξ = x + ẋ/ω: put the foot there to stop.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

Centre of mass at 0.9 m. ω = √(g/z) in rad/s?

Solution

√(9.81 / 0.9) = 3.30 rad/s.

Level 2 · Intermediate2

Same robot, above its foot, pushed to 0.6 m/s. Capture point: how far to step (m)?

Solution

ξ = 0.6 / 3.30 = 0.182 m.

Level 3 · Professional3

A quadruped walks slowly with 3 feet always on the ground. Which kind of balance does it rely on?

  1. Static: the centre of mass stays above the triangle of the 3 feet
  2. Dynamic only: it must keep moving

Solution

A slow 3-legged gait is statically stable: it could stop at any moment. Trotting is dynamic.

Check yourself
  1. When is a robot standing still statically stable?

    When the vertical through its centre of mass falls inside the support polygon of its feet.

  2. Why is walking a “controlled fall”?

    The inverted pendulum is unstable: the robot falls forward and places its next foot to catch itself.

  3. What does the capture point tell you?

    Where to put the foot so that the robot comes to a stop above it: ξ = x + ẋ/ω.

See a humanoid walk in 3D →

5

Aerial robots: how a quadrotor flies and is controlled

16 min
You will learn

the forces on a quadrotor, why it is underactuated, how four motor speeds become thrust and torques, and the cascade of controllers that keeps it in the air.

5.1 Forces and the hover

Each propeller gives a thrust fi = kf ωi² (proportional to the square of its speed) and a drag torque km ωi². Two propellers turn clockwise and two anticlockwise, so their drag torques cancel. To hover, the total thrust equals the weight: T = m g. For a 1.2 kg drone: T = 11.8 N, so 2.94 N per motor.

5.2 Four motors, six degrees of freedom

A quadrotor moves in 6 directions (3 positions, 3 angles) with only 4 inputs: it is underactuated. It cannot push sideways; to move forward it must tilt, so that part of the thrust points forward. With a tilt φ at constant altitude, the horizontal acceleration is a = g tan φ: 10° gives 1.73 m/s².

5.3 The mixer

The flight controller asks for a total thrust T and three torques (roll τφ, pitch τθ, yaw τψ). For an X frame of arm length d, the four thrusts follow from one 4×4 matrix, inverted once:

To…Do
climball four motors faster
roll rightleft motors faster, right motors slower
pitch forwardrear motors faster, front motors slower
turn (yaw)the pair turning one way faster, the other pair slower: the drag torques no longer cancel

5.4 The cascade of controllers

  1. Position loop (10 to 50 Hz): position error → wanted acceleration → wanted tilt angles and thrust.
  2. Attitude loop (250 Hz to 1 kHz): angle error → wanted angular speeds.
  3. Rate loop (1 to 8 kHz): gyroscope → torques → mixer → motor speeds (through the ESCs).
Why a cascade

Each inner loop is 5 to 10 times faster than the one around it (control course, lesson 8). The outer loop can then consider that its order is executed at once. The attitude is estimated by fusing the gyroscope (fast, drifts) and the accelerometer (slow, noisy) with a complementary or Kalman filter, as quaternions (maths course, lesson 11).

Open-source autopilots (PX4, ArduPilot, Betaflight) implement exactly this structure and talk to ROS 2. Aggressive flight (racing, perching) replaces the outer loops by MPC on the full model.

Key terms

  • thrust
  • underactuated
  • mixer
  • attitude
  • cascade control
  • ESC
The essentials
  • Hover: total thrust = m g, shared by the 4 motors; thrust ∝ (speed of the propeller)².
  • Underactuated: to move, the drone tilts; a = g tan φ.
  • Cascade: position (slow) → attitude → angular rate (fast) → mixer → motors.
A quadrotor cannot push sideways: it tilts by φ, and the horizontal part of its thrust accelerates it at a = g tan φ.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

A 2 kg quadrotor hovers. Thrust per motor (N)?

Solution

2 × 9.81 / 4 = 4.905 N.

Level 2 · Intermediate2

Tilt of 20° at constant altitude. Horizontal acceleration (m/s²)?

Solution

9.81 × tan 20° = 3.57 m/s².

Level 3 · Professional3

Thrust ∝ ω². To double the thrust of a motor, by how much must its speed be multiplied?

Solution

ω² × 2 → ω × √2 ≈ 1.414.

Check yourself
  1. Why is a quadrotor called underactuated?

    It has 6 degrees of freedom but only 4 inputs: it cannot push sideways and must tilt to move.

  2. How does a quadrotor turn around its vertical axis?

    It speeds up the pair of propellers turning one way and slows the other pair: the drag torques no longer cancel.

  3. Which loop is the fastest in a flight controller?

    The rate loop (angular speeds from the gyroscope), at kilohertz rates.

See a quadrotor fly in 3D →

6

Vision in practice: calibration, markers, hand-eye and point clouds

18 min
You will learn

the full chain that lets a robot grasp what a camera sees: intrinsic calibration, pose from markers, hand-eye calibration, and depth images turned into 3D points.

6.1 The camera matrix

A camera projects a point (X, Y, Z), expressed in the camera frame, to the pixel (u, v):

u = fx X/Z + cx    v = fy Y/Z + cy    K = fx0cx0fycy001

f (in pixels) and the image centre (cx, cy) are the intrinsic parameters, found once by calibration: film a printed checkerboard from 15 to 30 angles, and a library (OpenCV calibrateCamera) finds K and the lens distortion. A good calibration has a reprojection error below 0.5 pixel.

6.2 Pose from a marker

An ArUco or AprilTag marker is a black and white square with a known size and a code. The camera finds its four corners in the image; since their 3D positions on the marker are known, solving the PnP problem (Perspective-n-Point, OpenCV solvePnP) gives the full pose of the marker in the camera frame: CTmarker. Markers are used to calibrate, to localise robots, and to find workpieces.

6.3 Hand-eye calibration

The camera sees the object; the robot must grasp it. We need the transform between the camera and the robot. Two set-ups:

Set-upUnknownChain used to grasp
Eye-in-hand: camera on the tooltoolTcamerabaseTobj = baseTtool · toolTcam · camTobj
Eye-to-hand: fixed camerabaseTcamerabaseTobj = baseTcam · camTobj

To find the unknown X, move the robot to 10 to 20 poses while the camera looks at a fixed marker. Between two poses, the motion of the tool A (from the robot) and the motion seen by the camera B satisfy A X = X B, which OpenCV (calibrateHandEye) solves. This is exactly the chain of homogeneous matrices of the maths course, lesson 5.

6.4 Depth images and point clouds

A depth camera (stereo, structured light, time of flight) gives a distance Z for every pixel. Invert the projection to get a 3D point per pixel: a point cloud.

X = (u − cx) Z / fx    Y = (v − cy) Z / fy

Example: f = 600 px, cx = 320, a pixel at u = 420 with a depth of 0.5 m: X = 100 × 0.5 / 600 = 8.3 cm to the right of the optical axis.

A typical bin-picking pipeline
  1. Point cloud from the depth camera; keep only the points inside the bin (crop).
  2. Remove the floor or the table: fit a plane with RANSAC (try random planes through 3 points, keep the one that fits the most points).
  3. Split the rest into objects (clustering), or detect them in the colour image with a neural network.
  4. Compute a grasp pose on the object (centre, surface normal for a suction cup), express it in the robot base with the hand-eye transform, check it with the inverse kinematics, and send it to MoveIt.

Libraries: OpenCV (images, calibration, markers), Open3D and PCL (point clouds), and in ROS 2 image_pipeline, aruco_ros and easy_handeye2.

Key terms

  • intrinsic parameters
  • camera calibration
  • fiducial marker
  • PnP
  • hand-eye calibration
  • point cloud
  • RANSAC
The essentials
  • Intrinsic calibration (checkerboard) gives K: focal length and image centre, plus distortion.
  • A marker gives its pose by PnP; hand-eye calibration (A X = X B) links the camera to the robot.
  • Depth → point cloud: X = (u − cx) Z / f. RANSAC removes the table; then compute the grasp.
The pinhole camera: similar triangles link a point of the scene to its pixel. With the depth Z, each pixel gives back a 3D point.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

f = 500 px, cx = 320, a pixel at u = 370 with depth 0.8 m. X (m)?

Solution

(370 − 320) × 0.8 / 500 = 50 × 0.8 / 500 = 0.08 m.

Level 2 · Intermediate2

A point at X = 0.1 m, Z = 0.5 m, with f = 600 px and cx = 320. Pixel u?

Solution

u = 600 × 0.1 / 0.5 + 320 = 120 + 320 = 440.

Level 3 · Professional3

The camera is fixed above the table. Which hand-eye unknown do you calibrate?

  1. ᵇᵃˢᵉT_camera (eye-to-hand)
  2. ᵗᵒᵒˡT_camera (eye-in-hand)

Solution

A fixed camera: find its pose in the robot base (eye-to-hand).

Check yourself
  1. What does the intrinsic calibration of a camera find?

    The focal length in pixels, the image centre and the lens distortion (the matrix K).

  2. Why is hand-eye calibration needed?

    To know the transform between the camera and the robot, so that what the camera sees can be expressed in the robot base.

  3. What does RANSAC do in a point cloud?

    It fits a model (for example a plane) robustly, by trying random candidates and keeping the one that most points agree with.

Review the basics of vision in the perception course →

7

Reinforcement learning for robots

18 min
You will learn

the vocabulary of reinforcement learning, the Q-learning update and the policy-gradient idea, how rewards are designed, and how a policy learned in simulation is moved to a real robot.

7.1 The loop: agent and environment

At each step the robot (the agent) sees a state s, chooses an action a with its policy π(a | s), and receives a reward r and a new state. Its goal: maximise the sum of the future rewards, each discounted by γ per step (0 < γ < 1):

G = r0 + γ r1 + γ² r2 + …

No one tells the robot what the right action is: it learns from the consequences, by trial and error. This is the difference with supervised learning (perception course, lesson 8).

7.2 Values and Q-learning

Q(s, a) is the expected return if the robot takes action a in state s and then acts well. If Q is known, the best action is simply the one with the largest Q. Q-learning improves its estimate after each step:

Q(s, a) ← Q(s, a) + α [ r + γ maxa′ Q(s′, a′) − Q(s, a) ]

Example: Q = 2, reward 1, best value of the next state 5, γ = 0.9, learning rate α = 0.1: the target is 1 + 0.9 × 5 = 5.5, the error 3.5, and Q becomes 2 + 0.1 × 3.5 = 2.35. Repeated millions of times, Q converges. With a neural network instead of a table, this is DQN.

7.3 Continuous actions: policy gradient

Robot joints need continuous actions (torques, target angles), where “max over all actions” is impractical. Policy-gradient methods train a neural network that outputs the action directly, and nudge its weights so that actions followed by high returns become more likely. PPO (the most used in robotics) and SAC are the standard algorithms.

7.4 Rewards: say what you want, not how

TaskReward terms
walk forward+ speed towards the target, − energy (Σ τ²), − falls, − jerky joints
reach a point− distance of the tool to the target, + bonus when reached, − collisions
Reward hacking

The agent maximises exactly what you wrote, not what you meant. Rewarding “speed of the body” only, a simulated robot may learn to throw itself forward or to vibrate in a strange way. Watch the videos of the learned behaviour, and add penalty terms.

7.5 From simulation to the real robot

Learning needs millions of trials: on a real robot that would take years and break it. Policies are trained in simulation (Isaac Lab, MuJoCo), thousands of robots in parallel on a GPU, in hours. The sim-to-real gap (friction, masses, delays, sensor noise differ) is closed by:

  • Domain randomisation: change masses, friction, delays and noise randomly during training, so that the real robot is just one more variation.
  • Good actuator models: learn or measure the real response of the motors and put it in the simulator.
  • Safety layers: limits on torques and speeds, and a classical controller ready to take over.

This recipe is behind the agile quadrupeds and humanoids of recent years. For manipulation, imitation learning from human demonstrations, and foundation models, are often combined with it (perception course, lesson 8).

Key terms

  • agent / environment
  • policy
  • reward
  • Q-learning
  • policy gradient (PPO)
  • reward hacking
  • sim-to-real
  • domain randomisation
The essentials
  • Agent, state, action, reward, policy; goal: maximise G = Σ γᵏ rₖ.
  • Q-learning: Q ← Q + α (r + γ max Q′ − Q). Continuous actions: policy gradient (PPO, SAC).
  • Train in simulation with domain randomisation, then transfer with safety layers.
The reinforcement-learning loop: the agent acts, the world answers with a new state and a reward, and the policy improves to maximise the sum of rewards.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

Rewards 1, 1, 1, 1 with γ = 0.5. Return G?

Solution

1 + 0.5 + 0.25 + 0.125 = 1.875.

Level 2 · Intermediate2

Q = 4, r = 0, max Q′ = 6, γ = 0.9, α = 0.5. New Q?

Solution

Target 0 + 0.9 × 6 = 5.4; error 1.4; Q = 4 + 0.5 × 1.4 = 4.7.

Level 3 · Professional3

A simulated robot rewarded only for forward speed learns to dive forward. What happened?

  1. Reward hacking: add penalties (falls, energy, posture)
  2. The simulator has a bug
  3. The learning rate is too small

Solution

The agent maximised exactly the reward written: reward hacking. Add the terms you forgot.

Check yourself
  1. What is the difference between reinforcement learning and supervised learning?

    In RL nobody gives the right answer: the agent learns from rewards, by trial and error.

  2. Why are robot policies trained in simulation?

    Learning needs millions of trials: in simulation they are fast, parallel and nothing breaks.

  3. What is domain randomisation for?

    To make the policy robust to the differences between simulation and reality, by training on many random variations.

8

Grasping in practice: choose, size and test a gripper

24 min
You will learn

to choose a gripper from the part and the cycle, to compute the gripping force with the accelerations, to size a pneumatic gripper and a vacuum system, to check the robot payload and wrist moment, to know when a grasp holds (friction cones), and to test it like an engineer.

In industry the gripper is often the part of the cell that fails first, and the one that is chosen last. This lesson follows the order an engineer uses: the part → the type of gripper → the force → the robot → the tests. It continues lesson 3 of “Robots in the real world”, which presents the families of end effectors.

8.1 Start from the part and the cycle

Before looking at a catalogue, write down the facts. Each line of this list removes some grippers:

QuestionWhy it matters
Mass, size and centre of mass of the partThey give the force and the moment on the fingers and on the robot wrist.
Material and surface (smooth, oily, porous, magnetic)They decide between friction, vacuum and magnet, and give μ.
Fragility and allowed marksA maximum force, soft pads, or a soft gripper.
Where the part comes from (conveyor, tray, bin)Free space around it: two sides for jaws, one face for a cup; a bin needs vision.
Variants of partsLong stroke, adaptive fingers, or a tool changer.
Cycle time and accelerationsThey multiply the needed force; they also set the closing time.
Environment (food, clean room, heat, dust)Materials (silicone for food), sealing, no compressed air in a clean room.
If the part is…First choice
rigid, with two parallel facesparallel two-jaw gripper, fingers shaped to the part
flat, smooth, with a free top face (box, sheet, glass)vacuum cups
round (shaft, bottle)V-shaped jaws or a three-jaw centric gripper
soft, fragile or always different (fruit, bags)soft or adaptive gripper, low force
steel sheetmagnetic gripper (or vacuum)

8.2 The gripping force, with the accelerations

With a friction grip (force-fit), the jaws hold the part only by friction. With n jaws pressing with a normal force N each, the friction must carry the weight and the inertia of the part during the fastest move, with a safety factor S (2 is usual):

n · μ · N ≥ S · m · ( g + a )    ⇒    N ≥ S · m · ( g + a ) / ( n · μ )

Here a is the largest acceleration of the robot that pulls the part along the fingers (an up move of the robot, or the braking of a down move). If the part is held in a V-shaped jaw of angle α, the wedge multiplies the friction: μeff = μ / sin(α/2), that is 1.41 × μ for a 90° V. With a form-fit grip (fingers that go under a shoulder or into a groove), the shape carries the load and the force only keeps the part in place.

Worked example: a 2 kg steel part

m = 2 kg, a = 5 m/s², S = 2, two jaws, so S · m · (g + a) = 2 × 2 × 14.81 = 59.2 N to carry by friction.

  • Steel fingers on steel (μ = 0.15): N = 59.2 / (2 × 0.15) ≈ 197 N per jaw.
  • The same with 90° V-jaws (μeff = 0.21): 140 N.
  • Rubber pads (μ = 0.8): 37 N, a gripper five times smaller.

8.3 Pneumatic or electric gripper

A pneumatic gripper is a piston: its force is the pressure times the piston area, reduced by the efficiency of the mechanism. At 6 bar with a 25 mm piston: A = π × 0.0125² = 4.9·10⁻⁴ m², F = 6·10⁵ × 4.9·10⁻⁴ ≈ 295 N, about 118 N per jaw after a mechanism efficiency of 0.8. Plan the force at the lowest pressure of the factory network (often 5 bar, not 6).

Fpiston = p · π D² / 4    Njaw ≈ η · Fpiston / n

PneumaticElectric
Forcehigh for its size, fixed by the pressureset by the program, measured
Position of the jawsopen / closed (two sensors)known all the time: it checks the part size
Speedvery fast (0.05 to 0.2 s)slower (0.2 to 0.5 s)
Needscompressed air, valves, tubes
Best forsimple, fast, robust production

8.4 Sizing a vacuum system

A cup holds with the pressure difference times its area. The safety factor depends on how the load pulls on the cup: along its axis (cup on the top face of a box) S = 2 is usual; across it (cup on a vertical face), only friction holds and the force is divided by μ (about 0.5), so S = 4 or more.

Fcup = ΔP · π d² / 4    number of cups ≥ S · m · ( g + a ) / Fcup

Worked example: a 6 kg box

Cups on the top face, a = 5 m/s², S = 2: the cups must give 2 × 6 × 14.81 ≈ 178 N. One 40 mm cup at ΔP = 60 kPa gives 60 000 × π × 0.02² ≈ 75 N, so 178 / 75 = 2.4 → 3 cups, and 4 in practice to keep the box level and to tolerate one leaking cup. Cardboard is porous: choose the vacuum generator by its flow, and check the real vacuum with the real boxes.

  • Vacuum generator: a venturi ejector (compressed air, small, fast, but it uses air all the time) or an electric pump (efficient, for big flows or no air).
  • Cup: flat for smooth flat parts (precise), bellows for uneven or slightly inclined surfaces; silicone for food and heat, NBR for oily parts.
  • Sensing and release: a vacuum switch confirms the grasp before the robot moves; a short blow of air releases the part at once.

8.5 Check the robot: payload and wrist moment

The robot carries the gripper and the part. The payload of the data sheet is a mass at a given distance from the flange: the load diagram of the robot gives the allowed mass for each offset of the centre of mass. Compute the total mass and its centre of mass along the tool axis:

mt = mg + mp    d = ( mg dg + mp dp ) / mt    Mwrist = mt · g · d

Example: a 1.2 kg gripper with its centre of mass at 0.06 m and a 2 kg part at 0.15 m: mt = 3.2 kg, d = (0.072 + 0.30) / 3.2 ≈ 0.116 m, and the static moment on the wrist is 3.2 × 9.81 × 0.116 ≈ 3.6 N·m. A 5 kg robot may accept 5 kg at 0.05 m but only about 3 kg at 0.12 m: always read the load diagram, and enter the real tool data in the controller (mass, centre of mass, inertia), otherwise the dynamics and the collision detection are wrong.

8.6 When does a grasp hold? Friction cones

At a contact, the force can lean away from the normal by at most the angle arctan μ without slipping: the possible forces form a friction cone. For two fingers (an antipodal grasp), the part can be squeezed and held in any direction if the line between the two contacts lies inside both cones. In practice: the angle between each contact normal and the line joining the contacts must be smaller than arctan μ.

With μ = 0.5 the cone is 26.6° wide on each side, so a part with sides tilted by 12° is held; with μ = 0.15 (steel on steel, 8.5°) the same part is squeezed out of the fingers like a wet soap. This is why tapered or round parts need shaped fingers. With more fingers, the general tool is the grasp matrix G, which maps the contact forces to the wrench on the part: a grasp has force closure if, with forces inside the cones, G can produce any wrench.

8.7 Test the grasp like an engineer

  1. Check the grasp before moving: jaw position in the expected window (electric gripper), end-of-stroke sensor, or vacuum switch.
  2. Shake test: run the real cycle at 100 % speed and acceleration with the lightest and the heaviest parts, then with oily or dusty parts.
  3. Loss of energy: cut the air or the power during a move. A spring, a self-locking gear or a check valve must keep the part.
  4. Endurance: thousands of cycles; check wear of pads and cups, and the drift of the part position in the fingers.
SymptomUsual causeRemedy
the part slips downforce too low, μ lower than thought (oil)pads, V-jaws, form-fit, more force
the part turns in the fingerscentre of mass far from the fingersgrasp closer to the centre of mass, longer contacts
vacuum lost during the moveporous part, worn cup, small flowbigger flow, bellows cups, foam seal
the part stays stuck on releaseresidual vacuum or magnetism, sticky partblow-off pulse, ejector pin
grasp fails on some parts onlyposition error of the partchamfers and self-centring fingers, compliance, vision
Remember
  • Choose the gripper with the part, at the start of the project, not at the end.
  • Size with the worst case: lowest μ, lowest pressure, highest acceleration, and a safety factor.
  • Always prove the grasp with real parts at full speed, and check what happens when the energy is lost.

Key terms

  • force-fit / form-fit grip
  • safety factor S
  • V-jaw
  • pneumatic / electric gripper
  • vacuum cup, venturi ejector
  • load diagram
  • friction cone
  • antipodal grasp
  • force closure
The essentials
  • Start from the part and the cycle: mass, surface, fragility, free faces, accelerations, environment.
  • Friction grip: n μ N ≥ S m (g + a); V-jaws give μ / sin(α/2); a vacuum cup gives ΔP π d² / 4.
  • Check the payload and wrist moment on the load diagram, and test at full speed with the real parts.
Force per jaw N (newtons) to hold a 2 kg part with two jaws and S = 2, against the friction coefficient μ: good pads (high μ) make the gripper much smaller.

Worked exercises

Do each exercise on paper first, then type your answer (a small error is accepted) or pick an option. Open the hint if you are stuck, then read the solution: every step is explained.

Level 1 · Beginner1

A vacuum cup of 50 mm diameter at ΔP = 70 kPa. Holding force (N)?

Hint

A = π d² / 4 with d in metres.

Solution

A = π × 0.025² = 1.96·10⁻³ m²; F = 70 000 × 1.96·10⁻³ ≈ 137 N.

Level 2 · Intermediate2

A 0.8 kg part, two jaws, μ = 0.4, robot acceleration 3 m/s², S = 2. Normal force per jaw (N)?

Hint

N = S m (g + a) / (n μ).

Solution

N = 2 × 0.8 × 12.81 / (2 × 0.4) = 20.5 / 0.8 ≈ 25.6 N.

Level 2 · Intermediate3

A 4 kg box picked by its top face, a = 4 m/s², S = 2, each cup gives 50 N. How many cups at least?

Hint

Needed force S m (g + a), divided by the force of one cup, rounded up.

Solution

2 × 4 × 13.81 = 110.5 N; 110.5 / 50 = 2.2 → 3 cups (4 in practice, for balance and one leaking cup).

Level 3 · Professional4

Steel fingers on a steel part (μ = 0.15) whose two sides are tilted by 12°. What happens when the gripper closes?

  1. The part is squeezed out: 12° is larger than arctan 0.15 ≈ 8.5°
  2. It holds, because the force is high
  3. It holds, because there are two fingers

Solution

The line between the contacts must stay inside the friction cones (half-angle arctan μ = 8.5°). At 12° it is outside: whatever the force, the part slides out. Use rubber pads (μ = 0.5 → 26.6°) or fingers shaped to the part.

Check yourself
  1. Why does the gripping force depend on the acceleration of the robot?

    Because the friction must carry the weight and also the inertia m·a of the part during the fastest moves: N ≥ S m (g + a) / (n μ).

  2. Why is a vacuum cup on a vertical face less efficient than on a top face?

    On a vertical face the load is across the cup: only the friction of the cup holds it, so the force is divided by μ (about 0.5) and a larger safety factor is used.

  3. What must you check on the robot when you choose a gripper?

    The total mass (gripper + part) and its centre of mass against the load diagram, the wrist moment, and enter the tool data in the controller.

Review the families of end effectors (Robots in the real world, lesson 3) →

Glossary

All the words of the course in one place.

TermMeaning
Parallel robotA platform held by several chains, each with its motor near the base.
LQRThe state feedback u = −K x that minimises a cost on errors (Q) and commands (R).
MPCA controller that optimises a sequence of commands over a horizon, with constraints, and applies the first one.
ZMPThe point of the ground where gravity and inertia have no tipping moment; it must stay in the support polygon.
Capture pointξ = x + ẋ/ω: where to put the foot to come to a stop.
UnderactuatedFewer inputs than degrees of freedom (a quadrotor: 4 for 6).
Hand-eye calibrationFinding the transform between a camera and the robot by solving A X = X B.
Point cloudThe 3D points obtained from a depth image.
PolicyIn reinforcement learning, the rule that chooses the action from the state.
Antipodal graspTwo contacts facing each other; it holds if the line between them lies inside both friction cones.
Gripping safety factorThe margin S in n μ N ≥ S m (g + a): about 2 for friction grips and top suction, 4 or more for a cup loaded across.
Venturi ejectorA vacuum generator driven by compressed air: small and fast, but it uses air all the time.
Sim-to-realMoving a policy learned in simulation to the real robot.

Sources and references

This course was written from these books, papers, standards and documentation. They are also the best way to go further.

  1. J.-P. Merlet, Parallel Robots, 2nd ed., Springer, 2006. used for: Delta and Stewart platforms
  2. R. Clavel, Conception d’un robot parallèle rapide à 4 degrés de liberté, PhD thesis, EPFL, 1991 (the Delta robot). used for: the Delta robot
  3. B. D. O. Anderson, J. B. Moore, Optimal Control: Linear Quadratic Methods, Prentice Hall, 1990. used for: LQR
  4. J. B. Rawlings, D. Q. Mayne, M. M. Diehl, Model Predictive Control: Theory, Computation, and Design, 2nd ed., Nob Hill, 2017. used for: model predictive control
  5. S. Kajita, H. Hirukawa, K. Harada, K. Yokoi, Introduction to Humanoid Robotics, Springer, 2014. used for: legged robots, ZMP
  6. R. Mahony, V. Kumar, P. Corke, “Multirotor aerial vehicles: modeling, estimation, and control of quadrotor”, IEEE Robotics & Automation Magazine, 19(3), 2012. used for: aerial robots
  7. R. Szeliski, Computer Vision: Algorithms and Applications, 2nd ed., Springer, 2022 (free at szeliski.org). used for: vision in practice, point clouds
  8. R. S. Sutton, A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018 (free online). used for: reinforcement learning
  9. G. J. Monkman, S. Hesse, R. Steinmann, H. Schunk, Robot Grippers, Wiley-VCH, 2007. used for: grasping and vacuum grippers

You have reached the frontier of robotics!

From here, read research papers and the documentation of the tools (Pinocchio, OSQP, Isaac Lab, OpenCV), and build: a balancing robot, a small Delta, a vision-guided pick and place.

Back to the roadmap → Home page