These docs are public and open source.Edit on GitHub
THE LIDAR
A Richbeam LakiBeam1 planar laser scanner on top of the car. It connects to the Jetson through the OSCORE board.
THE SCAN LAYOUT
A scan is one flat list of distances. Index 0 points straight ahead, and the rest of the list goes clockwise from there. To read a direction, turn the angle into an index using the helpers below, or call racecar_utils.get_lidar_average_distance.
FIG. A / COORDINATE FRAME
pythonscan = rc.lidar.get_samples() # ~1440 floats on the car print(len(scan)) # use this, never a hardcoded count print(scan[0]) # cm, straight forward print(scan[len(scan) // 4]) # cm, 90° right on any platform # For any other direction, let the helper do the index math: left = racecar_utils.get_lidar_average_distance(scan, 270, window_angle=8) # 90° left front = racecar_utils.get_lidar_average_distance(scan, 0, window_angle=4)

