Class TrajectorySequenceBuilder
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.roadrunner.trajectorysequence.TrajectorySequenceBuilder
-
Constructor Summary
ConstructorDescriptionTrajectorySequenceBuilder
(com.acmerobotics.roadrunner.geometry.Pose2d startPose, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint baseVelConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint baseAccelConstraint, double baseTurnConstraintMaxAngVel, double baseTurnConstraintMaxAngAccel) TrajectorySequenceBuilder
(com.acmerobotics.roadrunner.geometry.Pose2d startPose, Double startTangent, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint baseVelConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint baseAccelConstraint, double baseTurnConstraintMaxAngVel, double baseTurnConstraintMaxAngAccel) -
Method Summary
Modifier and TypeMethodDescriptionaddDisplacementMarker
(double scale, double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addDisplacementMarker
(double displacement, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addDisplacementMarker
(com.acmerobotics.roadrunner.trajectory.DisplacementProducer displacement, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addDisplacementMarker
(com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addSpatialMarker
(com.acmerobotics.roadrunner.geometry.Vector2d point, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addTemporalMarker
(double scale, double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addTemporalMarker
(double time, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addTemporalMarker
(com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addTemporalMarker
(com.acmerobotics.roadrunner.trajectory.TimeProducer time, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) addTrajectory
(com.acmerobotics.roadrunner.trajectory.Trajectory trajectory) back
(double distance) back
(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) build()
forward
(double distance) forward
(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) lineTo
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition) lineTo
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) lineToConstantHeading
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition) lineToConstantHeading
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) lineToLinearHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose) lineToLinearHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) lineToSplineHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose) lineToSplineHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) setAccelConstraint
(com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) setConstraints
(com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) setReversed
(boolean reversed) setTangent
(double tangent) setTurnConstraint
(double maxAngVel, double maxAngAccel) setVelConstraint
(com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint) splineTo
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading) splineTo
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) splineToConstantHeading
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading) splineToConstantHeading
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) splineToLinearHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading) splineToLinearHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) splineToSplineHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading) splineToSplineHeading
(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) strafeLeft
(double distance) strafeLeft
(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) strafeRight
(double distance) strafeRight
(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) strafeTo
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition) strafeTo
(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) turn
(double angle) turn
(double angle, double maxAngVel, double maxAngAccel) UNSTABLE_addDisplacementMarkerOffset
(double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) UNSTABLE_addTemporalMarkerOffset
(double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) waitSeconds
(double seconds)
-
Constructor Details
-
TrajectorySequenceBuilder
public TrajectorySequenceBuilder(com.acmerobotics.roadrunner.geometry.Pose2d startPose, Double startTangent, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint baseVelConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint baseAccelConstraint, double baseTurnConstraintMaxAngVel, double baseTurnConstraintMaxAngAccel) -
TrajectorySequenceBuilder
public TrajectorySequenceBuilder(com.acmerobotics.roadrunner.geometry.Pose2d startPose, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint baseVelConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint baseAccelConstraint, double baseTurnConstraintMaxAngVel, double baseTurnConstraintMaxAngAccel)
-
-
Method Details
-
lineTo
-
lineTo
public TrajectorySequenceBuilder lineTo(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
lineToConstantHeading
public TrajectorySequenceBuilder lineToConstantHeading(com.acmerobotics.roadrunner.geometry.Vector2d endPosition) -
lineToConstantHeading
public TrajectorySequenceBuilder lineToConstantHeading(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
lineToLinearHeading
public TrajectorySequenceBuilder lineToLinearHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose) -
lineToLinearHeading
public TrajectorySequenceBuilder lineToLinearHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
lineToSplineHeading
public TrajectorySequenceBuilder lineToSplineHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose) -
lineToSplineHeading
public TrajectorySequenceBuilder lineToSplineHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
strafeTo
public TrajectorySequenceBuilder strafeTo(com.acmerobotics.roadrunner.geometry.Vector2d endPosition) -
strafeTo
public TrajectorySequenceBuilder strafeTo(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
forward
-
forward
public TrajectorySequenceBuilder forward(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
back
-
back
public TrajectorySequenceBuilder back(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
strafeLeft
-
strafeLeft
public TrajectorySequenceBuilder strafeLeft(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
strafeRight
-
strafeRight
public TrajectorySequenceBuilder strafeRight(double distance, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
splineTo
public TrajectorySequenceBuilder splineTo(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading) -
splineTo
public TrajectorySequenceBuilder splineTo(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
splineToConstantHeading
public TrajectorySequenceBuilder splineToConstantHeading(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading) -
splineToConstantHeading
public TrajectorySequenceBuilder splineToConstantHeading(com.acmerobotics.roadrunner.geometry.Vector2d endPosition, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
splineToLinearHeading
public TrajectorySequenceBuilder splineToLinearHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading) -
splineToLinearHeading
public TrajectorySequenceBuilder splineToLinearHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
splineToSplineHeading
public TrajectorySequenceBuilder splineToSplineHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading) -
splineToSplineHeading
public TrajectorySequenceBuilder splineToSplineHeading(com.acmerobotics.roadrunner.geometry.Pose2d endPose, double endHeading, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
setTangent
-
setReversed
-
setConstraints
public TrajectorySequenceBuilder setConstraints(com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint, com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
resetConstraints
-
setVelConstraint
public TrajectorySequenceBuilder setVelConstraint(com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryVelocityConstraint velConstraint) -
resetVelConstraint
-
setAccelConstraint
public TrajectorySequenceBuilder setAccelConstraint(com.acmerobotics.roadrunner.trajectory.constraints.TrajectoryAccelerationConstraint accelConstraint) -
resetAccelConstraint
-
setTurnConstraint
-
resetTurnConstraint
-
addTemporalMarker
public TrajectorySequenceBuilder addTemporalMarker(com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
UNSTABLE_addTemporalMarkerOffset
public TrajectorySequenceBuilder UNSTABLE_addTemporalMarkerOffset(double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addTemporalMarker
public TrajectorySequenceBuilder addTemporalMarker(double time, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addTemporalMarker
public TrajectorySequenceBuilder addTemporalMarker(double scale, double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addTemporalMarker
public TrajectorySequenceBuilder addTemporalMarker(com.acmerobotics.roadrunner.trajectory.TimeProducer time, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addSpatialMarker
public TrajectorySequenceBuilder addSpatialMarker(com.acmerobotics.roadrunner.geometry.Vector2d point, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addDisplacementMarker
public TrajectorySequenceBuilder addDisplacementMarker(com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
UNSTABLE_addDisplacementMarkerOffset
public TrajectorySequenceBuilder UNSTABLE_addDisplacementMarkerOffset(double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addDisplacementMarker
public TrajectorySequenceBuilder addDisplacementMarker(double displacement, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addDisplacementMarker
public TrajectorySequenceBuilder addDisplacementMarker(double scale, double offset, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
addDisplacementMarker
public TrajectorySequenceBuilder addDisplacementMarker(com.acmerobotics.roadrunner.trajectory.DisplacementProducer displacement, com.acmerobotics.roadrunner.trajectory.MarkerCallback callback) -
turn
-
turn
-
waitSeconds
-
addTrajectory
public TrajectorySequenceBuilder addTrajectory(com.acmerobotics.roadrunner.trajectory.Trajectory trajectory) -
build
-