TactivergeLite

Lite / Intelligent Robotic Systems / Week 28

One brain or many?

Should a robot run everything on one powerful computer, or spread the work across several small ones? Both answers ship in real products.

About 30 min · 2 goals · Checked by automated tests · Full interactive version

Why should I care?

Architecture choices are expensive to undo. Picking where computation lives decides wiring, software structure and how the robot fails, so engineers make the choice deliberately and write down why.

Predict

A robot spreads its control across five small processors linked by a bus. Compared with one big computer, what gets harder?

  1. Nothing: more processors are always better
  2. Keeping their data consistent and in sync over the bus
  3. Running fast control loops
Guess first, then reveal

Communication and synchronisation. Fast local loops often get easier, but now several processors must agree on time, units and state over a bus that has its own delays.

Discover

Treat the designs in the trade-offs lab as architecture options. Weight cost, reliability and latency first for a toy robot, then for a hospital delivery robot. Does the winner change? Which design is dominated (worse on everything)?

What the interactive shows (text version)

In the trade-offs lab, changing the weights changes which design scores highest; one design is worse on every criterion than another and can never win.

You can also open the interactive on the full site when you have a faster connection.

Watch (optional)

Watch for: Listen for the difference between low-level control and higher-level planning, and where each might run.

From factory arms to rovers: how robots sense, decide and move, including a first look at feedback control.

“Robots: Crash Course Computer Science #37” by CrashCourse (opens YouTube; streaming video uses a lot of data)

The video is optional. Everything you need is in this lesson's text.

Understand

Centralised

One computer runs perception, planning and control. Pros: one place for all data, simpler software, easy to debug. Cons: one busy processor must also meet fast loop deadlines, and if it crashes, everything stops.

Distributed

Small processors near each motor or sensor run fast local loops, and a main computer coordinates them over a bus. Pros: fast, predictable local loops and less wiring. Cons: more interfaces, bus delays and clock synchronisation to manage. A failure can be contained to one node, if the design plans for it.

Decide with criteria, not taste

List criteria (cost, latency, reliability, power, development time), weight them for this robot's users, score each option and check whether any option is dominated. Then record the decision and what you gave up, so the next engineer knows it was a choice, not an accident.

Explain it another way

Intuitive

One brain is like a single manager doing everything: simple, until they get overloaded. Many brains is like a team with walkie-talkies: faster locally, but they must keep talking.

Technical

Distributed designs move latency-critical loops next to the hardware and turn many analogue wires into one digital bus, at the cost of interface specifications, message scheduling and fault handling across nodes.

Applied

Many industrial arms put a servo drive at every joint that closes the current and speed loops locally, while a central controller plans trajectories and sends setpoints.

Worked example 1

A school robot must cost under 60 pounds and be easy for beginners to debug. Centralised or distributed?

Centralised: one cheap board, one program to read, no bus to configure. Loop timing is manageable because the robot is slow. The trade: if that board resets, the robot stops, which is acceptable for a classroom.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. Which is a typical advantage of a distributed architecture?
Practice 2. Design A costs more, is slower and is less reliable than design B. What is A?

Practice 4. Why write down what an architecture decision traded away?
Practice 5. For a hospital delivery robot, which criterion should usually get the most weight?

Apply it

Pick a robot (lawn mower, delivery drone or classroom rover). Score centralised and distributed designs on four weighted criteria, state the winner and write two sentences on what you traded away.

Reflect

Which criterion did you find hardest to weight, and who should really decide it?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Fast loops inside slow onesStates, events and guards →