Package edu.wpi.first.math.proto
Class Kinematics.ProtobufChassisSpeeds
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
edu.wpi.first.math.proto.Kinematics.ProtobufChassisSpeeds
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Kinematics
public static final class Kinematics.ProtobufChassisSpeeds
extends us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
implements Cloneable
Protobuf type
ProtobufChassisSpeeds-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()optional double omega = 3;clearVx()optional double vx = 1;clearVy()optional double vy = 2;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufChassisSpeeds>doublegetOmega()optional double omega = 3;doublegetVx()optional double vx = 1;doublegetVy()optional double vy = 2;booleanhasOmega()optional double omega = 3;booleanhasVx()optional double vx = 1;booleanhasVy()optional double vy = 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) setOmega(double value) optional double omega = 3;setVx(double value) optional double vx = 1;setVy(double value) optional double vy = 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
ProtobufChassisSpeeds
-
hasVx
optional double vx = 1;- Returns:
- whether the vx field is set
-
clearVx
optional double vx = 1;- Returns:
- this
-
getVx
optional double vx = 1;- Returns:
- the vx
-
setVx
optional double vx = 1;- Parameters:
value- the vx to set- Returns:
- this
-
hasVy
optional double vy = 2;- Returns:
- whether the vy field is set
-
clearVy
optional double vy = 2;- Returns:
- this
-
getVy
optional double vy = 2;- Returns:
- the vy
-
setVy
optional double vy = 2;- Parameters:
value- the vy to set- Returns:
- this
-
hasOmega
optional double omega = 3;- Returns:
- whether the omega field is set
-
clearOmega
optional double omega = 3;- Returns:
- this
-
getOmega
optional double omega = 3;- Returns:
- the omega
-
setOmega
optional double omega = 3;- Parameters:
value- the omega to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
mergeFrom
public Kinematics.ProtobufChassisSpeeds mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufChassisSpeeds mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
parseFrom
public static Kinematics.ProtobufChassisSpeeds parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Kinematics.ProtobufChassisSpeeds parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Kinematics.ProtobufChassisSpeeds parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufChassisSpeeds messages
-
getDescriptor
- Returns:
- this type's descriptor.
-