Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

A 2D LiDAR sensor helps a robot measure how far away walls, furniture, and obstacles are by sending out laser light and timing its return. The sensor usually scans in a flat horizontal plane, creating a slice of the surrounding room. This matters because a robot needs reliable distance data to avoid collisions, follow paths, and understand where it is.

LiDAR is widely used in mobile robots, drones, warehouse vehicles, and autonomous navigation systems.

Inside many 2D LiDAR units, a laser beam is aimed outward while a rotating mirror or spinning sensor head sweeps the beam through many angles. For each direction, the sensor measures the time of flight of the light pulse or uses another optical ranging method to calculate distance. Combining angle and distance gives points in polar coordinates, which can be converted into a map of nearby surfaces.

Navigation software uses this scan data for obstacle detection, localization, and mapping.

Understanding Robotics: LiDAR Sensor

A LiDAR reading depends on light reflecting back to the receiver. This sounds simple, but real surfaces behave very differently. A pale wall often gives a strong return.

A dark carpet may absorb much of the light. Glass can be especially difficult because light may pass through it, reflect away from the sensor, or produce a return from something behind it. Shiny metal can send light in an unexpected direction.

Rain, dust, smoke, and bright sunlight can add unwanted signals. For this reason, a missing reading does not always mean empty space. Robot software must treat uncertain readings carefully instead of trusting every point equally.

The scan is only a thin slice through the world. Its height matters a great deal. A sensor mounted near wheel height can detect chair legs but miss a table top.

A sensor mounted higher may see the table edge while missing a low toy, a curb, or a step. A 2D sensor usually cannot tell whether an object extends upward or downward from the measured point.

Designers choose the mounting height based on the robot's job and add bumper switches, cameras, ultrasonic sensors, or 3D LiDAR when a single plane is not enough. This is why a robot that navigates well in an empty classroom can still struggle with dangling bags or glass doors.

Distance points become useful only when the robot knows its own movement. Wheel encoders estimate how far the wheels turn. An inertial sensor measures rotation and acceleration.

These estimates drift over time because wheels can slip and sensors have small errors. LiDAR helps correct that drift by comparing a new scan with a saved map or with earlier scans. Straight walls, corners, and fixed furniture provide landmarks for this comparison.

This process is part of localization and simultaneous mapping. It works best when the environment has stable features. It becomes harder in a crowded corridor where many people and moving carts appear in the scan.

Several settings involve tradeoffs. More measured directions can show narrow objects more clearly, but they create more data for the robot computer to process. Faster sweeps help when the robot moves quickly, yet each sweep may contain fewer reliable measurements or use more power.

Maximum range is not the same as useful range because weak returns become less dependable at long distances. Students should pay attention to the difference between accuracy, which is closeness to the true distance, and precision, which is repeatability of readings. They should inspect scans for patterns.

A flat wall should form a smooth line. Random scattered points may show noise.

Repeated short readings near the robot may reveal a dirty sensor window, a reflection, or part of the robot itself. Good robotics work includes testing these limits in real rooms, not only reading ideal sensor specifications.

Key Facts

  • Distance by time of flight: d = cΔt/2, where c is the speed of light and Δt is the round-trip time.
  • A 2D LiDAR scan measures distance at many angles in one plane, often 180° to 360° around the robot.
  • Polar scan point: x = r cos θ and y = r sin θ, where r is range and θ is scan angle.
  • Higher angular resolution means smaller angle steps, so the scan has more detail.
  • Scan rate, often measured in Hz, tells how many full sweeps the LiDAR completes each second.
  • A robot can build an occupancy grid by marking cells as free, occupied, or unknown based on LiDAR returns.

Vocabulary

LiDAR
LiDAR is a sensing method that uses laser light to measure distances to objects.
Time of flight
Time of flight is the time it takes a light pulse to travel to an object and return to the sensor.
Scan angle
Scan angle is the direction in which the LiDAR beam is pointing during a distance measurement.
Point cloud
A point cloud is a collection of measured points that represent the positions of surfaces around the sensor.
Occupancy grid
An occupancy grid is a map divided into cells that estimate whether each location is empty, blocked, or unknown.

Common Mistakes to Avoid

  • Forgetting to divide by 2 in d = cΔt/2 is wrong because the measured time includes the trip to the object and the trip back.
  • Assuming a 2D LiDAR sees above and below itself is wrong because it usually scans only one flat plane unless tilted or moved.
  • Treating every missing return as empty space is wrong because dark, shiny, glass, or distant surfaces may fail to reflect enough light back.
  • Ignoring the robot's motion during a scan is wrong because a moving robot can distort the scan if measurements from different angles are treated as simultaneous.

Practice Questions

  1. 1 A LiDAR pulse returns after 40 ns. Using c = 3.0 × 10^8 m/s, how far away is the object?
  2. 2 A 2D LiDAR scans 360° with an angular resolution of 0.5°. How many distance measurements are collected in one full scan?
  3. 3 A robot sees a flat wall clearly with LiDAR but has trouble detecting a glass door in the same hallway. Explain why this can happen and how the robot could reduce the risk of collision.