Class DifferentialDriveWheelSpeedsProto
java.lang.Object
edu.wpi.first.math.kinematics.proto.DifferentialDriveWheelSpeedsProto
- All Implemented Interfaces:
Protobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
public class DifferentialDriveWheelSpeedsProto extends Object implements Protobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
-
Constructor Summary
Constructors Constructor Description DifferentialDriveWheelSpeedsProto()
-
Method Summary
Modifier and Type Method Description Kinematics.ProtobufDifferentialDriveWheelSpeeds
createMessage()
Creates protobuf message.us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
Gets the protobuf descriptor.Class<DifferentialDriveWheelSpeeds>
getTypeClass()
Gets the Class object for the stored value.void
pack(Kinematics.ProtobufDifferentialDriveWheelSpeeds msg, DifferentialDriveWheelSpeeds value)
Copies the object contents into a protobuf message.DifferentialDriveWheelSpeeds
unpack(Kinematics.ProtobufDifferentialDriveWheelSpeeds msg)
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
forEachDescriptor, getNested, getTypeString, unpackInto
-
Constructor Details
-
Method Details
-
getTypeClass
Description copied from interface:Protobuf
Gets the Class object for the stored value.- Specified by:
getTypeClass
in interfaceProtobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
- Returns:
- Class
-
getDescriptor
Description copied from interface:Protobuf
Gets the protobuf descriptor.- Specified by:
getDescriptor
in interfaceProtobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
- Returns:
- descriptor
-
createMessage
Description copied from interface:Protobuf
Creates protobuf message.- Specified by:
createMessage
in interfaceProtobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
- Returns:
- protobuf message
-
unpack
Description copied from interface:Protobuf
Deserializes an object from a protobuf message.- Specified by:
unpack
in interfaceProtobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
- Parameters:
msg
- protobuf message- Returns:
- New object
-
pack
public void pack(Kinematics.ProtobufDifferentialDriveWheelSpeeds msg, DifferentialDriveWheelSpeeds value)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.- Specified by:
pack
in interfaceProtobuf<DifferentialDriveWheelSpeeds,Kinematics.ProtobufDifferentialDriveWheelSpeeds>
- Parameters:
msg
- protobuf messagevalue
- object to serialize
-