core / com.acmerobotics.roadrunner.path / Path

Path

class Path

Path composed of a list of parametric curves and heading interpolators.

Parameters

segments - list of path segments

Constructors

<init>

Path(segment: PathSegment)Path(segments: List<PathSegment>)

Path composed of a list of parametric curves and heading interpolators.

Properties

segments

val segments: List<PathSegment>

list of path segments

Functions

deriv

fun deriv(s: Double, t: Double = reparam(s)): Pose2d

Returns the pose derivative s units along the path.

end

fun end(): Pose2d

Returns the end pose.

endDeriv

fun endDeriv(): Pose2d

Returns the end pose derivative.

endSecondDeriv

fun endSecondDeriv(): Pose2d

Returns the end pose second derivative.

get

operator fun get(s: Double, t: Double = reparam(s)): Pose2d

Returns the pose s units along the path.

length

fun length(): Double

Returns the length of the path.

project

fun project(queryPoint: Vector2d, projectGuess: Double = length() / 2.0): Double

Project queryPoint onto the current path using the iterative method described here.

secondDeriv

fun secondDeriv(s: Double, t: Double = reparam(s)): Pose2d

Returns the pose second derivative s units along the path.

start

fun start(): Pose2d

Returns the start pose.

startDeriv

fun startDeriv(): Pose2d

Returns the start pose derivative.

startSecondDeriv

fun startSecondDeriv(): Pose2d

Returns the start pose second derivative.