public class PathSegment
Path segment composed of a parametric curve and heading interpolator.
@JvmOverloads
public PathSegment(@NotNull
ParametricCurve curve,
@NotNull
HeadingInterpolator interpolator)
Path segment composed of a parametric curve and heading interpolator.
curve - parametric curveinterpolator - heading interpolator@JvmOverloads
public PathSegment(@NotNull
ParametricCurve curve)
Path segment composed of a parametric curve and heading interpolator.
curve - parametric curvepublic double length()
@JvmOverloads @NotNull public Pose2d get(double s, double t)
@JvmOverloads @NotNull public Pose2d get(double s)
@JvmOverloads @NotNull public Pose2d deriv(double s, double t)
@JvmOverloads @NotNull public Pose2d deriv(double s)
@JvmOverloads @NotNull public Pose2d secondDeriv(double s, double t)
@JvmOverloads @NotNull public Pose2d secondDeriv(double s)
@JvmOverloads
public double tangentAngle(double s,
double t)
@JvmOverloads public double tangentAngle(double s)
public double reparam(double s)
@NotNull public Pose2d start()
Returns the start pose.
@NotNull public Pose2d startDeriv()
Returns the start pose derivative.
@NotNull public Pose2d startSecondDeriv()
Returns the start pose second derivative.
public double startTangentAngle()
Returns the start tangent angle.
@NotNull public Pose2d end()
Returns the end pose.
@NotNull public Pose2d endDeriv()
Returns the end pose derivative.
@NotNull public Pose2d endSecondDeriv()
Returns the end pose second derivative.
public double endTangentAngle()
Returns the end tangent angle.
@NotNull public ParametricCurve getCurve()
parametric curve
@NotNull public HeadingInterpolator getInterpolator()
heading interpolator