Simulate a lidar: range to a wall, and 3D distance
mediumsubjectivecoding
Asked in interviews
Describe how you would simulate a lidar. Given a flat wall at some distance in front of the sensor, how do you compute the range each beam returns? Generalize to a full 3D scene: how do you find the distance a beam travels before it hits a surface?
Voice input needs Chrome or Edge. On this browser, type your answer — grading is the same.