Our experimental results indicate that the proposed framework could successfully classify and segment the wall / floor surface and also detect the obstacle on wall and floor with high detection accuracy and demonstrates a robust behavior of wall following .