core / com.acmerobotics.roadrunner.path / QuinticSpline

QuinticSpline

class QuinticSpline : ParametricCurve (source)

Combination of two quintic polynomials into a 2D quintic spline. See this short paper for some motivation and implementation details.

Parameters

start - start waypoint

end - end waypoint

maxDeltaK - maximum change in curvature between arc length param segments

maxSegmentLength - maximum length of a single param segment

maxDepth - maximum stack depth

Types

Knot

Class for representing the end points of interpolated quintic splines.

class Knot

Constructors

<init>

Combination of two quintic polynomials into a 2D quintic spline. See this short paper for some motivation and implementation details.

QuinticSpline(start: Knot, end: Knot, maxDeltaK: Double = 0.01, maxSegmentLength: Double = 0.25, maxDepth: Int = 30)

Properties

x

X polynomial (i.e., x(t))

val x: QuinticPolynomial

y

Y polynomial (i.e., y(t))

val y: QuinticPolynomial

Functions

length

Returns the length of the curve.

fun length(): Double

toString

fun toString(): String