Researchers use machine learning to teach robots how to trek through unknown terrains