public class PathSegment
Path segment composed of a parametric curve and heading interpolator.
Constructor and Description |
---|
PathSegment(ParametricCurve curve,
HeadingInterpolator interpolator,
boolean reversed)
Path segment composed of a parametric curve and heading interpolator.
|
PathSegment(ParametricCurve curve,
HeadingInterpolator interpolator)
Path segment composed of a parametric curve and heading interpolator.
|
PathSegment(ParametricCurve curve)
Path segment composed of a parametric curve and heading interpolator.
|
Modifier and Type | Method and Description |
---|---|
Pose2d |
deriv(double s,
double t) |
Pose2d |
deriv(double s) |
Pose2d |
end()
Returns the end pose.
|
Pose2d |
endDeriv()
Returns the end pose derivative.
|
Pose2d |
endSecondDeriv()
Returns the end pose second derivative.
|
Pose2d |
get(double s,
double t) |
Pose2d |
get(double s) |
ParametricCurve |
getCurve()
parametric curve
|
HeadingInterpolator |
getInterpolator()
heading interpolator
|
boolean |
getReversed()
if true,
|
double |
length() |
double |
reparam(double s) |
Pose2d |
secondDeriv(double s,
double t) |
Pose2d |
secondDeriv(double s) |
Pose2d |
start()
Returns the start pose.
|
Pose2d |
startDeriv()
Returns the start pose derivative.
|
Pose2d |
startSecondDeriv()
Returns the start pose second derivative.
|
@JvmOverloads public PathSegment(@NotNull ParametricCurve curve, @NotNull HeadingInterpolator interpolator, boolean reversed)
Path segment composed of a parametric curve and heading interpolator.
curve
- parametric curveinterpolator
- heading interpolatorreversed
- if true, the segment is interpolated in reverse@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)
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.
@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.
@NotNull public ParametricCurve getCurve()
parametric curve
@NotNull public HeadingInterpolator getInterpolator()
heading interpolator
public boolean getReversed()
if true,
the segment is interpolated in reverse