Using an ultrasonic sonar ranger to avoid walls – and people’s feet – before hitting them:
At first I was getting plenty of false readings, so here’s the first run, pausing and verifying before turning:
With faster code, and not stopping:
Improved accuracy, so it detects smaller objects like feet: