7efec6d03c
lots of stuff no one will read these Former-commit-id: 14dcd018bd1b6f74d4b35aa33d9185aca59e9213
21 lines
673 B
Java
21 lines
673 B
Java
package org.firstinspires.ftc.teamcode.trajectorysequence.sequencesegment;
|
|
|
|
import com.acmerobotics.roadrunner.trajectory.Trajectory;
|
|
|
|
import java.util.Collections;
|
|
|
|
public final class TrajectorySegment extends SequenceSegment {
|
|
private final Trajectory trajectory;
|
|
|
|
public TrajectorySegment(Trajectory trajectory) {
|
|
// Note: Markers are already stored in the `Trajectory` itself.
|
|
// This class should not hold any markers
|
|
super(trajectory.duration(), trajectory.start(), trajectory.end(), Collections.emptyList());
|
|
this.trajectory = trajectory;
|
|
}
|
|
|
|
public Trajectory getTrajectory() {
|
|
return this.trajectory;
|
|
}
|
|
}
|