Skip to main content
Robotics & Embodied AI

⏱ About 10 min10 XP

Moving Without Bumping

Have you ever walked through a crowded hallway at school — lots of kids going every direction — and made it through without bumping into anyone? You were doing something amazing: looking ahead, spotting people in your path, choosing when to step left or right, and timing your movements to slip through gaps. Robots need to do the exact same thing! Moving without bumping into walls, furniture, people, and other objects is called obstacle avoidance — and it is one of the most important skills a mobile robot can have.

How Robots See What Is Around Them

You use your eyes to see obstacles. Robots use sensors. Different types of sensors help robots understand the world around them. Ultrasonic sensors work like sonar — the same way bats navigate in the dark. The sensor sends out a sound wave that is too high-pitched for human ears to hear. When the wave bounces off an object and comes back, the sensor measures how long it took. The longer it took, the farther away the object is. This tells the robot exactly how far something is in front of it. Infrared sensors shoot out a beam of infrared light (invisible to human eyes). If the beam bounces off something close by and returns quickly, the robot knows there is an obstacle nearby. Lidar sensors work like ultrasonic sensors, but with laser light instead of sound. They shoot laser pulses in all directions and create a detailed map of everything around the robot. Self-driving cars use lidar to see the whole road. Cameras are the most like human eyes — they take pictures of the world and the robot's computer processes those pictures to identify objects, people, stairs, doors, and more.

The Big Idea

Robots use sensors like ultrasonic, infrared, lidar, and cameras to detect objects around them. Once the robot knows where obstacles are, its computer can plan a safe path around them.

Seeing an obstacle is only half the job. The other half is deciding what to do about it. When a robot detects an obstacle, its computer has to make a path-planning decision. Should it go left? Go right? Stop and wait? Back up and try a different route? For simple robots like a robot vacuum, the decision can be basic: hit a wall, turn a random amount, keep going. This works fine for vacuuming a room. For more complex robots — like a self-driving car or a warehouse robot carrying packages — path planning is much more sophisticated. The robot builds a map of its environment, marks where obstacles are, and calculates the safest, most efficient route to get from point A to point B without colliding with anything. This is similar to how a GPS app on a phone plans a route around traffic jams and road closures. Except the robot has to do it in real time, while moving, responding to obstacles that appear suddenly!

Flashcards — click each card to reveal the answer

Sometimes obstacles move! A person walks across a robot's path. A dog runs in front of it. Another robot crosses its route. This makes the job even harder. The robot not only has to see the obstacle — it has to predict where the obstacle is going and plan around its future position, not just its current position. Imagine trying to cross a busy street. You do not just look at where the cars are right now — you look at how fast they are moving and figure out whether you have time to cross before they reach you. Robots have to do exactly the same kind of prediction. This is one reason why robots in environments with many people — like schools, hospitals, or shopping centers — need very sophisticated sensing and computing systems. The world is unpredictable, and the robot has to handle surprises gracefully.

Safety First

One of the most important rules in robotics is: when in doubt, stop. If a robot is uncertain about what is in its path, the safest thing to do is slow down or halt entirely. A robot that bumps into a person can hurt someone — so being cautious is always better than being too fast.

Match each sensor to how it detects obstacles.

Terms

Ultrasonic sensor
Infrared sensor
Lidar
Camera

Definitions

Takes pictures of the world so the robot can identify objects, people, and spaces
Shoots invisible light beams and detects when they bounce back quickly from a nearby surface
Sends out high-pitched sound waves and measures how long they take to bounce back
Fires laser pulses in all directions to build a detailed 3D map of surroundings

Drag terms onto their definitions, or click a term then click a definition to match.

A robot vacuum bumps into a chair leg, turns a random amount, and keeps going. A self-driving car detects a pedestrian and calculates the safest path around them. What is the difference?

Why do robots working around people need to be extra careful about obstacle avoidance?

Obstacle Course Navigator

  1. Set up a simple obstacle course in your home using pillows, chairs, boxes, or books placed on the floor.
  2. Part 1 — Eyes open: Walk through the course from start to finish without touching anything. Easy!
  3. Part 2 — Eyes closed (very slowly, with a spotter): Have a partner guide you by saying 'left', 'right', 'stop', or 'go'. They are your sensors!
  4. Part 3 — Robot rules: Walk through again with your eyes open, but you can only look straight ahead — no turning your head left or right. You are simulating a robot with only a front-facing sensor.
  5. After all three rounds, talk about it: which round was hardest? What information did you miss? What kinds of sensors would you add to help a robot navigate this course better?