SLAM front-end and back-end
SLAM stands for simultaneous localization and mapping — a robot figuring out where it is while also drawing the map of where it is. That job is so big that engineers split it into two halves with a clear division of labour: the front-end and the back-end. The front-end is the part that touches the raw senses. It takes the flood of incoming data — camera frames, laser scans, wheel ticks — and turns it into tidy, meaningful statements like "between this moment and the last, I moved forward about half a metre and turned slightly left," or "I am looking at the same corner I saw five minutes ago." Each such statement is a constraint: a clue about how two positions, or a position and a landmark, relate.
The back-end never looks at a single photo or laser beam. It only sees that pile of constraints from the front-end, and its job is to find the one arrangement of the robot's path and the map that best fits all those clues at once. This matters because the clues quietly disagree: every sensor is a little noisy, errors build up over time, and "I drove forward half a metre" twenty times in a row will never perfectly line up with "I'm back where I started." The back-end is the careful negotiator that nudges every position and landmark a little until the whole story is as consistent as it can be — a big optimization that quietly bends the map back into shape.
The reason for the split is practical: the two halves need completely different skills. The front-end is about perception — recognizing places and matching shapes — and is specific to the sensor you bolted on, so a camera SLAM and a laser SLAM have very different front-ends. The back-end is about mathematics — solving a large system of slightly conflicting equations — and barely cares where the constraints came from. Keeping them apart lets each be designed, swapped, and improved on its own.
A delivery robot's front-end notices it is back at the building's front door it left an hour ago and reports that as a loop-closure constraint; the back-end then re-balances the entire hour-long path so the start and end finally meet, straightening the whole map.
Front-end spots the revisited door; back-end re-stitches the whole loop.
A handy slogan: the front-end builds the constraints from sensors, the back-end optimizes them into a consistent map and path.