class Path
Path composed of a list of parametric curves and heading interpolators.
parametricCurves
- parametric curves
interpolators
- heading interpolators
reversed
- whether or not to travel along the path segment in reverse
data class ProjectionResult
Simple container for the result of a projection (i.e., a project call). |
Path(parametricCurve: ParametricCurve, interpolator: HeadingInterpolator = TangentInterpolator(), reversed: Boolean = false) Path(parametricCurves: List<ParametricCurve> = emptyList(), interpolators: List<HeadingInterpolator> = parametricCurves.map { TangentInterpolator() }, reversed: List<Boolean> = parametricCurves.map { false })
Path composed of a list of parametric curves and heading interpolators. |
val interpolators: List<HeadingInterpolator>
heading interpolators |
|
val parametricCurves: List<ParametricCurve>
parametric curves |
|
val reversed: List<Boolean>
whether or not to travel along the path segment in reverse |
fun deriv(s: Double, t: Double = reparam(s)): Pose2d
Returns the pose derivative s units along the path. |
|
fun end(): Pose2d
Returns the end pose. |
|
fun endDeriv(): Pose2d
Returns the end pose derivative. |
|
fun endSecondDeriv(): Pose2d
Returns the end pose second derivative. |
|
operator fun get(s: Double, t: Double = reparam(s)): Pose2d
Returns the pose s units along the path. |
|
fun length(): Double
Returns the length of the path. |
|
fun project(point: Vector2d, projectGuess: Double = length() / 2.0): Path.ProjectionResult
Project point onto the current path. |
|
fun secondDeriv(s: Double, t: Double = reparam(s)): Pose2d
Returns the pose second derivative s units along the path. |
|
fun start(): Pose2d
Returns the start pose. |
|
fun startDeriv(): Pose2d
Returns the start pose derivative. |
|
fun startSecondDeriv(): Pose2d
Returns the start pose second derivative. |