Autonomous Navigation of a Rover for Planetary Exploration