Pure Pursuit
A parametric displacement-based implementation of a Pure Pursuit controller designed for holonomic drivetrains.
This system uses a series of suppliers and consumers to define odometry and drive power setting via RoadRunner geometry utilities such as Pose2d along a Path. The actual lookahead, despite being usually rooted in a line-circle intersection, is performed by pose projection based on looking ahead on the path by displacement. By using displacement, the lookahead point naturally reduces for complex bends, and centers the process of calculating the lookahead as a simple vector projection.
A RoadRunner drive instance is not required to use this class, but since it provides odometry it is designed to support consuming a RoadRunnerDrive instance if wanted.
Author
Lucas Bubner, 2024
Since
5.1.0