Valkyrie 2026
Loading...
Searching...
No Matches
valor::geometry::Transform3d Class Reference

Represents a relative 3D transformation (translation + rotation). More...

#include <valkyrie/util/geometry/Pose.h>

Inheritance diagram for valor::geometry::Transform3d:
valor::EigenUnit::NamedPhysicalMatrix< Transform3d, EigenUnit::PhysicalMatrix< HomogeneousVector3d, HomogeneousVector3d > > valor::EigenUnit::UnitMatrix< typename VecOut::UnitTuple, typename VecIn::UnitTuple >

Public Member Functions

 Transform3d (const BaseMatrix &b)
 Transform3d (Translation3d trans, Rotation3d rot)
 Construct a Transform3d from a translation and rotation.
 Transform3d (const Transform2d &t)
 Construct a Transform3d from a Transform2d in the X-Y plane.
 Transform3d (frc::Translation3d frcTrans, frc::Rotation3d frcRot)
 Construct a Transform3d from an frc::Translation3d and frc::Rotation3d.
 Transform3d (frc::Transform3d frcTransform)
 Construct a Transform3d from an frc::Transform3d.
 Transform3d (frc::Transform2d frcTransform)
 Construct a Transform3d from an frc::Transform2d, lifting into 3D. Z is set to zero and pitch and roll are set to zero.
Translation3d Translation () const
Rotation3d Rotation () const
Transform3d Inverse () const
 Invert the transform.
Public Member Functions inherited from valor::EigenUnit::NamedPhysicalMatrix< Transform3d, EigenUnit::PhysicalMatrix< HomogeneousVector3d, HomogeneousVector3d > >
 NamedPhysicalMatrix (const EigenUnit::PhysicalMatrix< HomogeneousVector3d, HomogeneousVector3d > &base)
Transform3d Inverse () const
auto Block () const

Static Public Member Functions

static Transform3d Identity ()
 The identity transform.

Detailed Description

Represents a relative 3D transformation (translation + rotation).

Internally stored as a 4x4 homogeneous matrix.

Constructor & Destructor Documentation

◆ Transform3d() [1/5]

valor::geometry::Transform3d::Transform3d ( Translation3d trans,
Rotation3d rot )
inline

Construct a Transform3d from a translation and rotation.

Parameters
transThe translation component.
rotThe rotation component.

◆ Transform3d() [2/5]

valor::geometry::Transform3d::Transform3d ( const Transform2d & t)
inlineexplicit

Construct a Transform3d from a Transform2d in the X-Y plane.

Parameters
tThe 2D transform.

◆ Transform3d() [3/5]

valor::geometry::Transform3d::Transform3d ( frc::Translation3d frcTrans,
frc::Rotation3d frcRot )
inlineexplicit

Construct a Transform3d from an frc::Translation3d and frc::Rotation3d.

Parameters
frcTransThe frc translation component.
frcRotThe frc rotation component.

◆ Transform3d() [4/5]

valor::geometry::Transform3d::Transform3d ( frc::Transform3d frcTransform)
inlineexplicit

Construct a Transform3d from an frc::Transform3d.

Parameters
frcTransformThe frc transform to convert.

◆ Transform3d() [5/5]

valor::geometry::Transform3d::Transform3d ( frc::Transform2d frcTransform)
inlineexplicit

Construct a Transform3d from an frc::Transform2d, lifting into 3D. Z is set to zero and pitch and roll are set to zero.

Parameters
frcTransformThe frc 2D transform to lift into 3D.

The documentation for this class was generated from the following file:
  • src/main/include/valkyrie/util/geometry/Pose.h