Play RoboForge

Rove

Don't just go toward the goal

Loading audio…

Press play to listen along. The line being read lights up as you go.

Show full transcript

Loading transcript…

01 Opening
Rove beat 1 of 5

At Rove's workbench sat a little robot in a cluttered maze of blocks, and Rove — a plump homing pigeon with a map-pouch — was teaching it the difference between wanting to reach the goal and knowing how to get there.

02 Rove
Rove beat 2 of 5

"Everyone thinks getting somewhere means heading straight at it," he cooed. "A naive robot does exactly that — the 'greedy' method: point at the goal, drive forward. Watch." The robot aimed straight and rammed a block, wheels spinning. "It wanted the goal. It just had no path. Wanting isn't a plan — and greedy-toward-the-goal gets stuck at the first wall."

He spread a grid over the maze. "Real navigation has two halves. First, the robot needs a map of what's in the way — an occupancy grid, where each little square is marked free or blocked from its sensors. You can't plan a route through a world you haven't mapped. Second, path planning: a search over that grid for a route of free squares from here to the goal. A good planner — the kind that powers real robots — explores outward, always expanding the most promising square first, until it finds the shortest clear path. And crucially, it will happily route away from the goal to get around an obstacle, because the shortest straight line is usually blocked and the shortest real path curves."

03 Rove
Rove beat 3 of 5

"Why can't it just turn when it hits the wall?" a builder asked.

"That's the greedy trap — the local minimum," Rove said. "Drive toward the goal, hit a wall, follow the wall... and a U-shaped obstacle can catch you in a pocket forever, endlessly 'closest' to the goal but never reaching it. A planner that looks at the whole map escapes the pocket, because it can see that the way out leads backward first. That's the difference between reacting and planning."

04 Rove
Rove beat 4 of 5

He traced a winding line. "Once the planner finds the route, it doesn't need every square — it picks waypoints, a few key turning points, and drives from one to the next, re-checking for anything new that moved into the way. Map the obstacles, plan a route over the map, follow the waypoints, replan if the world changes."

"So reaching a goal isn't about going straight at it," the builder said slowly. "It's about finding the path around what's in the way."

05 Closing
Rove beat 5 of 5

"Find the path, not just the goal," Rove agreed, and he settled on his perch and unrolled his well-worn map, tracing the winding, around-the-walls routes that always, eventually, led home. A warm, resourceful happiness settled in him — the gladness of a pigeon who had stopped battering himself against walls and learned to find the way around, who knew a goal blocked by a wall was never lost, only in need of a cleverer route.

He smoothed the map. "The goal tells you where," he said softly, "but the path — the winding, around-the-walls path — tells you how."

Hear it as an audio drama

A short play starring Rove, from RoboForge. Different voices, same idea. Listen any time after you read.

Loading audio…

Read the drama script
  1. Narrator: From Spark and Anvil and RoboForge — this is Rove, in chapter 1 of the RoboForge cast.
  2. Narrator: This drama uses an AI-generated voice. Voiced via Gemini 2.5.
  3. Narrator: At Rove's workbench a little robot sits in a cluttered maze of blocks. Rove, a plump homing pigeon with a map-pouch, is teaching the difference between wanting the goal and knowing how to get there.
  4. Rove: Everyone thinks getting somewhere means heading straight at it. A naive robot does exactly that — the greedy method: point at the goal, drive forward.
  5. Narrator: The robot aims straight and rams a block, wheels spinning.
  6. Rove: It wanted the goal. It just had no path. Wanting isn't a plan — and greedy-toward-the-goal gets stuck at the first wall.
  7. Rove: Real navigation has two halves. First, a map of what's in the way — an occupancy grid, each square marked free or blocked. You can't plan a route through a world you haven't mapped.
  8. Rove: Second, path planning: a search over that grid for a route of free squares to the goal. A good planner explores outward, always expanding the most promising square, and it will happily route away from the goal to get around an obstacle.
  9. Student: Why can't it just turn when it hits a wall?
  10. Rove: That's the greedy trap — the local minimum. Follow the wall, and a U-shaped obstacle catches you in a pocket forever, always closest to the goal but never reaching it. A planner that sees the whole map escapes, because it knows the way out leads backward first.
  11. Rove: Once it finds the route, it picks a few waypoints — key turning points — and drives from one to the next, re-checking for anything new in the way. Map, plan, follow, replan.
  12. Student: So reaching a goal isn't going straight at it. It's finding the path around what's in the way.
  13. Rove: Find the path, not just the goal. The goal tells you where. The winding, around-the-walls path tells you how.
  14. Narrator: He unrolls his well-worn map and traces the routes that always, eventually, lead home — knowing no wall can truly trap him, if he lifts up and looks.
  15. Narrator: You've been listening to a Spark and Anvil chapter, written by the Spark and Anvil writing team for ages 9 to 14.
  16. Narrator: Apps stay free forever.
  17. Narrator: Curriculum aligned to Computer Science Teachers Association standards.
  18. Narrator: Released under Creative Commons BY-NC-SA 4.0 for educational reuse. Visit Spark and Anvil for the full transcript.

The RoboForge ensemble

Rove is one of the friends in RoboForge. Each friend shows you one idea by how they act; meet them all and you have the whole subject.