RoadRunnerTrajectoryTaskBuilder

constructor(drive: RoadRunnerDrive, startPose: Pose2d, startTangent: Double, baseVelConstraint: TrajectoryVelocityConstraint, baseAccelConstraint: TrajectoryAccelerationConstraint, baseTurnConstraintMaxAngVel: Double, baseTurnConstraintMaxAngAccel: Double, mirrorPoseRef: Boolean)

Create a new builder for a RoadRunner trajectory task.

Parameters

drive

Drive system to use

startPose

Starting pose of the trajectory (in, in, radians)

startTangent

Starting tangent of the trajectory (radians)

baseVelConstraint

Base velocity constraint (in/s)

baseAccelConstraint

Base acceleration constraint (in/s^2)

baseTurnConstraintMaxAngVel

Base turn constraint max angular velocity (rad/s)

baseTurnConstraintMaxAngAccel

Base turn constraint max angular acceleration (rad/s^2)

mirrorPoseRef

Whether to mirror the startPose if used in a mirrorToRef.


constructor(drive: RoadRunnerDrive, startPose: Pose2d, baseVelConstraint: TrajectoryVelocityConstraint, baseAccelConstraint: TrajectoryAccelerationConstraint, baseTurnConstraintMaxAngVel: Double, baseTurnConstraintMaxAngAccel: Double, mirrorPoseRef: Boolean)

Create a new builder for a RoadRunner trajectory task.

Parameters

drive

Drive system to use

startPose

Starting pose of the trajectory (in, in, radians)

baseVelConstraint

Base velocity constraint

baseAccelConstraint

Base acceleration constraint

baseTurnConstraintMaxAngVel

Base turn constraint max angular velocity

baseTurnConstraintMaxAngAccel

Base turn constraint max angular acceleration

mirrorPoseRef

Whether to mirror the startPose if used in a mirrorToRef.