Class GoalPoseChooser

java.lang.Object
frc.robot.systems.drive.controllers.GoalPoseChooser

public class GoalPoseChooser extends Object
  • Field Details

    • kDistBetweenBranchesCenter

      public static final double kDistBetweenBranchesCenter
    • kDistBetweenBranchesCenterWithAlgae

      public static final double kDistBetweenBranchesCenterWithAlgae
    • kClawOffset

      public static final double kClawOffset
  • Constructor Details

    • GoalPoseChooser

      public GoalPoseChooser()
  • Method Details

    • getGoalPose

      public static edu.wpi.first.math.geometry.Pose2d getGoalPose(GoalPoseChooser.CHOOSER_STRATEGY strategy, edu.wpi.first.math.geometry.Pose2d pose)
    • getReefHexagonalPose

      public static edu.wpi.first.math.geometry.Pose2d getReefHexagonalPose(edu.wpi.first.math.geometry.Pose2d robotPose)
    • setSwapSides

      public static void setSwapSides(boolean swap)
    • getTargetPoseLeft

      public static edu.wpi.first.math.geometry.Pose2d getTargetPoseLeft(int pTagID, boolean swap)
    • getTargetPoseRight

      public static edu.wpi.first.math.geometry.Pose2d getTargetPoseRight(int pTagID, boolean swap)
    • getTargetPoseLeft

      public static edu.wpi.first.math.geometry.Pose2d getTargetPoseLeft(int pTagID)
    • getTargetPoseRight

      public static edu.wpi.first.math.geometry.Pose2d getTargetPoseRight(int pTagID)
    • getTargetPose

      public static edu.wpi.first.math.geometry.Pose2d getTargetPose(int pTagID)
    • getTargetPose

      public static edu.wpi.first.math.geometry.Pose2d getTargetPose(int pTagID, double pXOffsetM, double pYOffsetM)
    • updateSideStuff

      public static void updateSideStuff()
    • getIntakePose

      public static edu.wpi.first.math.geometry.Pose2d getIntakePose(edu.wpi.first.math.geometry.Pose2d robotPose)
    • getNetPose

      public static edu.wpi.first.math.geometry.Pose2d getNetPose(edu.wpi.first.math.geometry.Pose2d robotPose)
    • turnFromReefOriginForHexagon

      public static edu.wpi.first.math.geometry.Rotation2d turnFromReefOriginForHexagon(edu.wpi.first.math.geometry.Pose2d robotPose)
    • turnFromReefOrigin

      public static edu.wpi.first.math.geometry.Rotation2d turnFromReefOrigin(edu.wpi.first.math.geometry.Pose2d robotPose)
    • setGoalCommand

      public static edu.wpi.first.wpilibj2.command.Command setGoalCommand(edu.wpi.first.math.geometry.Pose2d goalPose)
    • setSideCommand

      public static edu.wpi.first.wpilibj2.command.Command setSideCommand(GoalPoseChooser.SIDE reefSide)
    • setSide

      public static void setSide(GoalPoseChooser.SIDE reefSide)
    • getReefFace

      public static StateTracker.ReefFace getReefFace()