withTolerances

open fun withTolerances(vectorDistance: Measure<Distance>, headingDiff: Measure<Angle>): PurePursuit

Set the tolerances that this Pure Pursuit controller will use to determine when to stop following a path.

Return

this

Parameters

vectorDistance

the distance tolerance for the path position

headingDiff

the heading tolerance for the path heading