Package edu.wpi.first.math.proto
Class Kinematics.ProtobufDifferentialDriveWheelPositions
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
edu.wpi.first.math.proto.Kinematics.ProtobufDifferentialDriveWheelPositions
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Kinematics
public static final class Kinematics.ProtobufDifferentialDriveWheelPositions
extends us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
implements Cloneable
Protobuf type
ProtobufDifferentialDriveWheelPositions
-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName
-
Method Summary
Modifier and TypeMethodDescriptionclear()
optional double left = 1;
optional double right = 2;
clone()
protected int
boolean
static us.hebi.quickbuf.Descriptors.Descriptor
static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufDifferentialDriveWheelPositions>
double
getLeft()
optional double left = 1;
double
getRight()
optional double right = 2;
boolean
hasLeft()
optional double left = 1;
boolean
hasRight()
optional double right = 2;
boolean
isEmpty()
mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) parseFrom
(byte[] data) parseFrom
(us.hebi.quickbuf.JsonSource input) parseFrom
(us.hebi.quickbuf.ProtoSource input) setLeft
(double value) optional double left = 1;
setRight
(double value) optional double right = 2;
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
ProtobufDifferentialDriveWheelPositions
-
hasLeft
optional double left = 1;
- Returns:
- whether the left field is set
-
clearLeft
optional double left = 1;
- Returns:
- this
-
getLeft
optional double left = 1;
- Returns:
- the left
-
setLeft
optional double left = 1;
- Parameters:
value
- the left to set- Returns:
- this
-
hasRight
optional double right = 2;
- Returns:
- whether the right field is set
-
clearRight
optional double right = 2;
- Returns:
- this
-
getRight
optional double right = 2;
- Returns:
- the right
-
setRight
optional double right = 2;
- Parameters:
value
- the right to set- Returns:
- this
-
copyFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions copyFrom(Kinematics.ProtobufDifferentialDriveWheelPositions other) - Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
mergeFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions mergeFrom(Kinematics.ProtobufDifferentialDriveWheelPositions other) - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
mergeFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
parseFrom
public static Kinematics.ProtobufDifferentialDriveWheelPositions parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Kinematics.ProtobufDifferentialDriveWheelPositions parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Kinematics.ProtobufDifferentialDriveWheelPositions parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
public static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufDifferentialDriveWheelPositions> getFactory()- Returns:
- factory for creating ProtobufDifferentialDriveWheelPositions messages
-
getDescriptor
- Returns:
- this type's descriptor.
-