A Qualitative Approach to Localization and Navigation Based on Visibility Information