class LinearInterpolator : HeadingInterpolator
Linear heading interpolator for time-optimal transitions between poses.
angle
- angle to sweep through (can be greater than a revolution)
LinearInterpolator(startHeading: Double, angle: Double)
Linear heading interpolator for time-optimal transitions between poses. |
lateinit var curve: ParametricCurve
Base parametric curve |
fun deriv(s: Double, t: Double = curve.reparam(s)): Double
Returns the heading derivative at the specified s. |
|
fun end(): Double
Returns the end heading. |
|
fun endDeriv(): Double
Returns the end heading derivative. |
|
fun endSecondDeriv(): Double
Returns the end heading second derivative. |
|
operator fun get(s: Double, t: Double = curve.reparam(s)): Double
Returns the heading at the specified s. |
|
open fun init(curve: ParametricCurve): Unit
Initialize the interpolator with a curve. |
|
fun secondDeriv(s: Double, t: Double = curve.reparam(s)): Double
Returns the heading second derivative at the specified s. |
|
fun start(): Double
Returns the start heading. |
|
fun startDeriv(): Double
Returns the start heading derivative. |
|
fun startSecondDeriv(): Double
Returns the start heading second derivative. |