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
-
Method Summary
Modifier and Type Method Description Kinematics.ProtobufChassisSpeeds
clear()
Kinematics.ProtobufChassisSpeeds
clearOmega()
optional double omega = 3;
Kinematics.ProtobufChassisSpeeds
clearQuick()
Kinematics.ProtobufChassisSpeeds
clearVx()
optional double vx = 1;
Kinematics.ProtobufChassisSpeeds
clearVy()
optional double vy = 2;
Kinematics.ProtobufChassisSpeeds
clone()
protected int
computeSerializedSize()
Kinematics.ProtobufChassisSpeeds
copyFrom(Kinematics.ProtobufChassisSpeeds other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufChassisSpeeds>
getFactory()
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()
Kinematics.ProtobufChassisSpeeds
mergeFrom(Kinematics.ProtobufChassisSpeeds other)
Kinematics.ProtobufChassisSpeeds
mergeFrom(us.hebi.quickbuf.JsonSource input)
Kinematics.ProtobufChassisSpeeds
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Kinematics.ProtobufChassisSpeeds
newInstance()
static Kinematics.ProtobufChassisSpeeds
parseFrom(byte[] data)
static Kinematics.ProtobufChassisSpeeds
parseFrom(us.hebi.quickbuf.JsonSource input)
static Kinematics.ProtobufChassisSpeeds
parseFrom(us.hebi.quickbuf.ProtoSource input)
Kinematics.ProtobufChassisSpeeds
setOmega(double value)
optional double omega = 3;
Kinematics.ProtobufChassisSpeeds
setVx(double value)
optional double vx = 1;
Kinematics.ProtobufChassisSpeeds
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.
-