Sonar

Sonar (Sound Navigation and Ranging) measures range by emitting acoustic pulses and timing the echo. It is the acoustic sibling of LiDAR and RADAR, and it appears in two very different corners of robotics:

The sensing characteristics that make sonar-based estimation hard:

PropertyConsequence for SLAM
Wide beam / low angular resolutionA single return constrains the obstacle to lie somewhere on an arc, not at a point
Specular reflectionSmooth surfaces at oblique angles bounce the pulse away — no return, or multipath ghosts
Slow propagation (approx. 340 m/s in air, approx. 1500 m/s in water)Low measurement rates; range-dependent latency
Imaging sonar projectionElevation angle is lost, an ambiguity analogous to (but different from) a camera’s lost depth

The measurement model, quantitatively

Range comes from time-of-flight: r=ct/2r = c\,t/2 for echo delay tt and sound speed cc. Two consequences follow directly. First, cc is not a constant — in water it varies with temperature, salinity, and depth by several percent, so serious systems carry a sound-velocity profile; ignoring it biases every range. Second, propagation is slow: at 30 m range underwater the echo takes 40 ms, so a scanning sonar sweeping hundreds of beams produces a full “image” over seconds, during which the vehicle moves — sonar SLAM has a motion-distortion problem like a spinning LiDAR’s, but two orders of magnitude worse.

For a forward-looking imaging sonar, a 3D point at spherical coordinates (r,θ,ϕ)(r, \theta, \phi) (range, bearing, elevation) is imaged at

z=(r,θ),\mathbf{z} = (r, \theta),

i.e. the elevation angle ϕ\phi is integrated out — every point on an elevation arc of radius rr at bearing θ\theta lands on the same image pixel. Compare a camera, which measures (θ,ϕ)(\theta, \phi) (two angles) and loses range: sonar and camera lose complementary dimensions, which is why opti-acoustic fusion (camera + sonar) is such a natural pairing underwater and why two sonar views from different poses can triangulate what one cannot.

For wide-beam ultrasonic rangers, the classical inverse sensor model for occupancy grids captures the arc ambiguity honestly: a return at range rr raises occupancy probability along the arc at rr inside the beam cone, lowers it in the cone interior closer than rr, and says nothing beyond — integrating many such soft updates from different poses is what turns ambiguous single readings into a usable map, and it is the founding example of probabilistic robot mapping.

Because of these ambiguities, sonar SLAM leans heavily on probabilistic modelling: wide-beam measurement models in occupancy grids, robust outlier handling for multipath, and acoustic feature extraction from sonar images for data association. Fusion with proprioceptive sensing (DVL — Doppler velocity log, IMU, depth/pressure sensors) is standard practice underwater.

Common pitfalls

Why it matters for SLAM

Underwater is one of the last domains where visual SLAM fundamentally cannot operate alone, and sonar is what fills the gap — subsea inspection, marine archaeology, and AUV navigation all run on acoustic SLAM. Historically, sonar is also where SLAM began: the field’s foundational probabilistic mapping ideas were developed on sonar-equipped robots, and the wide-beam measurement models built for them still inform how we treat highly ambiguous sensors today.