Robots and Making

How Robots Sense and Move Through the World

A plain-language look at how robots use cameras and range sensors to perceive their surroundings, and how motion planning turns that into safe movement.

On this page
  1. Sense, think, act
  2. What robots use to sense
  3. Combining measurements
  4. Knowing where it is
  5. Planning how to move
  6. Why it is still hard
  7. The takeaway

Sense, think, act

Most mobile robots, from warehouse carts to robot vacuum cleaners, follow a loop that engineers often summarize as sense, think, act. The robot gathers measurements about its surroundings, builds some picture of the situation, decides what to do, moves, and then senses again. This repeats many times per second. Each stage can go wrong, which is why robots that look impressive in a demonstration can struggle in an ordinary, messy room.

What robots use to sense

Cameras

Cameras give rich information: color, texture, shapes and text. A single camera produces a flat image, so the robot has to infer depth from clues. Two cameras placed apart, like human eyes, can estimate distance from the small differences between the two images. Software based on machine learning and neural networks is commonly used to recognize objects, such as a person, a door or a pallet, in the images.

Cameras have weak points. Low light, glare, fog and unusual backgrounds can all reduce reliability, and a system trained on one kind of scene may perform worse in a different one.

Range sensors

Other sensors measure distance directly.

  • Laser scanners (often called lidar). They send out pulses of light and time how long the reflections take to return, building a set of distance points around the robot. They are accurate, but glass, mirrors and very dark or shiny surfaces can confuse them.
  • Ultrasonic sensors. They use sound pulses in the same way. They are inexpensive and good for short ranges, but their readings are coarse.
  • Depth cameras. These project a pattern or measure the travel time of light to produce a depth value for each pixel in view. They work best at moderate range and indoors.
  • Radar. It uses radio waves and can work in conditions that trouble cameras, such as rain or dust, although its detail is usually lower.

Sensors that report on the robot itself

A robot also needs to know what its own body is doing. Wheel or joint encoders count rotation. Inertial sensors measure acceleration and turning. Force and touch sensors tell a gripper whether it is holding something and how firmly. Outdoors, satellite navigation can supply a rough position, but it is unreliable indoors and between tall buildings.

Combining measurements

No sensor is perfect, and each one has readings that are noisy or sometimes plain wrong. Robots therefore combine several sources, a process often called sensor fusion. A camera might identify that an object is a chair, while a range sensor says how far away it is. If the two disagree, the software weighs how much to trust each one, often using probability to express its confidence rather than treating readings as certain.

Knowing where it is

To move usefully, a robot needs to know where it is. One common approach is to build a map while moving through the space and, at the same time, estimate its own position on that map. Engineers call this simultaneous localization and mapping. The robot recognizes landmarks, such as corners or edges, and uses them to correct the drift that accumulates in wheel and motion measurements. In a fixed factory, the layout may instead be mapped in advance, or marked with guides such as lines, tags or reflectors, which makes the task simpler and more dependable.

Maps can become outdated when furniture moves or people walk through, so many robots update their maps continuously or treat moving objects separately from fixed structure.

Planning how to move

Once the robot has a picture of the world, it must decide how to get from one place to another. Planning is often split into layers:

  1. Global planning. Choosing an overall route through the known map, much like picking roads on a journey.
  2. Local planning. Adjusting the path in real time to avoid obstacles that appear, such as a person stepping into a corridor.
  3. Control. Turning the chosen path into wheel speeds, joint angles or motor commands, while respecting limits such as how fast the machine can safely turn or stop.

For a robot arm, the same idea applies in a different form. The planner must find a sequence of joint movements that reaches an object without hitting the table, the arm itself or nearby people. The number of possible arm positions is very large, so planners use search methods and shortcuts rather than checking everything.

Safety margins are usually built in. Robots commonly slow down near people and stop when sensors lose track of the situation. Shared workspaces add further safety questions of their own.

Why it is still hard

People find walking through a crowded room easy because evolution and a lifetime of experience supply a huge amount of background knowledge. Robots do not have that. Typical difficulties include:

  • Unexpected situations. A reflective floor, a transparent door or an unfamiliar object may not match anything the robot was prepared for.
  • Moving people. Predicting what a person will do next is uncertain, and behavior varies.
  • Sensor limits. Weather, lighting and surface types change what sensors can detect.
  • Computing and power. Processing images and planning quickly takes energy, which matters for battery-powered machines. Some of this work is done on the device itself, an idea related to edge computing.
  • Fine touch. Handling soft, slippery or fragile objects is harder than moving through open space.

The takeaway

A robot’s view of the world is a rough, constantly updated estimate built from imperfect measurements. Better sensors, better software and carefully designed environments have all improved results, and robots now work reliably in many controlled settings. In open, unpredictable settings, performance is more limited, and claims of robots that can handle any environment should be approached with caution.

The complete guide to robots and making

The Future of Robotics: A Digital Experiment in Human-Robot Interaction
Read the guide

Keep exploring

Guides from other topics

All topics →