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

lineToLinearHeading

fun lineToLinearHeading(endPose: Pose2d, velConstraintOverride: TrajectoryVelocityConstraint?, accelConstraintOverride: TrajectoryAccelerationConstraint?): TrajectoryBuilder (source)

Adds a line segment with linear heading interpolation.

Parameters

endPose - end pose

constraintsOverride - segment-specific constraints