fun lineToSplineHeading(endPose: Pose2d): T
Adds a line segment with spline heading interpolation.
endPose - end pose
endPose