A Hazard Detection And Avoidance System For Autonomous Planetary Landing