Linear Algebra · Least Squares and Numerical Methods · M5-L1 · Intermediate
LiDAR Plane Fitting
Robot scenario
Scout now carries a LiDAR. Before it can avoid a wall or drive up a ramp it must answer a plain question about every patch of points it sees: what plane are these on?
You will place a line by hand and feel what least squares minimises, find out why the same recipe sends a wall to nonsense, and then write the two routines a real perception pipeline contains: a ground-plane fit and a fit that works for any orientation.
Your task
Lab complete: post-mortem
You have passed every stage. Now connect it back to the theory and move on:
Output
What Python can I use?
Plain Python with math and lakit (import lakit as la: vectors, matmul, solve, qr, svd, eigh, lstsq, pinv and more; NumPy is not available in the browser). Your code runs in a background worker: an endless loop is stopped after a few seconds and the page stays usable. It runs in your browser and is never sent anywhere.