PositionPathBuilder

public final class PositionPathBuilder

Easy-to-use builder for creating PositionPath instances. Note that this builder does not respect tangent continuity.

Parameters

startPos

start position

startDeriv

start derivative

startSecondDeriv

start second derivative

See also

Constructors

Link copied to clipboard
public PositionPathBuilder PositionPathBuilder(Vector2d startPos, Angle startTangent)
public PositionPathBuilder PositionPathBuilder(Vector2d startPos, Vector2d startDeriv, Vector2d startSecondDeriv)

Functions

Link copied to clipboard
public final PositionPathBuilder back(Double distance)

Adds a line straight backward.

Link copied to clipboard
public final PositionPath build()

Constructs the PositionPath instance.

Link copied to clipboard
public final PositionPathBuilder forward(Double distance)

Adds a line straight forward.

Link copied to clipboard
public final PositionPathBuilder left(Double distance)

Adds a segment that travels left in the robot reference frame.

Link copied to clipboard
public final PositionPathBuilder lineTo(Vector2d endPosition)

Adds a line segment with tangent heading interpolation.

Link copied to clipboard
public final PositionPath preBuild()

Constructs the Path instance without reparameterizing the curves.

Link copied to clipboard
public final PositionPathBuilder right(Double distance)

Adds a segment that travels right in the robot reference frame.

Link copied to clipboard
public final PositionPathBuilder splineTo(Vector2d endPosition, Angle endTangent)
public final PositionPathBuilder splineTo(Vector2d endPosition, Angle endTangent, Double startTangentMag)
public final PositionPathBuilder splineTo(Vector2d endPosition, Angle endTangent, Double startTangentMag, Double endTangentMag)

Adds a spline segment.

Link copied to clipboard
public final PositionPathBuilder turn(Angle angle, Double radius)

Adds a CircularArc segment that turns angle.

Link copied to clipboard
public final PositionPathBuilder turnLeft(Angle angle, Double radius)
Link copied to clipboard
public final PositionPathBuilder turnRight(Angle angle, Double radius)