Package org.photonvision.estimation
Class RotTrlTransform3d
java.lang.Object
org.photonvision.estimation.RotTrlTransform3d
Represents a transformation that first rotates a pose around the origin, and then translates it.
- 
Constructor Summary
ConstructorsConstructorDescriptionRotTrlTransform3d(Pose3d initial, Pose3d last) RotTrlTransform3d(Rotation3d rot, Translation3d trl) A rotation-translation transformation.Creates a rotation-translation transformation from a Transform3d. - 
Method Summary
Modifier and TypeMethodDescriptionapply(Rotation3d rot) apply(Translation3d trl) applyPoses(List<Pose3d> poses) applyRots(List<Rotation3d> rots) applyTrls(List<Translation3d> trls) The rotation component of this transformationThis transformation as a Transform3d (as if of the origin)The translation component of this transformationinverse()The inverse of this transformation.static RotTrlTransform3dmakeRelativeTo(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. 
- 
Constructor Details
- 
RotTrlTransform3d
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 componenttrl- The translation component
 - 
RotTrlTransform3d
 - 
RotTrlTransform3d
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
public RotTrlTransform3d() 
 - 
 - 
Method Details
- 
makeRelativeTo
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. - 
getTransform
This transformation as a Transform3d (as if of the origin) - 
getTranslation
The translation component of this transformation - 
getRotation
The rotation component of this transformation - 
apply
 - 
applyTrls
 - 
apply
 - 
applyRots
 - 
apply
 - 
applyPoses
 
 -