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

addDisplacementMarker

fun addDisplacementMarker(callback: MarkerCallback): T (source)

Adds a marker at the current position of the trajectory.

fun addDisplacementMarker(displacement: Double, callback: MarkerCallback): T (source)

Adds a marker to the trajectory at displacement.

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

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

fun addDisplacementMarker(displacement: (Double) -> Double, callback: MarkerCallback): T (source)

Adds a marker to the trajectory at displacement evaluated with path length.