Robot Motion Planning Under Topological Constraints