Bridging the Gap between Planning and Reactivity: A Layered Architecture for Autonomous Indoor Navigation