Vision-based autonomous navigation in medium level representation