PurePursuit

class PurePursuit(path: List<PurePursuit.PathPoint>, lookahead: Double = 6.0)

Computes a path from a series of points and a radius

Parameters

path

a list of PathPoints for the robot to drive to

lookahead

a radius for the robot to spline around(6.0 - 8.0 is best)

Constructors

Link copied to clipboard
constructor(path: List<PurePursuit.PathPoint>, lookahead: Double = 6.0)

Types

Link copied to clipboard
data class PathPoint(val x: Double, val y: Double, val heading: Double? = null)

Data class for Pure Pursuit

Functions

Link copied to clipboard
Link copied to clipboard
fun isFinished(robotX: Double, robotY: Double, tolerance: Double = 1.0): Boolean

Check to make sure if path is finished