holoscan::Pose2
holoscan::Pose2
Class representing 2D transformations (rigid body motion in 2D).
This class represents elements of the SE(2) group, which combines 2D rotations and translations. Each pose consists of a rotation component (SO2) and a translation vector in 2D space.
Template parameters
Scalar type (typically float or double).
Methods
inverse
Get the inverse transformation.
Returns: Inverse transformation.
matrix
Get the 3×3 homogeneous transformation matrix representation.
Returns: 3×3 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.
pow
Compute the power of the transformation.
This computes the transformation raised to the given exponent using exponential coordinates and matrix exponentiation.
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 angle in radians.
from_xy_a
Create a pose from position and angle components.
Returns: Pose with specified translation and rotation.
Parameters
X component of translation.
Y component of translation.
Rotation angle in radians.
from_matrix
Create a pose from a 3×3 transformation matrix.
Returns: Pose represented by the matrix.
Parameters
3×3 Homogeneous transformation matrix.