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 int
boolean
static us.hebi.quickbuf.Descriptors.Descriptor
static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufChassisSpeeds>
double
getOmega()
optional double omega = 3;
double
getVx()
optional double vx = 1;
double
getVy()
optional double vy = 2;
boolean
hasOmega()
optional double omega = 3;
boolean
hasVx()
optional double vx = 1;
boolean
hasVy()
optional double vy = 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) setOmega
(double value) optional double omega = 3;
setVx
(double value) optional double vx = 1;
setVy
(double value) optional double vy = 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
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:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
mergeFrom
public Kinematics.ProtobufChassisSpeeds mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufChassisSpeeds mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufChassisSpeeds>
-
isEmpty
- Overrides:
isEmpty
in 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.
-