Package com.marswars.proxy_server
Class TagSolutionPacket
java.lang.Object
com.marswars.proxy_server.TagSolutionPacket
- All Implemented Interfaces:
Packet
Packet handler for AprilTag detection and pose estimation data.
Provides functionality to parse incoming tag solution packets containing
robot pose estimates based on detected AprilTags.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData structure containing AprilTag-based pose solution information.Nested classes/interfaces inherited from interface com.marswars.proxy_server.Packet
Packet.Timestamp -
Field Summary
FieldsFields inherited from interface com.marswars.proxy_server.Packet
HEADER_SIZE, ID_IDX, PACKET_ID_IDX, TIME_NSEC_IDX, TIME_SEC_IDX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionupdateData(byte[] buffer) Parses tag solution packet data from a received byte buffer.
-
Field Details
-
TYPE_ID
public static final int TYPE_ID- See Also:
-
-
Constructor Details
-
TagSolutionPacket
public TagSolutionPacket()
-
-
Method Details
-
updateData
Parses tag solution packet data from a received byte buffer. Extracts timestamp, camera serial, pose, and detected tag IDs from the buffer.- Parameters:
buffer- the byte buffer containing the packet data- Returns:
- TagSolutionData object with parsed information
-