cover

Robot's Loop

How do robots sense the world and decide how to move?
A robot rolls into a room it has never seen before. There's a chair, a wall, a cat, a patch of sunlight. The robot has n

A robot rolls into a room it has never seen before. There's a chair, a wall, a cat, a patch of sunlight. The robot has no eyes the way you do, no skin, no ears โ€” and yet, somehow, it stops just before the chair leg, turns, and glides around it. How? Let's open the robot up and follow what happens between "the world" and "the move."

First, the robot has to take in the world โ€” and it does this with ++sensor++s. A sensor is just a part that **turns some

First, the robot has to take in the world โ€” and it does this with sensors. A sensor is just a part that turns something out in the world into a number the robot can use. A camera turns light into numbers. A microphone turns sound into numbers. A bumper turns a gentle bonk into the number "1." Wherever you have a sense, a robot has a gadget that measures it instead.

~~Some robot senses you don't even have.~~ Many robots use a **spinning laser** that fires tiny pulses of light and time

Some robot senses you don't even have. Many robots use a spinning laser that fires tiny pulses of light and times how long each one takes to bounce back. Light that returns quickly means something is close; light that takes longer means it's far. From thousands of these timings, the robot builds a kind of dotted outline of everything around it โ€” a map made of distances.

But a number alone means nothing. If a camera hands over **millions of tiny color dots**, the robot still has to figure

But a number alone means nothing. If a camera hands over millions of tiny color dots, the robot still has to figure out: is that a cat, or a slipper, or the chair? This step is called perception โ€” turning raw measurements into "what things are." The robot compares the pattern of dots against patterns it has seen before, and makes its best guess.

Next the robot needs to know where it is. So it keeps a map in its memory and drops a little marker for ++"I am here."++

Next the robot needs to know where it is. So it keeps a map in its memory and drops a little marker for "I am here." As it moves, it checks the new sensor readings against the map: "The wall I saw is now on my left, so I must have turned." Matching what it sees now against what it remembers is how a robot keeps from getting hopelessly lost.

~~Now comes the thinking part:~~ deciding what to do. The robot has a goal โ€” say, "reach the kitchen" โ€” and a problem โ€”

Now comes the thinking part: deciding what to do. The robot has a goal โ€” say, "reach the kitchen" โ€” and a problem โ€” "there's a chair in the way." So it plans a path, like drawing a line through a maze, choosing the route that reaches the goal without bumping into anything. It will imagine several routes and pick the shortest safe one.

But the robot doesn't move all at once โ€” it decides again and again, many times every second. ~~Sense, think, move.~~ Se

But the robot doesn't move all at once โ€” it decides again and again, many times every second. Sense, think, move. Sense, think, move. Because the world keeps changing: the cat strolls into the path, a door swings shut. Each tiny cycle lets the robot notice the new thing and adjust before it's too late. That fast little loop is the secret heartbeat of every robot.

Finally, the decision turns into motion. The robot's "muscles" are motors, and the brain tells each one exactly how hard

Finally, the decision turns into motion. The robot's "muscles" are motors, and the brain tells each one exactly how hard and how long to spin. Want to turn left? Spin the right wheel a touch faster. Want to lift an arm? Turn this joint by this much. The plan becomes numbers, the numbers become spinning, and the spinning becomes a smooth, deliberate move across the floor.

~~So that's the whole trick.~~ Sense the world and turn it into numbers. Figure out what those numbers mean and where yo

So that's the whole trick. Sense the world and turn it into numbers. Figure out what those numbers mean and where you are. Plan a path to your goal. Move a little โ€” then do it all over again, faster than you can blink. No magic, no real eyes, just a clever loop running over and over. And the robot? It reaches the kitchen, rolls a polite circle around the cat, and parks itself right in its patch of sunlight.

How was this book?

A Wonderleaf Book

Robot's Loop

โ€” How do robots sense the world and decide how to move? โ€”

Wonderleaf Editions
โ€” ex libris โ€”
A Wonderleaf Book

Robot's Loop

How do robots sense the world and decide how to move?

Wonderleaf Editions ยท MMXXVI
Scene 1
A robot rolls into a room it has never seen before. There's a chair, a wall, a cat, a patch of sunlight. The robot has n
Robot's Loop2
Scene 1

