Class ProtobufPose2d

java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
org.wpilib.math.geometry.proto.detail.ProtobufPose2d
All Implemented Interfaces:
Cloneable

public final class ProtobufPose2d extends us.hebi.quickbuf.ProtoMessage<ProtobufPose2d> implements Cloneable
Protobuf type ProtobufPose2d
  • Method Details

    • newInstance

      public static ProtobufPose2d newInstance()
      Returns:
      a new empty instance of ProtobufPose2d
    • hasTranslation

      public boolean hasTranslation()
      optional .wpi.proto.ProtobufTranslation2d translation = 1;
      Returns:
      whether the translation field is set
    • clearTranslation

      public ProtobufPose2d clearTranslation()
      optional .wpi.proto.ProtobufTranslation2d translation = 1;
      Returns:
      this
    • getTranslation

      public ProtobufTranslation2d getTranslation()
      optional .wpi.proto.ProtobufTranslation2d translation = 1; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableTranslation() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableTranslation

      public ProtobufTranslation2d getMutableTranslation()
      optional .wpi.proto.ProtobufTranslation2d translation = 1; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setTranslation

      public ProtobufPose2d setTranslation(ProtobufTranslation2d value)
      optional .wpi.proto.ProtobufTranslation2d translation = 1;
      Parameters:
      value - the translation to set
      Returns:
      this
    • hasRotation

      public boolean hasRotation()
      optional .wpi.proto.ProtobufRotation2d rotation = 2;
      Returns:
      whether the rotation field is set
    • clearRotation

      public ProtobufPose2d clearRotation()
      optional .wpi.proto.ProtobufRotation2d rotation = 2;
      Returns:
      this
    • getRotation

      public ProtobufRotation2d getRotation()
      optional .wpi.proto.ProtobufRotation2d rotation = 2; This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. Use getMutableRotation() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableRotation

      public ProtobufRotation2d getMutableRotation()
      optional .wpi.proto.ProtobufRotation2d rotation = 2; This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.
      Returns:
      internal storage object for modifications
    • setRotation

      public ProtobufPose2d setRotation(ProtobufRotation2d value)
      optional .wpi.proto.ProtobufRotation2d rotation = 2;
      Parameters:
      value - the rotation to set
      Returns:
      this
    • copyFrom

      public ProtobufPose2d copyFrom(ProtobufPose2d other)
      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • mergeFrom

      public ProtobufPose2d mergeFrom(ProtobufPose2d other)
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • clear

      public ProtobufPose2d clear()
      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • clearQuick

      public ProtobufPose2d clearQuick()
      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • mergeFrom

      public ProtobufPose2d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
      Throws:
      IOException
    • mergeFrom

      public ProtobufPose2d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
      Throws:
      IOException
    • clone

      public ProtobufPose2d clone()
      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.hebi.quickbuf.ProtoMessage<ProtobufPose2d>
    • parseFrom

      public static ProtobufPose2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException
      Throws:
      us.hebi.quickbuf.InvalidProtocolBufferException
    • parseFrom

      public static ProtobufPose2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ProtobufPose2d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Throws:
      IOException
    • getFactory

      public static us.hebi.quickbuf.MessageFactory<ProtobufPose2d> getFactory()
      Returns:
      factory for creating ProtobufPose2d messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.