001package com.stuypulse.robot.commands.auton;
002
003import com.pathplanner.lib.path.PathPlannerPath;
004import com.stuypulse.robot.commands.swerve.SwerveResetPose;
005import com.stuypulse.robot.subsystems.swerve.CommandSwerveDrivetrain;
006import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
007
008public class TwoMeterPath extends SequentialCommandGroup {
009
010    public TwoMeterPath(PathPlannerPath... paths) {
011        addCommands(new SwerveResetPose(paths[0].getStartingHolonomicPose().get()),
012                CommandSwerveDrivetrain.getInstance().followPathCommand(paths[0]));
013    }
014}