diff --git a/src/main/java/xbot/common/injection/components/PurePursuitTestComponent.java b/src/main/java/xbot/common/injection/components/PurePursuitTestComponent.java index 3108e765..9cac247a 100644 --- a/src/main/java/xbot/common/injection/components/PurePursuitTestComponent.java +++ b/src/main/java/xbot/common/injection/components/PurePursuitTestComponent.java @@ -13,9 +13,12 @@ /** * Do not use this directly. Use auto-generated class DaggerUnitTestComponent. + * + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. */ @Singleton @Component(modules = { UnitTestModule.class, MockDevicesModule.class, MockControlsModule.class, UnitTestRobotModule.class, DefaultVisionModule.class }) +@Deprecated public abstract class PurePursuitTestComponent extends BaseComponent { public abstract ConfigurablePurePursuitCommand configurablePurePursuitCommand(); } diff --git a/src/main/java/xbot/common/math/PurePursuitTest.java b/src/main/java/xbot/common/math/PurePursuitTest.java index 1871e314..abd04f8b 100644 --- a/src/main/java/xbot/common/math/PurePursuitTest.java +++ b/src/main/java/xbot/common/math/PurePursuitTest.java @@ -15,6 +15,10 @@ import xbot.common.subsystems.drive.RabbitPoint; import xbot.common.subsystems.pose.MockBasePoseSubsystem; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class PurePursuitTest extends BaseWPITest { double target_distance = 5; diff --git a/src/main/java/xbot/common/subsystems/drive/ConfigurablePurePursuitCommand.java b/src/main/java/xbot/common/subsystems/drive/ConfigurablePurePursuitCommand.java index 7ed173b1..99c63613 100644 --- a/src/main/java/xbot/common/subsystems/drive/ConfigurablePurePursuitCommand.java +++ b/src/main/java/xbot/common/subsystems/drive/ConfigurablePurePursuitCommand.java @@ -11,6 +11,10 @@ import xbot.common.subsystems.drive.control_logic.HeadingModule.HeadingModuleFactory; import xbot.common.subsystems.pose.BasePoseSubsystem; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class ConfigurablePurePursuitCommand extends PurePursuitCommand { private List originalPoints; private PointLoadingMode mode; diff --git a/src/main/java/xbot/common/subsystems/drive/PurePursuitCommand.java b/src/main/java/xbot/common/subsystems/drive/PurePursuitCommand.java index cb6afc4c..f78b03ad 100644 --- a/src/main/java/xbot/common/subsystems/drive/PurePursuitCommand.java +++ b/src/main/java/xbot/common/subsystems/drive/PurePursuitCommand.java @@ -19,6 +19,10 @@ import xbot.common.subsystems.drive.control_logic.HeadingModule.HeadingModuleFactory; import xbot.common.subsystems.pose.BasePoseSubsystem; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public abstract class PurePursuitCommand extends BaseCommand { public enum PointLoadingMode { diff --git a/src/main/java/xbot/common/subsystems/drive/SwerveSimpleBezierCommand.java b/src/main/java/xbot/common/subsystems/drive/SwerveSimpleBezierCommand.java index 699ae82b..3f8d847b 100644 --- a/src/main/java/xbot/common/subsystems/drive/SwerveSimpleBezierCommand.java +++ b/src/main/java/xbot/common/subsystems/drive/SwerveSimpleBezierCommand.java @@ -15,6 +15,10 @@ import xbot.common.subsystems.pose.BasePoseSubsystem; import xbot.common.trajectory.SwerveSimpleTrajectoryLogic; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SwerveSimpleBezierCommand extends BaseCommand { protected BaseSwerveDriveSubsystem drive; diff --git a/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryCommand.java b/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryCommand.java index 9a797230..e8710ec4 100644 --- a/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryCommand.java +++ b/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryCommand.java @@ -15,6 +15,10 @@ import xbot.common.subsystems.pose.BasePoseSubsystem; import xbot.common.trajectory.SwerveSimpleTrajectoryLogic; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SwerveSimpleTrajectoryCommand extends BaseCommand { protected BaseSwerveDriveSubsystem drive; diff --git a/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryMode.java b/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryMode.java index e997db91..9d7ef807 100644 --- a/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryMode.java +++ b/src/main/java/xbot/common/subsystems/drive/SwerveSimpleTrajectoryMode.java @@ -2,7 +2,10 @@ /** * Different ways to input values for SwerveSimpleTrajectoryCommand + * + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. */ +@Deprecated public enum SwerveSimpleTrajectoryMode { /** diff --git a/src/main/java/xbot/common/subsystems/oracle/SwervePointPathPlanning.java b/src/main/java/xbot/common/subsystems/oracle/SwervePointPathPlanning.java index 8f08d6d4..ee28f61a 100644 --- a/src/main/java/xbot/common/subsystems/oracle/SwervePointPathPlanning.java +++ b/src/main/java/xbot/common/subsystems/oracle/SwervePointPathPlanning.java @@ -24,6 +24,10 @@ import static org.wpilib.units.Units.Meters; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SwervePointPathPlanning { private final Distance radius; private final GameField gameField; diff --git a/src/main/java/xbot/common/trajectory/LowResField.java b/src/main/java/xbot/common/trajectory/LowResField.java index 8275b260..735022bb 100644 --- a/src/main/java/xbot/common/trajectory/LowResField.java +++ b/src/main/java/xbot/common/trajectory/LowResField.java @@ -13,7 +13,10 @@ /** * Represents a simple version of the field, with Axis-Aligned Bounding Boxes representing no-go zones due to obstacles. + * + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. */ +@Deprecated public class LowResField implements ProvidesWaypoints { List obstacles; diff --git a/src/main/java/xbot/common/trajectory/Obstacle.java b/src/main/java/xbot/common/trajectory/Obstacle.java index 6bbd29d7..4136baa7 100644 --- a/src/main/java/xbot/common/trajectory/Obstacle.java +++ b/src/main/java/xbot/common/trajectory/Obstacle.java @@ -5,6 +5,10 @@ import org.wpilib.math.geometry.Translation2d; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class Obstacle extends Rectangle2D.Double { private static final long serialVersionUID = 1L; diff --git a/src/main/java/xbot/common/trajectory/ProvidesInterpolationData.java b/src/main/java/xbot/common/trajectory/ProvidesInterpolationData.java index 9fbb762b..d59b9b70 100644 --- a/src/main/java/xbot/common/trajectory/ProvidesInterpolationData.java +++ b/src/main/java/xbot/common/trajectory/ProvidesInterpolationData.java @@ -5,6 +5,10 @@ import xbot.common.subsystems.drive.SwervePointKinematics; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public interface ProvidesInterpolationData { public Translation2d getTranslation2d(); diff --git a/src/main/java/xbot/common/trajectory/ProvidesWaypoints.java b/src/main/java/xbot/common/trajectory/ProvidesWaypoints.java index 6a9d6289..e3a5df6f 100644 --- a/src/main/java/xbot/common/trajectory/ProvidesWaypoints.java +++ b/src/main/java/xbot/common/trajectory/ProvidesWaypoints.java @@ -4,6 +4,10 @@ import org.wpilib.math.geometry.Pose2d; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public interface ProvidesWaypoints { public List generatePath(Pose2d start, Pose2d end); } diff --git a/src/main/java/xbot/common/trajectory/SimpleInterpolator.java b/src/main/java/xbot/common/trajectory/SimpleInterpolator.java index 48fa6b1f..c06f0377 100644 --- a/src/main/java/xbot/common/trajectory/SimpleInterpolator.java +++ b/src/main/java/xbot/common/trajectory/SimpleInterpolator.java @@ -18,6 +18,10 @@ import static org.wpilib.units.Units.Meters; import static org.wpilib.units.Units.MetersPerSecond; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SimpleInterpolator { ProvidesInterpolationData baseline; diff --git a/src/main/java/xbot/common/trajectory/SimpleTimeInterpolator.java b/src/main/java/xbot/common/trajectory/SimpleTimeInterpolator.java index 35706745..8ffbdc72 100644 --- a/src/main/java/xbot/common/trajectory/SimpleTimeInterpolator.java +++ b/src/main/java/xbot/common/trajectory/SimpleTimeInterpolator.java @@ -20,6 +20,10 @@ import static org.wpilib.units.Units.MetersPerSecond; import static org.wpilib.units.Units.Value; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SimpleTimeInterpolator { double accumulatedProductiveSeconds; diff --git a/src/main/java/xbot/common/trajectory/SwerveSimpleBezierLogic.java b/src/main/java/xbot/common/trajectory/SwerveSimpleBezierLogic.java index 49f51b28..1d4f6a6f 100644 --- a/src/main/java/xbot/common/trajectory/SwerveSimpleBezierLogic.java +++ b/src/main/java/xbot/common/trajectory/SwerveSimpleBezierLogic.java @@ -25,6 +25,10 @@ import static org.wpilib.units.Units.Meters; import static org.wpilib.units.Units.Seconds; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SwerveSimpleBezierLogic { Logger log = LogManager.getLogger(this.getClass()); diff --git a/src/main/java/xbot/common/trajectory/SwerveSimpleTrajectoryLogic.java b/src/main/java/xbot/common/trajectory/SwerveSimpleTrajectoryLogic.java index 328e71f3..429ea301 100644 --- a/src/main/java/xbot/common/trajectory/SwerveSimpleTrajectoryLogic.java +++ b/src/main/java/xbot/common/trajectory/SwerveSimpleTrajectoryLogic.java @@ -25,6 +25,10 @@ import static org.wpilib.units.Units.Meters; import static org.wpilib.units.Units.Seconds; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class SwerveSimpleTrajectoryLogic { public enum FinishMode { diff --git a/src/main/java/xbot/common/trajectory/XbotSwervePoint.java b/src/main/java/xbot/common/trajectory/XbotSwervePoint.java index 5bed54ea..eebce6ba 100644 --- a/src/main/java/xbot/common/trajectory/XbotSwervePoint.java +++ b/src/main/java/xbot/common/trajectory/XbotSwervePoint.java @@ -8,6 +8,10 @@ import xbot.common.subsystems.drive.SwervePointKinematics; +/** + * @deprecated Path planning and path following are moving to PathPlanner. This will be removed in a future release. + */ +@Deprecated public class XbotSwervePoint implements ProvidesInterpolationData { public Pose2d keyPose;