Synthesis of a spatial lookahead path tracking controller