core / com.acmerobotics.roadrunner.trajectory / TrajectoryConfig

TrajectoryConfig

class TrajectoryConfig

Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than BaseTrajectoryBuilder.

Parameters

poses - poses

constraints - constraints

resolution - resolution used for path-based segments (see Trajectory)

Constructors

<init>

TrajectoryConfig(poses: List<Pose2d>, constraints: DriveConstraints, resolution: Double = 0.25)

Basic trajectory configuration intended for serialization. Intentionally more simplistic and less flexible than BaseTrajectoryBuilder.

Properties

constraints

val constraints: DriveConstraints

constraints

poses

val poses: List<Pose2d>

poses

resolution

val resolution: Double

resolution used for path-based segments (see Trajectory)

Functions

toTrajectory

fun toTrajectory(): Trajectory?

Converts the configuration into a real Trajectory.