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 intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufDifferentialDriveWheelPositions>doublegetLeft()optional double left = 1;doublegetRight()optional double right = 2;booleanhasLeft()optional double left = 1;booleanhasRight()optional double right = 2;booleanisEmpty()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;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
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:
copyFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
mergeFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions mergeFrom(Kinematics.ProtobufDifferentialDriveWheelPositions other) - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
mergeFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufDifferentialDriveWheelPositions mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufDifferentialDriveWheelPositions>
-
isEmpty
- Overrides:
isEmptyin 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.
-