On-line map building and navigation for autonomous mobile robots