class TrajectoryBuilder
Easy-to-use builder for creating Trajectory instances.
globalConstraints - global drive constraints (overridable for specific segments)
resolution - resolution used for path-based segments (see PathTrajectorySegment)
TrajectoryBuilder(startPose: Pose2d, globalConstraints: DriveConstraints, resolution: Int = 250)
Easy-to-use builder for creating Trajectory instances.  | 
fun back(distance: Double): TrajectoryBuilder
Adds a line straight backward.  | 
|
fun beginComposite(): TrajectoryBuilder
Begins a composite path trajectory segment backed by a single continuous profile.  | 
|
fun build(): Trajectory
Constructs the Trajectory instance.  | 
|
fun closeComposite(): TrajectoryBuilder
Closes a composite path trajectory segment (see beginComposite).  | 
|
fun forward(distance: Double): TrajectoryBuilder
Adds a line straight forward.  | 
|
fun lineTo(pos: Vector2d, interpolator: HeadingInterpolator = TangentInterpolator(), constraintsOverride: TrajectoryConstraints? = null): TrajectoryBuilder
Adds a line path segment.  | 
|
fun reverse(): TrajectoryBuilder
Reverse the direction of robot travel.  | 
|
fun setReversed(reversed: Boolean): TrajectoryBuilder
Sets the robot travel direction.  | 
|
fun splineTo(pose: Pose2d, interpolator: HeadingInterpolator = TangentInterpolator(), constraintsOverride: TrajectoryConstraints? = null): TrajectoryBuilder
Adds a spline segment.  | 
|
fun strafeLeft(distance: Double): TrajectoryBuilder
Adds a segment that strafes left in the robot reference frame.  | 
|
fun strafeRight(distance: Double): TrajectoryBuilder
Adds a segment that strafes right in the robot reference frame.  | 
|
fun turn(angle: Double, constraintsOverride: DriveConstraints? = null): TrajectoryBuilder
Adds a point turn.  | 
|
fun turnTo(heading: Double, constraintsOverride: DriveConstraints? = null): TrajectoryBuilder
Adds a point turn.  | 
|
fun waitFor(duration: Double): TrajectoryBuilder
Adds a wait segment.  |