Title: A calculus of variations method for planning paths around obstacles in Euclidean space