Class Rotation2dProto
java.lang.Object
edu.wpi.first.math.geometry.proto.Rotation2dProto
- All Implemented Interfaces:
Protobuf<Rotation2d,
Geometry2D.ProtobufRotation2d>
public class Rotation2dProto
extends Object
implements Protobuf<Rotation2d,Geometry2D.ProtobufRotation2d>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates protobuf message.us.hebi.quickbuf.Descriptors.Descriptor
Gets the protobuf descriptor.Gets the Class object for the stored value.boolean
Returns whether or not objects are immutable.void
pack
(Geometry2D.ProtobufRotation2d msg, Rotation2d 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, unpackInto
-
Constructor Details
-
Rotation2dProto
public Rotation2dProto()
-
-
Method Details
-
getTypeClass
Description copied from interface:Protobuf
Gets the Class object for the stored value.- Specified by:
getTypeClass
in interfaceProtobuf<Rotation2d,
Geometry2D.ProtobufRotation2d> - Returns:
- Class
-
getDescriptor
Description copied from interface:Protobuf
Gets the protobuf descriptor.- Specified by:
getDescriptor
in interfaceProtobuf<Rotation2d,
Geometry2D.ProtobufRotation2d> - Returns:
- descriptor
-
createMessage
Description copied from interface:Protobuf
Creates protobuf message.- Specified by:
createMessage
in interfaceProtobuf<Rotation2d,
Geometry2D.ProtobufRotation2d> - Returns:
- protobuf message
-
unpack
Description copied from interface:Protobuf
Deserializes an object from a protobuf message.- Specified by:
unpack
in interfaceProtobuf<Rotation2d,
Geometry2D.ProtobufRotation2d> - Parameters:
msg
- protobuf message- Returns:
- New object
-
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.- Specified by:
pack
in interfaceProtobuf<Rotation2d,
Geometry2D.ProtobufRotation2d> - Parameters:
msg
- protobuf messagevalue
- object to serialize
-
isImmutable
Description copied from interface:Protobuf
Returns whether or not objects are immutable. Immutable objects must also be comparable using the equals() method. Default implementation returns false.- Specified by:
isImmutable
in interfaceProtobuf<Rotation2d,
Geometry2D.ProtobufRotation2d> - Returns:
- True if object is immutable
-