Interface PacketSerde<T>
- All Known Implementing Classes:
MultiTargetPNPResultSerde
,PhotonPipelineMetadataSerde
,PhotonPipelineResultSerde
,PhotonTrackedTargetSerde
,PnpResultSerde
,TargetCornerSerde
public interface PacketSerde<T>
-
Method Summary
Modifier and TypeMethodDescriptionThe hash of the schema stringint
default PacketSerde<?>[]
Gets the list of photonstruct types referenced by this struct.default Struct<?>[]
Gets the list of WPILib struct types referenced by this struct.The schema definition, as defined in photon-serde/README.mdThe name of this struct (eg "PhotonTrackedTarget")default String
Gets the type string (e.g.void
-
Method Details
-
getMaxByteSize
int getMaxByteSize() -
pack
-
unpack
-
getTypeName
String getTypeName()The name of this struct (eg "PhotonTrackedTarget") -
getTypeString
Gets the type string (e.g. for NetworkTables). This should be globally unique and start with "photonstruct:".- Returns:
- type string
-
getNestedPhotonMessages
Gets the list of photonstruct types referenced by this struct. -
getNestedWpilibMessages
Gets the list of WPILib struct types referenced by this struct. -
getSchema
String getSchema()The schema definition, as defined in photon-serde/README.md -
getInterfaceUUID
String getInterfaceUUID()The hash of the schema string
-