LiDAR Technology: Painting the World with Light
How LiDAR Works
LiDAR (Light Detection and Ranging) is like sonar but uses laser light instead of sound. It sends out rapid laser pulses and measures how long each pulse takes to bounce back. With the speed of light known, distance = (speed × time) / 2.
Think of it like throwing a ball at a wall and timing the bounce-back — except LiDAR does this millions of times per second with light.
Work the numbers once and the precision becomes obvious. Light travels about 0.3 m per nanosecond, so a round trip of 600 ns corresponds to a 90 m target. Resolving that to ±1 cm requires timing the return to about 67 picoseconds, which is why drone LiDARs use either direct detection with fast avalanche photodiodes or coherent FMCW receivers rather than naive digital counters.
Two limits fall straight out of the physics. First, maximum unambiguous range: if the sensor fires the next pulse before the previous return arrives, a far return gets misattributed to the wrong pulse. A 200 kHz pulse rate allows at most c / (2 × 200,000) = 750 m of clear air — plenty for drones — but doubling the rate halves that budget. Second, eye safety: the class-1M limit caps average power, so longer range must be bought with beam collimation and photon-counting receivers, not simply more laser power.
ToF vs FMCW LiDAR
There are two main LiDAR technologies:
Time-of-Flight (ToF): Measures the round-trip time of a single laser pulse. Simple, reliable, used in most drone LiDARs (Velodyne, Livox, DJI L1).
Frequency-Modulated Continuous Wave (FMCW): Uses a continuously modulated laser. It can measure velocity simultaneously with distance — like how a police radar detects speed, not just distance.
The FMCW advantage compounds in clutter. A chirp reflected from a moving branch comes back with a Doppler-shifted beat frequency, so one measurement separates range from radial velocity in a single shot. That per-point velocity channel makes motion compensation during mapping almost free: instead of guessing how the platform moved between scans, the LiDAR already tells you what the world is doing. The cost is hardware complexity — FMCW needs narrow-linewidth lasers and coherent receivers, which historically kept prices in the tens of thousands of dollars, though integrated silicon-photonics designs are closing that gap for survey payloads.
LiDAR Scanning Patterns
Different LiDARs scan the environment in different ways. The choice affects coverage, resolution, and suited applications.
Mechanical spinning units deliver a true 360° horizontal field of view and uniform point spacing, but the bearings wear: a 10 Hz spinner accumulates 36,000 revolutions in an hour, and drone vibration shortens rated lifetimes to roughly 1,000 to 3,000 flight hours. MEMS mirrors swap the spinning mass for a tiny oscillating mirror, cutting weight below 100 g and power under 8 W, at the price of a raster pattern with non-uniform density — the scan lines bunch at the turnarounds. Flash LiDAR illuminates the entire scene at once with an array receiver, producing a full frame in microseconds with no moving parts, but each frame's energy budget limits range to about 30 to 60 m on consumer hardware. Optical phased arrays steer beams electronically with no inertia at all; they remain mostly laboratory-grade for drones, promising solid-state reliability once fabrication yields improve.
Point Cloud Data
A LiDAR produces a point cloud — a collection of 3D points (x, y, z) with optional intensity values. Each point represents one laser return.
Raw clouds are large. A survey-grade unit emitting 300,000 points per second with 32 bytes per point (x, y, z, intensity, ring, timestamp) streams about 9.6 MB/s — a 20-minute flight yields roughly 11 GB before any processing. That budget drives every downstream choice: store everything and you need industrial microSD cards plus a workflow to decimate; thin on the fly and you can never recover the detail you threw away.
Intensity deserves special attention because it is not brightness in the photographic sense. It is the fraction of laser energy returned, which depends on surface reflectivity at 905 nm or 1550 nm, incidence angle, and range. Dark asphalt returns far less energy than white paint at the same distance, so threshold-based segmentation on intensity alone fails whenever materials change. Most classification pipelines therefore combine intensity with geometric features — planarity, linearity, and height above the fitted ground plane.
# Simulated LiDAR point cloud (N points)
n_points = 10000
points = np.random.randn(n_points, 3) * 20 # x, y, z in meters
# Each point: [x, y, z, intensity]
intensities = np.random.uniform(0.1, 1.0, (n_points, 1))
point_cloud = np.hstack([points, intensities])
print(f"Point cloud shape: {point_cloud.shape}") # (10000, 4)
print(f"X range: {points[:,0].min():.1f} to {points[:,0].max():.1f} m")
print(f"Y range: {points[:,1].min():.1f} to {points[:,1].max():.1f} m")
print(f"Z range: {points[:,2].min():.1f} to {points[:,2].max():.1f} m")
Point Cloud Visualization Pipeline
Every mapping stack runs the same five-stage pipeline, and each stage has a failure mode worth knowing.
Raw captures arrive as LAS or PCD files, one per flight line, with GPS timestamps baked into every point. Filtering removes statistical outliers — single returns 30 cm away from all neighbors, usually caused by multipath off glass facades — with a k-nearest-neighbor test that discards points whose mean neighbor distance exceeds roughly three standard deviations. Segmentation classifies what remains into ground, vegetation, structure, and wire classes, typically with a gradient-boosted decision tree over geometric features rather than a deep network, because geometry alone reaches above 95 % accuracy on survey data. Registration aligns overlapping strips by minimizing point-to-plane distance on shared surfaces; 1 to 2 cm residuals are the quality bar for engineering deliverables. Meshing converts the aligned cloud into a continuous surface through Poisson or ball-pivoting reconstruction, which is what downstream CAD and visualization tools actually consume.
LiDAR Specifications for Drones
| Spec | Hobby Grade | Survey Grade | Top-end |
|---|---|---|---|
| Range | 10-30m | 100-300m | 300m+ |
| Points/sec | 10K-100K | 100K-1M | 1M+ |
| Accuracy | ±3-5cm | ±1-2cm | ±1cm |
| Weight | 50-200g | 500g-2kg | 2kg+ |
| Examples | RPLidar A1 | DJI L1 | Velodyne VLP-16 |
Choosing a Drone LiDAR
Three constraints decide the purchase: payload budget, required point density at target range, and whether you need intensity or color.
Start from the density requirement. Corridor inspection of power lines needs roughly 200 points per square meter at 15 m; at 300,000 points per second a single pass can cover about 1,500 m² — 15 m of flight at 10 m swath width. If the platform can only fly 5 m/s, one pass is feasible; at 12 m/s you need overlapping strips or a faster sensor. Then check the weight budget: a 750 g airframe with 1.2 kg of useful payload can carry a MEMS unit like the Livox Mid-360, while a 4 kg Matrice-class platform can afford a spinning survey head plus a camera for colorization.
Finally, match the wavelength to the environment. 905 nm units are cheaper but struggle in heavy rain and return less energy from dark surfaces; 1550 nm units sit at a safer eye-power ceiling and cut through haze better, which matters for long-range infrastructure work.
Hands-On Project: LiDAR Point Cloud Viewer
Create a simple point cloud visualizer and ground-plane detector:
from scipy.spatial import KDTree
class SimpleGroundDetector:
"""Simple RANSAC-based ground plane detection."""
def __init__(self, distance_threshold=0.3, iterations=100):
self.threshold = distance_threshold
self.iterations = iterations
def detect_ground(self, points):
best_inliers = []
best_plane = None
for _ in range(self.iterations):
# Random 3 points
idx = np.random.choice(len(points), 3, replace=False)
p1, p2, p3 = points[idx]
# Plane equation: ax + by + cz + d = 0
v1 = p2 - p1
v2 = p3 - p1
normal = np.cross(v1, v2)
norm = np.linalg.norm(normal)
if norm < 1e-6:
continue
normal /= norm
d = -np.dot(normal, p1)
# Count inliers
distances = np.abs(points @ normal + d)
inliers = np.where(distances < self.threshold)[0]
if len(inliers) > len(best_inliers):
best_inliers = inliers
best_plane = (normal, d)
return best_inliers, best_plane
def remove_ground(self, points):
inliers, plane = self.detect_ground(points)
mask = np.ones(len(points), dtype=bool)
mask[inliers] = False
return points[mask], points[inliers]
# Demo usage
np.random.seed(42)
# Simulate: ground plane + objects
ground = np.column_stack([
np.random.uniform(-20, 20, 5000),
np.random.uniform(-20, 20, 5000),
np.random.normal(0, 0.05, 5000) # flat ground with noise
])
objects = np.random.randn(500, 3) * 2 + np.array([5, 5, 2])
point_cloud = np.vstack([ground, objects])
detector = SimpleGroundDetector()
objects_only, ground_pts = detector.remove_ground(point_cloud)
print(f"Total points: {len(point_cloud)}")
print(f"Ground points: {len(ground_pts)}")
print(f"Object points: {len(objects_only)}")
Key Takeaways
Key Takeaways
- ToF LiDAR times single pulses; FMCW chirps add per-point radial velocity in the same measurement
- Mechanical, MEMS, Flash, and OPA patterns trade field of view, weight, and durability against each other
- A 300k points/s survey unit streams nearly 10 MB/s — plan storage and on-board thinning before the first flight
- Intensity is reflectivity at laser wavelength, not brightness, so material changes break naive thresholds
Common Mistakes
Sizing range without checking the pulse-repetition budget for unambiguous returns
Fix: Compute c / (2 × pulse rate) and confirm it exceeds your maximum operating range with margin
Buying a 2 kg spinning survey head for a 750 g airframe
Fix: Reserve at least 30 % thrust margin after the full payload — sensor, mount, and compute — is installed
Segmenting ground from objects on raw intensity alone
Fix: Combine intensity with height above a fitted ground plane and local planarity features
Best Practices
- Fly overlap of 30–40 % between strips so registration has enough shared geometry
- Log per-point timestamps; motion compensation during mapping is impossible without them
- Collect one calibration flight over a flat known surface after every firmware change