class PathBuilder
Easy-to-use builder for creating Path instances.
PathBuilder(startPose: Pose2d)
Easy-to-use builder for creating Path instances. |
fun back(distance: Double): PathBuilder
Adds a line straight backward. |
|
fun build(): Path
Constructs the Path instance. |
|
fun forward(distance: Double): PathBuilder
Adds a line straight forward. |
|
fun lineTo(pos: Vector2d, interpolator: HeadingInterpolator = TangentInterpolator()): PathBuilder
Adds a line path segment. |
|
fun reverse(): PathBuilder
Reverse the direction of robot travel. |
|
fun setReversed(reversed: Boolean): PathBuilder
Sets the robot travel direction. |
|
fun splineTo(pose: Pose2d, interpolator: HeadingInterpolator = TangentInterpolator()): PathBuilder
Adds a spline segment. |
|
fun strafeLeft(distance: Double): PathBuilder
Adds a segment that strafes left in the robot reference frame. |
|
fun strafeRight(distance: Double): PathBuilder
Adds a segment that strafes right in the robot reference frame. |
|
fun strafeTo(pos: Vector2d): PathBuilder
Adds a strafe path segment. |