Skip to main content
. 2012 Sep 18;12(9):12772–12797. doi: 10.3390/s120912772
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