A robot rolls into a room it has never seen before. There's a chair, a wall, a cat, a patch of sunlight. The robot has no eyes the way you do, no skin, no ears โ€” and yet, somehow, it stops just before the chair leg, turns, and glides around it. How? Let's open the robot up and follow what happens between "the world" and "the move."

3Robot's Loop
Scene 2
First, the robot has to take in the world โ€” and it does this with ++sensor++s. A sensor is just a part that **turns some
Robot's Loop4
Scene 2

First, the robot has to take in the world โ€” and it does this with sensors. A sensor is just a part that turns something out in the world into a number the robot can use. A camera turns light into numbers. A microphone turns sound into numbers. A bumper turns a gentle bonk into the number "1." Wherever you have a sense, a robot has a gadget that measures it instead.

5Robot's Loop
Scene 3
~~Some robot senses you don't even have.~~ Many robots use a **spinning laser** that fires tiny pulses of light and time
Robot's Loop6
Scene 3

Some robot senses you don't even have. Many robots use a spinning laser that fires tiny pulses of light and times how long each one takes to bounce back. Light that returns quickly means something is close; light that takes longer means it's far. From thousands of these timings, the robot builds a kind of dotted outline of everything around it โ€” a map made of distances.

7Robot's Loop
Scene 4
But a number alone means nothing. If a camera hands over **millions of tiny color dots**, the robot still has to figure
Robot's Loop8
Scene 4

But a number alone means nothing. If a camera hands over millions of tiny color dots, the robot still has to figure out: is that a cat, or a slipper, or the chair? This step is called perception โ€” turning raw measurements into "what things are." The robot compares the pattern of dots against patterns it has seen before, and makes its best guess.

9Robot's Loop
Scene 5
Next the robot needs to know where it is. So it keeps a map in its memory and drops a little marker for ++"I am here."++
Robot's Loop10
Scene 5

Next the robot needs to know where it is. So it keeps a map in its memory and drops a little marker for "I am here." As it moves, it checks the new sensor readings against the map: "The wall I saw is now on my left, so I must have turned." Matching what it sees now against what it remembers is how a robot keeps from getting hopelessly lost.

11Robot's Loop
Scene 6
~~Now comes the thinking part:~~ deciding what to do. The robot has a goal โ€” say, "reach the kitchen" โ€” and a problem โ€”
Robot's Loop12
Scene 6

Now comes the thinking part: deciding what to do. The robot has a goal โ€” say, "reach the kitchen" โ€” and a problem โ€” "there's a chair in the way." So it plans a path, like drawing a line through a maze, choosing the route that reaches the goal without bumping into anything. It will imagine several routes and pick the shortest safe one.

13Robot's Loop
Scene 7
But the robot doesn't move all at once โ€” it decides again and again, many times every second. ~~Sense, think, move.~~ Se
Robot's Loop14
Scene 7

But the robot doesn't move all at once โ€” it decides again and again, many times every second. Sense, think, move. Sense, think, move. Because the world keeps changing: the cat strolls into the path, a door swings shut. Each tiny cycle lets the robot notice the new thing and adjust before it's too late. That fast little loop is the secret heartbeat of every robot.

15Robot's Loop
Scene 8
Finally, the decision turns into motion. The robot's "muscles" are motors, and the brain tells each one exactly how hard
Robot's Loop16
Scene 8

Finally, the decision turns into motion. The robot's "muscles" are motors, and the brain tells each one exactly how hard and how long to spin. Want to turn left? Spin the right wheel a touch faster. Want to lift an arm? Turn this joint by this much. The plan becomes numbers, the numbers become spinning, and the spinning becomes a smooth, deliberate move across the floor.

17Robot's Loop
Scene 9
~~So that's the whole trick.~~ Sense the world and turn it into numbers. Figure out what those numbers mean and where yo
Robot's Loop18
Scene 9

So that's the whole trick. Sense the world and turn it into numbers. Figure out what those numbers mean and where you are. Plan a path to your goal. Move a little โ€” then do it all over again, faster than you can blink. No magic, no real eyes, just a clever loop running over and over. And the robot? It reaches the kitchen, rolls a polite circle around the cat, and parks itself right in its patch of sunlight.

19Robot's Loop

~ finis ~

Tiny picture books for big little questions.

โ€” a small constellation of questions โ€”
โœฆWonderleaf
Editions