Atlas Robotics
Lesson 1/9 · about 12 min

What an architecture is, and why it matters

Module 0 concluded that autonomy needs a different programming style from automation. What is it? An intelligent robot has to knit seven areas of AI, each with its own algorithms and data structures, into one working whole. The way they are knitted together is called an architecture, and it can be thought of as the software engineering of intelligence.

After this lesson you will

  • Define a robot software architecture
  • Distinguish operational, systems and technical architectures
  • State the software engineering principles that thinking in architectures brings
  • Know what biological intelligence suggests about layering

What an architecture is

The overall style of design or organization of a control system is called its architecture. Two complementary ways of putting it:

  • An architecture provides a principled way of organizing a control system, but at the same time it imposes constraints on the way the control problem can be solved.
  • An architecture describes a set of components and how they interact.

"Constraints" matters: an architecture doesn't only help, it also forbids. Choosing a reactive architecture means accepting no world model; choosing a hierarchical one means accepting that the robot stands still while it thinks.

Three types of architecture

The same system can be described at three levels of "zoom". Building a house makes the difference clear:

TypeDescribesBuilding a houseFor a service humanoid
Operational architectureWhat the system does at a high level, not howThe buyer picks a sketch: 3 bedrooms, open kitchen"Listen to requests, plan, carry them out with balance, walking and grasping skills"
Systems architectureHow the system works, in terms of major subsystemsThe contractor lines up plumbers, electricians, roofersBlocks: speech recognition, map, mission planner, gait controller, arm controller
Technical architectureImplementation details: algorithms, languages, librariesStuds go here, pipes go thereSpecific control algorithms, written in C++, running on a real-time operating system

Technical architectures change with every new language and application, and are the subject of standards wars. This course focuses on operational and systems architectures, and the algorithms at that level. These have barely changed in decades: understand them and you can read any manufacturer's robot system.

Why worry about software organization

At least seven areas of AI have to be knitted together, and large software projects only succeed with software engineering. Thinking in architectures brings:

AbstractionIgnore details to focus on the general organization of intelligence, with a semi-formal description everyone can share.
ModularityHigh cohesion: each block does one thing well and can be swapped for another algorithm producing the same result ("logical sensors", "logical behaviors"). Low coupling: new blocks can be added like apps. Each block can be unit-tested and debugged.
Anticipation of changeThe system can evolve incrementally and adapt as requirements change.
GeneralityNo reinventing the wheel for every new robot.

A canonical architecture is also a checklist (did you remember all the pieces?) and helps reveal fundamental vulnerabilities before the robot fails.

Lessons from biological intelligence

A sweeping metaphor (not precise biology) of how vertebrates organize intelligence:

PartDoesCharacter
Spinal cord and "lower brain"Skills and responses: reflexes, habits, balance, riding a bikeLoop 1: reactive, unconscious. As smart as a cockroach, fish or bird
"Middle brain"Converting sensor data into symbols, informationThe transform linking the two loops
CortexReasoning over symbols about goals: planning, optimization, situation awarenessLoop 2: deliberative, conscious

Two loops plus a transform. Humans also have "emotional intelligence": interfacing with others (showing what we think, speaking, gesturing), working in teams by social rules, and the persona we present. These become the three layers of the canonical architecture in lesson 2.

Check yourself

What is a robot architecture?

The overall organization of the control system: a set of components and how they interact; it provides principled organization but also constrains how the problem can be solved.

"The gait controller is written in C++ on a real-time OS" belongs to which architecture type?

Technical architecture (implementation details).

What do high cohesion and low coupling give a robot?

High cohesion: each block does one thing well and can be replaced by another algorithm with the same result. Low coupling: new blocks can be added without changing old ones, easy to test and debug.

How many loops does the biological metaphor suggest, and how do they differ?

Two loops plus a transform: the reactive loop (fast, unconscious), the deliberative loop (slow, conscious, on symbols), and the conversion of sensor data into symbols linking them.

What an architecture is, and why it matters · Module 1: Architectures: the software engineering of intelligence — Atlas Robotics