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

ConstantInterpolator

class ConstantInterpolator : HeadingInterpolator

Constant heading interpolator used for arbitrary holonomic translations.

Parameters

heading - heading to maintain

Constructors

<init>

ConstantInterpolator(heading: Double)

Constant heading interpolator used for arbitrary holonomic translations.

Properties

heading

val heading: Double

heading to maintain

Inherited Properties

parametricCurve

lateinit var parametricCurve: ParametricCurve

Base parametric curve

Functions

internalDeriv

fun internalDeriv(s: Double, t: Double): Double

internalGet

fun internalGet(s: Double, t: Double): Double

internalSecondDeriv

fun internalSecondDeriv(s: Double, t: Double): Double

respectsDerivativeContinuity

fun respectsDerivativeContinuity(): Boolean

Returns true if the heading interpolator respects derivative continuity at path segment endpoints. That is, the start and end heading derivatives match those of the TangentInterpolator.

Inherited Functions

deriv

fun deriv(s: Double, t: Double = parametricCurve.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 = parametricCurve.reparam(s)): Double

Returns the heading at the specified s.

init

open fun init(parametricCurve: ParametricCurve): Unit

Initialize the interpolator with a parametricCurve.

secondDeriv

fun secondDeriv(s: Double, t: Double = parametricCurve.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.