class Path
Path composed of a parametric curve and a heading interpolator.
parametricCurve
- parametric curve
interpolator
- heading interpolator
reversed
- whether or not to travel along the path in reverse
class ProjectionResult |
Path(parametricCurve: ParametricCurve, interpolator: HeadingInterpolator = TangentInterpolator(), reversed: Boolean = false) Path(parametricCurves: List<ParametricCurve>, interpolators: List<HeadingInterpolator> = parametricCurves.map { TangentInterpolator() }, reversed: List<Boolean> = parametricCurves.map { false })
Path composed of a parametric curve and a heading interpolator. |
val interpolators: List<HeadingInterpolator> |
|
val parametricCurves: List<ParametricCurve> |
|
val reversed: List<Boolean>
whether or not to travel along the path in reverse |
fun deriv(displacement: Double): Pose2d
Returns the pose derivative displacement 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(displacement: Double): Pose2d
Returns the pose displacement units along the path. |
|
fun length(): Double
Returns the length of the path. |
|
fun project(point: Vector2d, projectGuess: Double = length() / 2.0): ProjectionResult
Project point onto the current path. |
|
fun secondDeriv(displacement: Double): Pose2d
Returns the pose second derivative displacement 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. |