core / com.acmerobotics.roadrunner.util / GuidingVectorField / <init>

<init>

GuidingVectorField(path: Path, kN: Double, errorMapFunc: (Double) -> Double = { it })

Guiding vector field for effective path following described in section III, eq. (9) of 1610.04391.pdf. Implementation note: 2D parametric curves are used to describe paths instead of implicit curves of the form f(x,y) = 0 as described in the paper (which dramatically affects the cross track error calculation).

Parameters

path - path to follow (interpolator is ignored)

kN - path normal weight (see eq. (9))

errorMapFunc - custom error mapping (see eq. (4))