Visual Foothold Adaptations Using Machine Learning