Package edu.wpi.first.math.proto
Class Kinematics.ProtobufSwerveDriveKinematics
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
edu.wpi.first.math.proto.Kinematics.ProtobufSwerveDriveKinematics
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Kinematics
public static final class Kinematics.ProtobufSwerveDriveKinematics
extends us.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
implements Cloneable
Protobuf type
ProtobufSwerveDriveKinematics-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionaddAllModules(Geometry2D.ProtobufTranslation2d... values) repeated .wpi.proto.ProtobufTranslation2d modules = 1;repeated .wpi.proto.ProtobufTranslation2d modules = 1;clear()repeated .wpi.proto.ProtobufTranslation2d modules = 1;clone()protected intbooleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufSwerveDriveKinematics>us.hebi.quickbuf.RepeatedMessage<Geometry2D.ProtobufTranslation2d>repeated .wpi.proto.ProtobufTranslation2d modules = 1;This method returns the internal storage object without modifying any has state.us.hebi.quickbuf.RepeatedMessage<Geometry2D.ProtobufTranslation2d>repeated .wpi.proto.ProtobufTranslation2d modules = 1;This method returns the internal storage object and sets the corresponding has state.booleanrepeated .wpi.proto.ProtobufTranslation2d modules = 1;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) 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
ProtobufSwerveDriveKinematics
-
hasModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Returns:
- whether the modules field is set
-
clearModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Returns:
- this
-
getModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableModules()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
addModules
repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Parameters:
value- the modules to add- Returns:
- this
-
addAllModules
public Kinematics.ProtobufSwerveDriveKinematics addAllModules(Geometry2D.ProtobufTranslation2d... values) repeated .wpi.proto.ProtobufTranslation2d modules = 1;- Parameters:
values- the modules to add- Returns:
- this
-
copyFrom
public Kinematics.ProtobufSwerveDriveKinematics copyFrom(Kinematics.ProtobufSwerveDriveKinematics other) - Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
mergeFrom
public Kinematics.ProtobufSwerveDriveKinematics mergeFrom(Kinematics.ProtobufSwerveDriveKinematics other) - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
mergeFrom
public Kinematics.ProtobufSwerveDriveKinematics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufSwerveDriveKinematics mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
parseFrom
public static Kinematics.ProtobufSwerveDriveKinematics parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Kinematics.ProtobufSwerveDriveKinematics parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Kinematics.ProtobufSwerveDriveKinematics parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
public static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufSwerveDriveKinematics> getFactory()- Returns:
- factory for creating ProtobufSwerveDriveKinematics messages
-
getDescriptor
- Returns:
- this type's descriptor.
-