Hybrid architectures in real robots
The hybrid architecture isn't just a textbook diagram: almost every modern autonomous robot is organized this way, even if each manufacturer names the layers differently. This lesson places four kinds of robot into the three-layer frame, then looks closely at one case with real numbers: the Nav2 navigation system on the Atlas robot.
After this lesson you will
- Recognize the hybrid layers in a humanoid, a drone, a planetary rover and an indoor mobile robot
- Explain why each layer runs at a different rate, using numbers from a real configuration
- See that layers can live on different computers, and what that implies
Four robots, one frame
| Reactive layer | Sequencing layer | Planning layer | Interaction layer | |
|---|---|---|---|---|
| Humanoid | Keep balance, track joint trajectories, pull back on hard contact | Step sequence: walk to the table → reach → grasp → lift | "Get a cup from the kitchen": where to go, which hand, how to grasp | Listen, speak, gesture |
| Drone | Keep level, hold altitude, dodge obstacles right ahead | Take off → point 1 → photos → point 2 | A route covering the field, recomputed for strong wind or battery drain | Report battery and no-fly zones to the pilot |
| Planetary rover | Stop on excessive tilt or wheel sinkage | Drive short legs, stop to image, check, continue | Choose a safe route to the target on the terrain map; most science planning is done by the team on Earth | Send images, receive daily plans, because signals take many minutes |
| Indoor mobile robot | Follow the path, avoid people | Plan path → follow → recover if stuck | Map, localization, path to goal | Screens, status displays |
The planetary rover clearly shows layering driven by circumstances: since signals between planets take many minutes, humans can't drive directly; the reactive (safety) layer must be on the rover, while much of the big-picture planning can sit on Earth.
A case with numbers: Nav2 on the Atlas robot
Nav2 is a widely used open-source navigation system for ROS 2 mobile robots. Placing its blocks into the hybrid frame:
| Layer | Nav2 blocks |
|---|---|
| Interaction | RViz, goal commands (the navigate_to_pose action) |
| Sequencing | BT Navigator: a behavior tree splitting "go to goal" into steps |
| Planning | Planner server, global costmap, map, AMCL (localization) |
| Reactive | Controller server, local costmap, recovery behaviors (spin, back up, wait) |
The numbers below come from the Atlas robot's Nav2 configuration in the ROS 2 & Nav2 course and Nav2's default behavior tree:
| Block | Parameter | Value | Why |
|---|---|---|---|
| Replanning | RateController in the default behavior tree | 1 Hz | Walls don't move; planning over the whole map is costly |
| Global costmap | update_frequency | 1 Hz | Serves the planning layer |
| Local costmap | update_frequency | 10 Hz | Fast enough to see someone step out |
| Controller | controller_frequency | 20 Hz | A new velocity every 50 ms |
Worked example: the robot's top speed is 0.5 m/s. At 20 Hz, it travels 0.5 × 0.05 = 0.025 m between two decisions. At 1 Hz it would be 0.5 m, nearly a whole robot length: someone stepping out in that gap gets hit before the robot "sees" them. The 20× gap between the reactive and planning rates is the signature of a hybrid architecture.
Layers on different machines
On the real Atlas C1 robot, the "brain" spans three machines: an ESP32 microcontroller holds each wheel's speed; the onboard computer reads the LiDAR and computes kinematics; a separate PC over Wi-Fi runs all of Nav2. The split makes sense for computing power, but it has a consequence: Nav2's reactive layer sits across the Wi-Fi link. If the network is slow, the reflexes are slow. The robot compensates with a watchdog running on the robot itself: no new command within a time limit, and it stops.
Humanoids and drones usually can't accept this risk: their balance loops always run on the robot, right next to the hardware, because one cycle late means falling.
Check yourself
On a planetary rover, what must be on board and what can be on Earth? Why?
The reactive safety layer (stop on tilt, on sinkage) must be on board because signals take many minutes; the big science planning can be done by the team on Earth.
Which layer does Nav2's BT Navigator correspond to?
The sequencing layer: it splits the mission into steps and selects which blocks run when.
At 0.5 m/s, how far does the robot travel between decisions at a 20 Hz controller rate? At 5 Hz?
20 Hz: 0.025 m. 5 Hz: 0.1 m.
Why shouldn't a humanoid run its balance loop on a remote computer over Wi-Fi?
That loop must be extremely fast and regular; unpredictable network latency would make the robot fall. Critical reactive layers must sit next to the hardware.