holoscan::Pose3
holoscan::Pose3
Class representing 3D transformations (rigid body motion in 3D).
This class represents elements of the SE(3) group, which combines 3D rotations and translations. Each pose consists of a rotation component (SO3) and a translation vector in 3D space.
Template parameters
Scalar type (typically float or double).
Constructors
Pose3
Default
Copy
Default constructor creates identity pose.
Methods
inverse
Get the inverse transformation.
Returns: Inverse transformation.
matrix
Get the 4×4 homogeneous transformation matrix representation.
Returns: 4×4 transformation matrix.
cast
Const (1)
Const (2)
Cast to a different scalar type.
Returns: Pose cast to the target type.
Template parameters
Target scalar type.
to_pose2_xy
Convert to a 2D pose in the XY plane.
Returns: 2D pose representing the XY components of this 3D pose.
pow
Compute the power of the transformation.
This computes the transformation raised to the given exponent using exponential coordinates and matrix exponentiation. The implementation handles the general case by aligning the rotation axis with the Z-axis.
Returns: Transformation raised to the given power.
Parameters
Power to raise the transformation to.
Static methods
identity
Create the identity transformation.
Returns: Identity transformation (no rotation or translation).
from_translation
Create a pure translation transformation
Overload 2
Create a pure translation transformation.
Returns: Translation-only transformation.
Parameters
Translation vector.
from_rotation
Create a pure rotation transformation.
Returns: Rotation-only transformation.
Parameters
Rotation axis (will be normalized internally).
Rotation angle in radians.
from_pose2_xy
Create a 3D pose from a 2D pose in the XY plane.
Returns: 3D pose with Z translation = 0 and rotation around Z-axis.
Parameters
2D pose in the XY plane.
from_matrix
Create a pose from a 4×4 transformation matrix.
Returns: Pose represented by the matrix.
Parameters
4×4 Homogeneous transformation matrix.