Package com.acmerobotics.roadrunner
Class PositionPathSeqBuilder
-
- All Implemented Interfaces:
public final class PositionPathSeqBuilder
-
-
Constructor Summary
Constructors Constructor Description PositionPathSeqBuilder(Vector2d beginPos, Rotation2d beginTangent, Double eps)
PositionPathSeqBuilder(Vector2d beginPos, Double beginTangent, Double eps)
-
Method Summary
Modifier and Type Method Description final PositionPathSeqBuilder
endPath()
final PositionPathSeqBuilder
setTangent(Rotation2d newTangent)
final PositionPathSeqBuilder
setTangent(Double newTangent)
final PositionPathSeqBuilder
lineToX(Double posX)
final PositionPathSeqBuilder
lineToY(Double posY)
final PositionPathSeqBuilder
strafeTo(Vector2d pos)
Sets the tangent to point toward pos, and adds a line segment in that direction. final PositionPathSeqBuilder
splineTo(Vector2d pos, Rotation2d tangent)
Adds a spline segment to position pos with tangent tangent. final PositionPathSeqBuilder
splineTo(Vector2d pos, Double tangent)
Adds a spline segment to position pos with tangent tangent. final List<CompositePositionPath<Arclength>>
build()
-
-
Method Detail
-
endPath
final PositionPathSeqBuilder endPath()
-
setTangent
final PositionPathSeqBuilder setTangent(Rotation2d newTangent)
-
setTangent
final PositionPathSeqBuilder setTangent(Double newTangent)
-
lineToX
final PositionPathSeqBuilder lineToX(Double posX)
-
lineToY
final PositionPathSeqBuilder lineToY(Double posY)
-
strafeTo
final PositionPathSeqBuilder strafeTo(Vector2d pos)
Sets the tangent to point toward pos, and adds a line segment in that direction.
-
splineTo
final PositionPathSeqBuilder splineTo(Vector2d pos, Rotation2d tangent)
-
splineTo
final PositionPathSeqBuilder splineTo(Vector2d pos, Double tangent)
-
build
final List<CompositePositionPath<Arclength>> build()
-
-
-
-