core / com.acmerobotics.roadrunner.path.heading / SplineInterpolator

SplineInterpolator

class SplineInterpolator : HeadingInterpolator (source)

Spline heading interpolator for transitioning smoothly between headings without violating continuity (and hence allowing for integration into longer profiles).

Parameters

startHeading - start heading

endHeading - end heading

startHeadingDeriv - start heading deriv (advanced)

startHeadingSecondDeriv - start heading second deriv (advanced)

endHeadingDeriv - start heading deriv (advanced)

endHeadingSecondDeriv - start heading second deriv (advanced)

Constructors

<init>

Spline heading interpolator for transitioning smoothly between headings without violating continuity (and hence allowing for integration into longer profiles).

SplineInterpolator(startHeading: Double, endHeading: Double, startHeadingDeriv: Double? = null, startHeadingSecondDeriv: Double? = null, endHeadingDeriv: Double? = null, endHeadingSecondDeriv: Double? = null)

Functions

init

Initialize the interpolator with a curve.

fun init(curve: ParametricCurve): Unit