Combinatorics of a Discrete Trajectory Space for Robot Motion Planning