Inversion of a distributed system for open-loop trajectory following