Package org.photonvision.proto
Class Photon.ProtobufPNPResult
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
org.photonvision.proto.Photon.ProtobufPNPResult
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Photon
public static final class Photon.ProtobufPNPResult
extends us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
implements Cloneable
Protobuf type
ProtobufPNPResult-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()clearAlt()optional .wpi.proto.ProtobufTransform3d alt = 4;optional double alt_reproj_err = 5;optional double ambiguity = 6;optional .wpi.proto.ProtobufTransform3d best = 2;optional double best_reproj_err = 3;clone()protected intcopyFrom(Photon.ProtobufPNPResult other) booleangetAlt()optional .wpi.proto.ProtobufTransform3d alt = 4;This method returns the internal storage object without modifying any has state.doubleoptional double alt_reproj_err = 5;doubleoptional double ambiguity = 6;getBest()optional .wpi.proto.ProtobufTransform3d best = 2;This method returns the internal storage object without modifying any has state.doubleoptional double best_reproj_err = 3;static us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Photon.ProtobufPNPResult>optional .wpi.proto.ProtobufTransform3d alt = 4;This method returns the internal storage object and sets the corresponding has state.optional .wpi.proto.ProtobufTransform3d best = 2;This method returns the internal storage object and sets the corresponding has state.booleanhasAlt()optional .wpi.proto.ProtobufTransform3d alt = 4;booleanoptional double alt_reproj_err = 5;booleanoptional double ambiguity = 6;booleanhasBest()optional .wpi.proto.ProtobufTransform3d best = 2;booleanoptional double best_reproj_err = 3;booleanisEmpty()mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static Photon.ProtobufPNPResultstatic Photon.ProtobufPNPResultparseFrom(byte[] data) static Photon.ProtobufPNPResultparseFrom(us.hebi.quickbuf.JsonSource input) static Photon.ProtobufPNPResultparseFrom(us.hebi.quickbuf.ProtoSource input) optional .wpi.proto.ProtobufTransform3d alt = 4;setAltReprojErr(double value) optional double alt_reproj_err = 5;setAmbiguity(double value) optional double ambiguity = 6;optional .wpi.proto.ProtobufTransform3d best = 2;setBestReprojErr(double value) optional double best_reproj_err = 3;voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufPNPResult
-
hasBestReprojErr
optional double best_reproj_err = 3;- Returns:
- whether the bestReprojErr field is set
-
clearBestReprojErr
optional double best_reproj_err = 3;- Returns:
- this
-
getBestReprojErr
optional double best_reproj_err = 3;- Returns:
- the bestReprojErr
-
setBestReprojErr
optional double best_reproj_err = 3;- Parameters:
value- the bestReprojErr to set- Returns:
- this
-
hasAltReprojErr
optional double alt_reproj_err = 5;- Returns:
- whether the altReprojErr field is set
-
clearAltReprojErr
optional double alt_reproj_err = 5;- Returns:
- this
-
getAltReprojErr
optional double alt_reproj_err = 5;- Returns:
- the altReprojErr
-
setAltReprojErr
optional double alt_reproj_err = 5;- Parameters:
value- the altReprojErr to set- Returns:
- this
-
hasAmbiguity
optional double ambiguity = 6;- Returns:
- whether the ambiguity field is set
-
clearAmbiguity
optional double ambiguity = 6;- Returns:
- this
-
getAmbiguity
optional double ambiguity = 6;- Returns:
- the ambiguity
-
setAmbiguity
optional double ambiguity = 6;- Parameters:
value- the ambiguity to set- Returns:
- this
-
hasBest
optional .wpi.proto.ProtobufTransform3d best = 2;- Returns:
- whether the best field is set
-
clearBest
optional .wpi.proto.ProtobufTransform3d best = 2;- Returns:
- this
-
getBest
optional .wpi.proto.ProtobufTransform3d best = 2;This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableBest()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableBest
optional .wpi.proto.ProtobufTransform3d best = 2;This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
setBest
optional .wpi.proto.ProtobufTransform3d best = 2;- Parameters:
value- the best to set- Returns:
- this
-
hasAlt
optional .wpi.proto.ProtobufTransform3d alt = 4;- Returns:
- whether the alt field is set
-
clearAlt
optional .wpi.proto.ProtobufTransform3d alt = 4;- Returns:
- this
-
getAlt
optional .wpi.proto.ProtobufTransform3d alt = 4;This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableAlt()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableAlt
optional .wpi.proto.ProtobufTransform3d alt = 4;This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
setAlt
optional .wpi.proto.ProtobufTransform3d alt = 4;- Parameters:
value- the alt to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
parseFrom
public static Photon.ProtobufPNPResult parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Photon.ProtobufPNPResult parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Photon.ProtobufPNPResult parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufPNPResult messages
-
getDescriptor
- Returns:
- this type's descriptor.
-