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

SplineInterpolator

class SplineInterpolator : HeadingInterpolator

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

Constructors

<init>

SplineInterpolator(startHeading: Double, endHeading: Double)

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

Inherited Properties

curve

lateinit var curve: ParametricCurve

Base parametric curve

Functions

init

fun init(curve: ParametricCurve): Unit

Initialize the interpolator with a curve.

Inherited Functions

deriv

fun deriv(s: Double, t: Double = curve.reparam(s)): Double

Returns the heading derivative at the specified s.

end

fun end(): Double

Returns the end heading.

endDeriv

fun endDeriv(): Double

Returns the end heading derivative.

endSecondDeriv

fun endSecondDeriv(): Double

Returns the end heading second derivative.

get

operator fun get(s: Double, t: Double = curve.reparam(s)): Double

Returns the heading at the specified s.

secondDeriv

fun secondDeriv(s: Double, t: Double = curve.reparam(s)): Double

Returns the heading second derivative at the specified s.

start

fun start(): Double

Returns the start heading.

startDeriv

fun startDeriv(): Double

Returns the start heading derivative.

startSecondDeriv

fun startSecondDeriv(): Double

Returns the start heading second derivative.