Package org.photonvision.utils
Class PacketUtils
java.lang.Object
org.photonvision.utils.PacketUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
packPose2d
(Packet packet, Pose2d pose) static void
packPose3d
(Packet packet, Pose3d pose) static void
packQuaternion
(Packet packet, Quaternion quaternion) static void
packRotation2d
(Packet packet, Rotation2d rotation) static void
packRotation3d
(Packet packet, Rotation3d rotation) static void
packTransform2d
(Packet packet, Transform2d transform) static void
packTransform3d
(Packet packet, Transform3d transform) static void
packTranslation2d
(Packet packet, Translation2d translation) static void
packTranslation3d
(Packet packet, Translation3d translation) static Pose2d
unpackPose2d
(Packet packet) static Pose3d
unpackPose3d
(Packet packet) static Quaternion
unpackQuaternion
(Packet packet) static Rotation2d
unpackRotation2d
(Packet packet) static Rotation3d
unpackRotation3d
(Packet packet) static Transform2d
unpackTransform2d
(Packet packet) static Transform3d
unpackTransform3d
(Packet packet) static Translation2d
unpackTranslation2d
(Packet packet) static Translation3d
unpackTranslation3d
(Packet packet)
-
Field Details
-
ROTATION2D_BYTE_SIZE
public static final int ROTATION2D_BYTE_SIZE- See Also:
-
QUATERNION_BYTE_SIZE
public static final int QUATERNION_BYTE_SIZE- See Also:
-
ROTATION3D_BYTE_SIZE
public static final int ROTATION3D_BYTE_SIZE- See Also:
-
TRANSLATION2D_BYTE_SIZE
public static final int TRANSLATION2D_BYTE_SIZE- See Also:
-
TRANSLATION3D_BYTE_SIZE
public static final int TRANSLATION3D_BYTE_SIZE- See Also:
-
TRANSFORM2D_BYTE_SIZE
public static final int TRANSFORM2D_BYTE_SIZE- See Also:
-
TRANSFORM3D_BYTE_SIZE
public static final int TRANSFORM3D_BYTE_SIZE- See Also:
-
POSE2D_BYTE_SIZE
public static final int POSE2D_BYTE_SIZE- See Also:
-
POSE3D_BYTE_SIZE
public static final int POSE3D_BYTE_SIZE- See Also:
-
-
Constructor Details
-
PacketUtils
public PacketUtils()
-
-
Method Details
-
packRotation2d
-
unpackRotation2d
-
packQuaternion
-
unpackQuaternion
-
packRotation3d
-
unpackRotation3d
-
packTranslation2d
-
unpackTranslation2d
-
packTranslation3d
-
unpackTranslation3d
-
packTransform2d
-
unpackTransform2d
-
packTransform3d
-
unpackTransform3d
-
packPose2d
-
unpackPose2d
-
packPose3d
-
unpackPose3d
-