Class Pose2dProto

java.lang.Object
org.wpilib.math.geometry.proto.Pose2dProto
All Implemented Interfaces:
Protobuf<Pose2d, ProtobufPose2d>

public final class Pose2dProto extends Object implements Protobuf<Pose2d, ProtobufPose2d>
  • Constructor Details

    • Pose2dProto

      public Pose2dProto()
  • Method Details

    • getTypeClass

      public Class<Pose2d> getTypeClass()
      Description copied from interface: Protobuf
      Gets the Class object for the stored value.
      Specified by:
      getTypeClass in interface Protobuf<Pose2d, ProtobufPose2d>
      Returns:
      Class
    • getDescriptor

      public us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Description copied from interface: Protobuf
      Gets the protobuf descriptor.
      Specified by:
      getDescriptor in interface Protobuf<Pose2d, ProtobufPose2d>
      Returns:
      descriptor
    • createMessage

      public ProtobufPose2d createMessage()
      Description copied from interface: Protobuf
      Creates protobuf message.
      Specified by:
      createMessage in interface Protobuf<Pose2d, ProtobufPose2d>
      Returns:
      protobuf message
    • unpack

      public Pose2d unpack(ProtobufPose2d msg)
      Description copied from interface: Protobuf
      Deserializes an object from a protobuf message.
      Specified by:
      unpack in interface Protobuf<Pose2d, ProtobufPose2d>
      Parameters:
      msg - protobuf message
      Returns:
      New object
    • pack

      public void pack(ProtobufPose2d msg, Pose2d 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 interface Protobuf<Pose2d, ProtobufPose2d>
      Parameters:
      msg - protobuf message
      value - object to serialize
    • isImmutable

      public boolean 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 interface Protobuf<Pose2d, ProtobufPose2d>
      Returns:
      True if object is immutable