core / com.acmerobotics.roadrunner.trajectory / BaseTrajectoryBuilder / addMarker

addMarker

fun addMarker(time: Double, callback: () -> Unit): BaseTrajectoryBuilder

Adds a marker to the trajectory at time.

fun addMarker(point: Vector2d, callback: () -> Unit): BaseTrajectoryBuilder

Adds a marker that will be triggered at the closest trajectory point to point.

fun addMarker(callback: () -> Unit): BaseTrajectoryBuilder

Adds a marker at the current position of the trajectory.