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
-
Method Summary
Modifier and Type Method Description Kinematics.ProtobufSwerveDriveKinematics
addAllModules(Geometry2D.ProtobufTranslation2d... values)
repeated .wpi.proto.ProtobufTranslation2d modules = 1;
Kinematics.ProtobufSwerveDriveKinematics
addModules(Geometry2D.ProtobufTranslation2d value)
repeated .wpi.proto.ProtobufTranslation2d modules = 1;
Kinematics.ProtobufSwerveDriveKinematics
clear()
Kinematics.ProtobufSwerveDriveKinematics
clearModules()
repeated .wpi.proto.ProtobufTranslation2d modules = 1;
Kinematics.ProtobufSwerveDriveKinematics
clearQuick()
Kinematics.ProtobufSwerveDriveKinematics
clone()
protected int
computeSerializedSize()
Kinematics.ProtobufSwerveDriveKinematics
copyFrom(Kinematics.ProtobufSwerveDriveKinematics other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Kinematics.ProtobufSwerveDriveKinematics>
getFactory()
us.hebi.quickbuf.RepeatedMessage<Geometry2D.ProtobufTranslation2d>
getModules()
repeated .wpi.proto.ProtobufTranslation2d modules = 1;
This method returns the internal storage object without modifying any has state.us.hebi.quickbuf.RepeatedMessage<Geometry2D.ProtobufTranslation2d>
getMutableModules()
repeated .wpi.proto.ProtobufTranslation2d modules = 1;
This method returns the internal storage object and sets the corresponding has state.boolean
hasModules()
repeated .wpi.proto.ProtobufTranslation2d modules = 1;
boolean
isEmpty()
Kinematics.ProtobufSwerveDriveKinematics
mergeFrom(Kinematics.ProtobufSwerveDriveKinematics other)
Kinematics.ProtobufSwerveDriveKinematics
mergeFrom(us.hebi.quickbuf.JsonSource input)
Kinematics.ProtobufSwerveDriveKinematics
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Kinematics.ProtobufSwerveDriveKinematics
newInstance()
static Kinematics.ProtobufSwerveDriveKinematics
parseFrom(byte[] data)
static Kinematics.ProtobufSwerveDriveKinematics
parseFrom(us.hebi.quickbuf.JsonSource input)
static Kinematics.ProtobufSwerveDriveKinematics
parseFrom(us.hebi.quickbuf.ProtoSource input)
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
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:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
mergeFrom
public Kinematics.ProtobufSwerveDriveKinematics mergeFrom(Kinematics.ProtobufSwerveDriveKinematics other)- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
mergeFrom
public Kinematics.ProtobufSwerveDriveKinematics mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
- Throws:
IOException
-
mergeFrom
public Kinematics.ProtobufSwerveDriveKinematics mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Kinematics.ProtobufSwerveDriveKinematics>
-
isEmpty
- Overrides:
isEmpty
in 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.
-