Global robot path planning using exact variational methods