Class GoalPoseChooser
java.lang.Object
frc.robot.systems.drive.controllers.GoalPoseChooser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic edu.wpi.first.math.geometry.Pose2dgetGoalPose(GoalPoseChooser.CHOOSER_STRATEGY strategy, edu.wpi.first.math.geometry.Pose2d pose) static edu.wpi.first.math.geometry.Pose2dgetIntakePose(edu.wpi.first.math.geometry.Pose2d robotPose) static edu.wpi.first.math.geometry.Pose2dgetNetPose(edu.wpi.first.math.geometry.Pose2d robotPose) static StateTracker.ReefFacestatic edu.wpi.first.math.geometry.Pose2dgetReefHexagonalPose(edu.wpi.first.math.geometry.Pose2d robotPose) static edu.wpi.first.math.geometry.Pose2dgetTargetPose(int pTagID) static edu.wpi.first.math.geometry.Pose2dgetTargetPose(int pTagID, double pXOffsetM, double pYOffsetM) static edu.wpi.first.math.geometry.Pose2dgetTargetPoseLeft(int pTagID) static edu.wpi.first.math.geometry.Pose2dgetTargetPoseLeft(int pTagID, boolean swap) static edu.wpi.first.math.geometry.Pose2dgetTargetPoseRight(int pTagID) static edu.wpi.first.math.geometry.Pose2dgetTargetPoseRight(int pTagID, boolean swap) static edu.wpi.first.wpilibj2.command.CommandsetGoalCommand(edu.wpi.first.math.geometry.Pose2d goalPose) static voidsetSide(GoalPoseChooser.SIDE reefSide) static edu.wpi.first.wpilibj2.command.CommandsetSideCommand(GoalPoseChooser.SIDE reefSide) static voidsetSwapSides(boolean swap) static edu.wpi.first.math.geometry.Rotation2dturnFromReefOrigin(edu.wpi.first.math.geometry.Pose2d robotPose) static edu.wpi.first.math.geometry.Rotation2dturnFromReefOriginForHexagon(edu.wpi.first.math.geometry.Pose2d robotPose) static void
-
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
-
setSide
-
getReefFace
-