Package frc.robot.util
Class PoseUtil
java.lang.Object
frc.robot.util.PoseUtil
Utility classes for working with poses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pose2d
Flips a pose to the other alliance.static Translation2d
flipTranslation
(Translation2d translation) Flips a translation to the other alliance.
-
Constructor Details
-
PoseUtil
public PoseUtil()
-
-
Method Details
-
flipPose
Flips a pose to the other alliance.- Parameters:
pose
- Pose to flip.- Returns:
- Flipped pose.
-
flipTranslation
Flips a translation to the other alliance.- Parameters:
translation
- Translation to flip.- Returns:
- Flipped translation.
-