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 int
copyFrom
(Photon.ProtobufPNPResult other) boolean
getAlt()
optional .wpi.proto.ProtobufTransform3d alt = 4;
This method returns the internal storage object without modifying any has state.double
optional double alt_reproj_err = 5;
double
optional double ambiguity = 6;
getBest()
optional .wpi.proto.ProtobufTransform3d best = 2;
This method returns the internal storage object without modifying any has state.double
optional double best_reproj_err = 3;
static us.hebi.quickbuf.Descriptors.Descriptor
static 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.boolean
hasAlt()
optional .wpi.proto.ProtobufTransform3d alt = 4;
boolean
optional double alt_reproj_err = 5;
boolean
optional double ambiguity = 6;
boolean
hasBest()
optional .wpi.proto.ProtobufTransform3d best = 2;
boolean
optional double best_reproj_err = 3;
boolean
isEmpty()
mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) static Photon.ProtobufPNPResult
static Photon.ProtobufPNPResult
parseFrom
(byte[] data) static Photon.ProtobufPNPResult
parseFrom
(us.hebi.quickbuf.JsonSource input) static Photon.ProtobufPNPResult
parseFrom
(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;
void
writeTo
(us.hebi.quickbuf.JsonSink output) void
writeTo
(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
public boolean hasBestReprojErr()optional double best_reproj_err = 3;
- Returns:
- whether the bestReprojErr field is set
-
clearBestReprojErr
optional double best_reproj_err = 3;
- Returns:
- this
-
getBestReprojErr
public double 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
public boolean hasAltReprojErr()optional double alt_reproj_err = 5;
- Returns:
- whether the altReprojErr field is set
-
clearAltReprojErr
optional double alt_reproj_err = 5;
- Returns:
- this
-
getAltReprojErr
public double 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
public boolean hasAmbiguity()optional double ambiguity = 6;
- Returns:
- whether the ambiguity field is set
-
clearAmbiguity
optional double ambiguity = 6;
- Returns:
- this
-
getAmbiguity
public double getAmbiguity()optional double ambiguity = 6;
- Returns:
- the ambiguity
-
setAmbiguity
optional double ambiguity = 6;
- Parameters:
value
- the ambiguity to set- Returns:
- this
-
hasBest
public boolean 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
public boolean 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:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
mergeFrom
- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPNPResult>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in 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
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-