- I want to do this in Python, and preferably SciPy.
- The tangent at the beginning and end of the spline are specified.
Assume I have a sequence of waypoints I want the spline to pass through
np.array([
[-18., -20.],
[-18., 18.],
[-14., 18.],
[-14., -18.],
[-10., -18.],
[-10., 18.],
[ -6., 18.],
[ -6., -18.],
[ -2., -18.],
[ -2., 18.],
[ 2., 18.],
[ 2., -18.],
[ 6., -18.],
[ 6., 18.],
[ 10., 18.],
[ 10., -18.],
[ 14., -18.],
[ 14., 18.],
[ 18., 18.],
[ 18., -20.]
])
I want the tangent at the beginning to pass through [-18, -20]
and [-18, -20]
, and the tangent at the end to pass through [18, 18]
and [18, -20]
.
Finally, I want to constrain the curvature of the spline to not exceed a ceratin value.