Package edu.wpi.first.math.system.proto
Class LinearSystemProto<States extends Num,Inputs extends Num,Outputs extends Num>
java.lang.Object
edu.wpi.first.math.system.proto.LinearSystemProto<States,Inputs,Outputs>
- All Implemented Interfaces:
Protobuf<LinearSystem<States,Inputs, Outputs>, System.ProtobufLinearSystem>
public final class LinearSystemProto<States extends Num,Inputs extends Num,Outputs extends Num>
extends Object
implements Protobuf<LinearSystem<States,Inputs,Outputs>,System.ProtobufLinearSystem>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates protobuf message.us.hebi.quickbuf.Descriptors.DescriptorGets the protobuf descriptor.Gets the Class object for the stored value.voidpack(System.ProtobufLinearSystem msg, LinearSystem<States, Inputs, Outputs> value) Copies the object contents into a protobuf message.Deserializes an object from a protobuf message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.util.protobuf.Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, isImmutable, unpackInto
-
Constructor Details
-
LinearSystemProto
Constructs theProtobufimplementation.- Parameters:
states- The number of states of the linear systems this serializer processes.inputs- The number of inputs of the linear systems this serializer processes.outputs- The number of outputs of the linear systems this serializer processes.
-
-
Method Details
-
getTypeClass
Description copied from interface:ProtobufGets the Class object for the stored value. -
getDescriptor
Description copied from interface:ProtobufGets the protobuf descriptor. -
createMessage
Description copied from interface:ProtobufCreates protobuf message. -
unpack
Description copied from interface:ProtobufDeserializes an object from a protobuf message. -
pack
Description copied from interface:ProtobufCopies the object contents into a protobuf message. Implementations should call either msg.setMember(member) or member.copyToProto(msg.getMutableMember()) for each member.
-