Class ProtobufHolonomicSample

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

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

    • newInstance

      public static ProtobufHolonomicSample newInstance()
      Returns:
      a new empty instance of ProtobufHolonomicSample
    • hasTime

      public boolean hasTime()
      optional double time = 1;
      Returns:
      whether the time field is set
    • clearTime

      public ProtobufHolonomicSample clearTime()
      optional double time = 1;
      Returns:
      this
    • getTime

      public double getTime()
      optional double time = 1;
      Returns:
      the time
    • setTime

      public ProtobufHolonomicSample setTime(double value)
      optional double time = 1;
      Parameters:
      value - the time to set
      Returns:
      this
    • hasPose

      public boolean hasPose()
      optional .wpi.proto.ProtobufPose2d pose = 2;
      Returns:
      whether the pose field is set
    • clearPose

      public ProtobufHolonomicSample clearPose()
      optional .wpi.proto.ProtobufPose2d pose = 2;
      Returns:
      this
    • getPose

      public ProtobufPose2d getPose()
      optional .wpi.proto.ProtobufPose2d pose = 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 getMutablePose() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutablePose

      public ProtobufPose2d getMutablePose()
      optional .wpi.proto.ProtobufPose2d pose = 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
    • setPose

      public ProtobufHolonomicSample setPose(ProtobufPose2d value)
      optional .wpi.proto.ProtobufPose2d pose = 2;
      Parameters:
      value - the pose to set
      Returns:
      this
    • hasVelocities

      public boolean hasVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3;
      Returns:
      whether the velocities field is set
    • clearVelocities

      public ProtobufHolonomicSample clearVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3;
      Returns:
      this
    • getVelocities

      public ProtobufChassisVelocities getVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3; 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 getMutableVelocities() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableVelocities

      public ProtobufChassisVelocities getMutableVelocities()
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3; 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
    • setVelocities

      public ProtobufHolonomicSample setVelocities(ProtobufChassisVelocities value)
      optional .wpi.proto.ProtobufChassisVelocities velocities = 3;
      Parameters:
      value - the velocities to set
      Returns:
      this
    • hasAccelerations

      public boolean hasAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;
      Returns:
      whether the accelerations field is set
    • clearAccelerations

      public ProtobufHolonomicSample clearAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;
      Returns:
      this
    • getAccelerations

      public ProtobufChassisAccelerations getAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4; 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 getMutableAccelerations() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableAccelerations

      public ProtobufChassisAccelerations getMutableAccelerations()
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4; 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
    • setAccelerations

      public ProtobufHolonomicSample setAccelerations(ProtobufChassisAccelerations value)
      optional .wpi.proto.ProtobufChassisAccelerations accelerations = 4;
      Parameters:
      value - the accelerations to set
      Returns:
      this
    • copyFrom

      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
    • mergeFrom

      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<ProtobufHolonomicSample>
    • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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