public static class GuidingVectorField.GVFResult
Container for the direction of the GVF and intermediate values used in its computation.
public GVFResult(@NotNull Vector2d vector, @NotNull Vector2d pathPoint, double displacement, double error)
Container for the direction of the GVF and intermediate values used in its computation.
vector
- normalized direction vector of the GVFpathPoint
- point on the path from the projectiondisplacement
- displacement along the path of pathPointerror
- signed cross track error (distance between pathPoint and the query point)@NotNull public Vector2d getVector()
normalized direction vector of the GVF
@NotNull public Vector2d getPathPoint()
point on the path from the projection
public double getDisplacement()
displacement along the path of
pathPoint
public double getError()
signed cross track error
(distance between pathPoint and the query point)
@NotNull public Vector2d component1()
normalized direction vector of the GVF
@NotNull public Vector2d component2()
point on the path from the projection
public double component3()
displacement along the path of
pathPoint
public double component4()
signed cross track error
(distance between pathPoint and the query point)
@NotNull public com.acmerobotics.roadrunner.util.GuidingVectorField.GVFResult copy(@NotNull Vector2d vector, @NotNull Vector2d pathPoint, double displacement, double error)
Container for the direction of the GVF and intermediate values used in its computation.
vector
- normalized direction vector of the GVFpathPoint
- point on the path from the projectiondisplacement
- displacement along the path of pathPointerror
- signed cross track error (distance between pathPoint and the query point)@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)