core / com.acmerobotics.roadrunner.followers / PathFollower

PathFollower

abstract class PathFollower

Generic Path follower for time-independent pose reference tracking.

Parameters

clock - clock

Constructors

<init>

PathFollower(clock: NanoClock = NanoClock.system())

Generic Path follower for time-independent pose reference tracking.

Properties

clock

val clock: NanoClock

clock

lastError

abstract var lastError: Pose2d

Robot pose error computed in the last update call.

path

var path: Path

Functions

followPath

open fun followPath(path: Path): Unit

Follow the given path.

isFollowing

abstract fun isFollowing(): Boolean

Returns true if the current path has finished executing.

update

abstract fun update(currentPose: Pose2d): Unit

Run a single iteration of the path follower.

Inheritors

GVFFollower

class GVFFollower : PathFollower

State-of-the-art path follower based on the GuidingVectorField.