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
-
Constructor Summary
ConstructorDescriptionPhotonPipelineMetadata
(long captureTimestampMicros, long publishTimestampMicros, long sequenceID, long timeSinceLastPong) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
The time that this image was captured, in the coprocessor's time base.double
Returns the time between image capture and publish to NTlong
The time that this result was published to NT, in the coprocessor's time base.long
The number of non-empty frames processed by this camera since boot.getSerde()
int
hashCode()
toString()
-
Field Details
-
captureTimestampMicros
public long captureTimestampMicros -
publishTimestampMicros
public long publishTimestampMicros -
sequenceID
public long sequenceID -
timeSinceLastPong
public long timeSinceLastPong -
photonStruct
-
-
Constructor Details
-
PhotonPipelineMetadata
public PhotonPipelineMetadata(long captureTimestampMicros, long publishTimestampMicros, long sequenceID, long timeSinceLastPong) -
PhotonPipelineMetadata
public PhotonPipelineMetadata()
-
-
Method Details
-
getLatencyMillis
public double getLatencyMillis()Returns the time between image capture and publish to NT -
getCaptureTimestampMicros
public long getCaptureTimestampMicros()The time that this image was captured, in the coprocessor's time base. -
getPublishTimestampMicros
public long getPublishTimestampMicros()The time that this result was published to NT, in the coprocessor's time base. -
getSequenceID
public long getSequenceID()The number of non-empty frames processed by this camera since boot. Useful to checking if a camera is alive. -
toString
-
hashCode
public int hashCode() -
equals
-
getSerde
- Specified by:
getSerde
in interfacePhotonStructSerializable<PhotonPipelineMetadata>
-