LOS Guidance

Line-of-sight (LOS) guidance on a waypoint path, with two ways of choosing the reference point on the path: the orthogonal projection of the vessel, and a propagated path particle. Drag the square handles to reshape the path while the vessels are moving, or drag a vessel to move it.
▶ Video: Line-of-Sight (LOS) Guidance Explained: Path Following for USVs, AUVs and Drones · playlist Guidance and Control
t = 0.0 s
LOS, projected reference
LOS, propagated particle
| reference point on the path · → velocity v · ⇢ command vd · ▲ travel direction

Task

Path

Guidance

Vessel

Simulation

vd = U ηd, ηd = (Δ t − e)/√(Δ²+|e|²)
e = cross-track error to the reference point
projection: sr = argmin |p − pr(s)|
particle: ṡr = t·ṗ + Δs tanh(ksse/Δs)
t = travel direction × path tangent

Cross-track error |e| [m] (last 120 s)

Speed |v| [m/s], dashed U

law|e| mse m|vd| m/s|v| m/ssr mU m/s
LOS, projected reference
LOS, propagated particle

How it works

The plots show the cross-track error and the speed over the last 120 s; the table shows the live state of both vessels. Drag a square handle to move a waypoint, drag a vessel to move it; Space pauses. On a touch screen, touch a handle or a vessel to drag it, anywhere else to scroll.