Package edu.wpi.first.math.proto
Class VectorProto<R extends Num>
java.lang.Object
edu.wpi.first.math.proto.VectorProto<R>
- All Implemented Interfaces:
Protobuf<Vector<R>,
Wpimath.ProtobufVector>
public final class VectorProto<R extends Num>
extends Object
implements Protobuf<Vector<R>,Wpimath.ProtobufVector>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates protobuf message.us.hebi.quickbuf.Descriptors.Descriptor
Gets the protobuf descriptor.Gets the Class object for the stored value.void
pack
(Wpimath.ProtobufVector msg, Vector<R> 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, wait
Methods inherited from interface edu.wpi.first.util.protobuf.Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, isImmutable, unpackInto
-
Constructor Details
-
VectorProto
Constructs theProtobuf
implementation.- Parameters:
rows
- The number of rows of the vectors this serializer processes.
-
-
Method Details
-
getTypeClass
Description copied from interface:Protobuf
Gets the Class object for the stored value.- Specified by:
getTypeClass
in interfaceProtobuf<Vector<R extends Num>,
Wpimath.ProtobufVector> - Returns:
- Class
-
getDescriptor
Description copied from interface:Protobuf
Gets the protobuf descriptor.- Specified by:
getDescriptor
in interfaceProtobuf<Vector<R extends Num>,
Wpimath.ProtobufVector> - Returns:
- descriptor
-
createMessage
Description copied from interface:Protobuf
Creates protobuf message.- Specified by:
createMessage
in interfaceProtobuf<Vector<R extends Num>,
Wpimath.ProtobufVector> - Returns:
- protobuf message
-
unpack
Description copied from interface:Protobuf
Deserializes an object from a protobuf message. -
pack
Description copied from interface:Protobuf
Copies the object contents into a protobuf message. Implementations should call either msg.setMember(member) or member.copyToProto(msg.getMutableMember()) for each member.
-