An interactive approach to SLAM