Class Pose3dStruct

java.lang.Object
edu.wpi.first.math.geometry.struct.Pose3dStruct
All Implemented Interfaces:
Struct<Pose3d>

public class Pose3dStruct
extends Object
implements Struct<Pose3d>
  • Constructor Details

  • Method Details

    • getTypeClass

      Description copied from interface: Struct
      Gets the Class object for the stored value.
      Specified by:
      getTypeClass in interface Struct<Pose3d>
      Returns:
      Class
    • getTypeString

      Description copied from interface: Struct
      Gets the type string (e.g. for NetworkTables). This should be globally unique and start with "struct:".
      Specified by:
      getTypeString in interface Struct<Pose3d>
      Returns:
      type string
    • getSize

      public int getSize()
      Description copied from interface: Struct
      Gets the serialized size (in bytes). This should always be a constant.
      Specified by:
      getSize in interface Struct<Pose3d>
      Returns:
      serialized size
    • getSchema

      public String getSchema()
      Description copied from interface: Struct
      Gets the schema.
      Specified by:
      getSchema in interface Struct<Pose3d>
      Returns:
      schema
    • getNested

      public Struct<?>[] getNested()
      Description copied from interface: Struct
      Gets the list of struct types referenced by this struct.
      Specified by:
      getNested in interface Struct<Pose3d>
      Returns:
      list of struct types
    • unpack

      public Pose3d unpack​(ByteBuffer bb)
      Description copied from interface: Struct
      Deserializes an object from a raw struct serialized ByteBuffer starting at the current position. Will increment the ByteBuffer position by getStructSize() bytes. Will not otherwise modify the ByteBuffer (e.g. byte order will not be changed).
      Specified by:
      unpack in interface Struct<Pose3d>
      Parameters:
      bb - ByteBuffer
      Returns:
      New object
    • pack

      public void pack​(ByteBuffer bb, Pose3d value)
      Description copied from interface: Struct
      Puts object contents to a ByteBuffer starting at the current position. Will increment the ByteBuffer position by getStructSize() bytes. Will not otherwise modify the ByteBuffer (e.g. byte order will not be changed).
      Specified by:
      pack in interface Struct<Pose3d>
      Parameters:
      bb - ByteBuffer
      value - object to serialize