A robot drives up a ramp. Its obstacle detector worked on the flat factory floor, but on the ramp it reports a wall of obstacles in front of it: the road itself.
You will see why a height threshold cannot handle a slope, estimate the ground plane from the data with RANSAC, and clean up the ground removal.