Package com.marswars.proxy_server
Interface Packet
- All Known Implementing Classes:
OdomPacket,PieceDetectionPacket,StatesPacket,TagSolutionPacket,TimesyncRequest,TimesyncResponse
public interface Packet
Base interface for all proxy server packet types.
Provides common constants and utilities for packet parsing.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classTimestamp class to store packet timestamp and perform timestamp operations. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTotal size of the common packet header (type + timestamp)static final intDeprecated.static final intPacket type identifier indexstatic final intTimestamp nanoseconds indexstatic final intTimestamp seconds index
-
Field Details
-
PACKET_ID_IDX
static final int PACKET_ID_IDXPacket type identifier index- See Also:
-
TIME_SEC_IDX
static final int TIME_SEC_IDXTimestamp seconds index- See Also:
-
TIME_NSEC_IDX
static final int TIME_NSEC_IDXTimestamp nanoseconds index- See Also:
-
HEADER_SIZE
static final int HEADER_SIZETotal size of the common packet header (type + timestamp)- See Also:
-
ID_IDX
Deprecated.- See Also:
-