Class Pose3dProto

java.lang.Object
org.wpilib.math.geometry.proto.Pose3dProto
All Implemented Interfaces:
Protobuf<Pose3d, ProtobufPose3d>

public final class Pose3dProto extends Object implements Protobuf<Pose3d, ProtobufPose3d>
  • Constructor Details

    • Pose3dProto

      public Pose3dProto()
  • Method Details

    • getTypeClass

      public Class<Pose3d> getTypeClass()
      Description copied from interface: Protobuf
      Gets the Class object for the stored value.
      Specified by:
      getTypeClass in interface Protobuf<Pose3d, ProtobufPose3d>
      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<Pose3d, ProtobufPose3d>
      Returns:
      descriptor
    • createMessage

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

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

      public void pack(ProtobufPose3d msg, Pose3d 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<Pose3d, ProtobufPose3d>
      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<Pose3d, ProtobufPose3d>
      Returns:
      True if object is immutable