core / com.acmerobotics.roadrunner.trajectory / TrajectoryBuilder / forward

forward

fun forward(distance: Double, velConstraintOverride: TrajectoryVelocityConstraint?, accelConstraintOverride: TrajectoryAccelerationConstraint?): TrajectoryBuilder (source)

Adds a line straight forward.

Parameters

distance - distance to travel forward

constraintsOverride - segment-specific constraints