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

addTemporalMarker

fun addTemporalMarker(time: Double, callback: MarkerCallback): T (source)

Adds a marker to the trajectory at time.

fun addTemporalMarker(scale: Double, offset: Double, callback: MarkerCallback): T (source)

Adds a marker to the trajectory at scale * trajectory duration + offset.

fun addTemporalMarker(time: (Double) -> Double, callback: MarkerCallback): T (source)

Adds a marker to the trajectory at time evaluated with the trajectory duration.