Class RotTrlTransform3d

java.lang.Object
org.photonvision.estimation.RotTrlTransform3d

public class RotTrlTransform3d extends Object
Represents a transformation that first rotates a pose around the origin, and then translates it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs the identity transform -- maps an initial pose to itself.
    RotTrlTransform3d(org.wpilib.math.geometry.Pose3d initial, org.wpilib.math.geometry.Pose3d last)
     
    RotTrlTransform3d(org.wpilib.math.geometry.Rotation3d rot, org.wpilib.math.geometry.Translation3d trl)
    A rotation-translation transformation.
    RotTrlTransform3d(org.wpilib.math.geometry.Transform3d trf)
    Creates a rotation-translation transformation from a Transform3d.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.wpilib.math.geometry.Pose3d
    apply(org.wpilib.math.geometry.Pose3d pose)
     
    org.wpilib.math.geometry.Rotation3d
    apply(org.wpilib.math.geometry.Rotation3d rot)
     
    org.wpilib.math.geometry.Translation3d
    apply(org.wpilib.math.geometry.Translation3d trl)
     
    List<org.wpilib.math.geometry.Pose3d>
    applyPoses(List<org.wpilib.math.geometry.Pose3d> poses)
     
    List<org.wpilib.math.geometry.Rotation3d>
    applyRots(List<org.wpilib.math.geometry.Rotation3d> rots)
     
    List<org.wpilib.math.geometry.Translation3d>
    applyTrls(List<org.wpilib.math.geometry.Translation3d> trls)
     
    org.wpilib.math.geometry.Rotation3d
    The rotation component of this transformation
    org.wpilib.math.geometry.Transform3d
    This transformation as a Transform3d (as if of the origin)
    org.wpilib.math.geometry.Translation3d
    The translation component of this transformation
    The inverse of this transformation.
    makeRelativeTo(org.wpilib.math.geometry.Pose3d pose)
    The rotation-translation transformation that makes poses in the world consider this pose as the new origin, or change the basis to this pose.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RotTrlTransform3d

      public RotTrlTransform3d(org.wpilib.math.geometry.Rotation3d rot, org.wpilib.math.geometry.Translation3d trl)
      A rotation-translation transformation.

      Applying this RotTrlTransform3d to poses will preserve their current origin-to-pose transform as if the origin was transformed by these components instead.

      Parameters:
      rot - The rotation component
      trl - The translation component
    • RotTrlTransform3d

      public RotTrlTransform3d(org.wpilib.math.geometry.Pose3d initial, org.wpilib.math.geometry.Pose3d last)
    • RotTrlTransform3d

      public RotTrlTransform3d(org.wpilib.math.geometry.Transform3d trf)
      Creates a rotation-translation transformation from a Transform3d.

      Applying this RotTrlTransform3d to poses will preserve their current origin-to-pose transform as if the origin was transformed by trf instead.

      Parameters:
      trf - The origin transformation
    • RotTrlTransform3d

      Constructs the identity transform -- maps an initial pose to itself.
  • Method Details

    • makeRelativeTo

      public static RotTrlTransform3d makeRelativeTo(org.wpilib.math.geometry.Pose3d pose)
      The rotation-translation transformation that makes poses in the world consider this pose as the new origin, or change the basis to this pose.
      Parameters:
      pose - The new origin
    • inverse

      The inverse of this transformation. Applying the inverse will "undo" this transformation.
      Returns:
      The inverse transformation
    • getTransform

      public org.wpilib.math.geometry.Transform3d getTransform()
      This transformation as a Transform3d (as if of the origin)
      Returns:
      The Transform2d
    • getTranslation

      public org.wpilib.math.geometry.Translation3d getTranslation()
      The translation component of this transformation
      Returns:
      The Translation3d
    • getRotation

      public org.wpilib.math.geometry.Rotation3d getRotation()
      The rotation component of this transformation
      Returns:
      The Rotation3d
    • apply

      public org.wpilib.math.geometry.Translation3d apply(org.wpilib.math.geometry.Translation3d trl)
    • applyTrls

      public List<org.wpilib.math.geometry.Translation3d> applyTrls(List<org.wpilib.math.geometry.Translation3d> trls)
    • apply

      public org.wpilib.math.geometry.Rotation3d apply(org.wpilib.math.geometry.Rotation3d rot)
    • applyRots

      public List<org.wpilib.math.geometry.Rotation3d> applyRots(List<org.wpilib.math.geometry.Rotation3d> rots)
    • apply

      public org.wpilib.math.geometry.Pose3d apply(org.wpilib.math.geometry.Pose3d pose)
    • applyPoses

      public List<org.wpilib.math.geometry.Pose3d> applyPoses(List<org.wpilib.math.geometry.Pose3d> poses)