Variational Hilbert regression for terrain modeling and trajectory optimization. (October 2019)