A layered intelligent control system for a mobile robot