| Algorithm 3. Locate Open Area Pseudocode. |
| Find the best heading as the middle laser point of a set of consecutive laser points that fit a safe width for the robot to traverse, and have the biggest distance measurements; |
| if DistanceToBestHeading > SafeDistance then |
| Do a turning action towards the determined best heading; |
| else |
| Do nothing; |
| end |