Qualitative Spatial Representations from Task-Oriented Perception and Exploratory Behaviors