core / com.acmerobotics.roadrunner.util / GuidingVectorField / GVFResult

GVFResult

data class GVFResult (source)

Container for the direction of the GVF and intermediate values used in its computation.

Parameters

vector - normalized direction vector of the GVF

pathPoint - point on the path from the projection

displacement - displacement along the path of pathPoint

error - signed cross track error (distance between pathPoint and the query point)

Constructors

<init>

Container for the direction of the GVF and intermediate values used in its computation.

GVFResult(vector: Vector2d, pathPoint: Vector2d, displacement: Double, error: Double)

Properties

displacement

displacement along the path of pathPoint

val displacement: Double

error

signed cross track error (distance between pathPoint and the query point)

val error: Double

pathPoint

point on the path from the projection

val pathPoint: Vector2d

vector

normalized direction vector of the GVF

val vector: Vector2d