Package org.photonvision.targeting
Class PhotonPipelineMetadata
java.lang.Object
org.photonvision.targeting.PhotonPipelineMetadata
- All Implemented Interfaces:
PhotonStructSerializable<PhotonPipelineMetadata>
public class PhotonPipelineMetadata
extends Object
implements PhotonStructSerializable<PhotonPipelineMetadata>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPhotonPipelineMetadata(long captureTimestampMicros, long publishTimestampMicros, long sequenceID, long timeSinceLastPong) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongThe time that this image was captured, in the coprocessor's time base.doubleReturns the time between image capture and publish to NTlongThe time that this result was published to NT, in the coprocessor's time base.longThe number of non-empty frames processed by this camera since boot.getSerde()Returns the PhotonStruct serializer for this type.inthashCode()toString()
-
Field Details
-
captureTimestampMicros
-
publishTimestampMicros
-
sequenceID
-
timeSinceLastPong
-
photonStruct
-
-
Constructor Details
-
PhotonPipelineMetadata
public PhotonPipelineMetadata(long captureTimestampMicros, long publishTimestampMicros, long sequenceID, long timeSinceLastPong) -
PhotonPipelineMetadata
public PhotonPipelineMetadata()
-
-
Method Details
-
getLatencyMillis
Returns the time between image capture and publish to NT- Returns:
- The time in milliseconds
-
getCaptureTimestampMicros
The time that this image was captured, in the coprocessor's time base.- Returns:
- The time in microseconds
-
getPublishTimestampMicros
The time that this result was published to NT, in the coprocessor's time base.- Returns:
- The time in microseconds
-
getSequenceID
The number of non-empty frames processed by this camera since boot. Useful to checking if a camera is alive.- Returns:
- The number of non-empty frames
-
toString
-
hashCode
-
equals
-
getSerde
Description copied from interface:PhotonStructSerializableReturns the PhotonStruct serializer for this type.- Specified by:
getSerdein interfacePhotonStructSerializable<PhotonPipelineMetadata>- Returns:
- The PhotonStruct serializer
-