Detector for sonar-based grid-maps