Hierarchy of behaviours Application to the homing problem in indoor environment