How robots learn to hike (w/video)