Quaternion-Based Pose Encoding
- Quaternion-based pose encoding is a compact, singularity-free representation that uses unit quaternions for rotations and dual quaternions for full rigid-body configurations.
- It leverages the algebraic structure of quaternions to avoid gimbal lock and enable efficient, multiplicative composition of rotations and translations.
- This approach is widely applied in robotics, vision, and animation for precise pose estimation, probabilistic modeling, and differential kinematics.
Quaternion-based pose encoding denotes a family of representations in which orientation, and in many formulations the full rigid-body configuration, is parameterized by quaternions rather than Euler angles or unconstrained matrices. In its simplest form, a pose is written as translation plus a unit quaternion; in its rigid-motion extension, a unit dual quaternion couples translation and rotation in a single algebraic object so that composition remains multiplicative. Across robotics, vision, animation, uncertainty modeling, and control, the main attraction of this family is its compactness, its avoidance of Euler-angle singularities, and its close fit to the geometry of and (Blanco-Claraco, 2021, Montgomery-Smith et al., 2022).
1. Rotation encoding with unit quaternions
An ordinary quaternion is written as
with multiplication rules . Its conjugate is
and a unit quaternion satisfies
For rotation encoding, a 3D point is identified with a pure imaginary quaternion, and the rotation is applied by
The axis-angle form is standard: with a unit axis. In the “3D+Quat” pose parameterization reviewed in the tutorial, a full pose is stored as
0
where the quaternion part is always normalized; the same tutorial adopts the convention 1 to choose one representative from the usual sign ambiguity (Blanco-Claraco, 2021).
The sign ambiguity is structural rather than incidental. Because the quaternion-to-rotation map is quadratic, 2, so unit quaternions form a double cover of 3 (Sato et al., 2022). The adjugate-matrix study makes the stronger point that quaternion extraction from a rotation matrix is not globally representable as a single smooth algebraic function of the matrix entries: the inverse must instead be treated as manifold-valued and multi-branch, with different single-valued sectors selected by the adjugate construction (Hanson et al., 2022). This is one reason quaternion pipelines routinely include branch selection, sign conventions, or continuity heuristics across time.
2. From rotation to full rigid-body pose: dual quaternions
A rigid-body pose consists of a rotation and a translation, often written as 4 acting on a point 5 by
6
Composition is
7
Ordinary quaternions handle the rotational part elegantly, but a pose written simply as 8 has the composition rule
9
which is not bilinear in the data. The dual-quaternion construction addresses precisely this issue by introducing
0
with 1 and 2 ordinary quaternions. A full rigid-body pose is then encoded as the unit dual quaternion
3
where 4 is the unit rotational quaternion and 5 is the translation interpreted as a vector quaternion (Montgomery-Smith et al., 2022).
This encoding turns rigid-motion composition into dual-quaternion multiplication. If 6 and 7 encode two poses, then the composed pose is represented by 8. For a unit dual quaternion 9, the transformed point is
0
which reduces to 1 when 2. Unit dual quaternions also admit especially simple inversion,
3
and simple normalization back onto the rigid-motion manifold, which is computationally easier than projecting an arbitrary matrix onto a valid rigid transform (Montgomery-Smith et al., 2022). Closely related formulations appear in distributed camera-network localization, where a pose is written as
4
with 5 and 6, making rotation and translation one optimization variable rather than two interlaced estimators (Varotto et al., 2022).
The same algebra extends naturally to differential kinematics. In dual-quaternion form, a twist is encoded as
7
and the pose kinematics retain the familiar multiplicative form
8
This pairing of unit dual quaternions for pose and vector dual quaternions for twist is one of the main reasons the representation is attractive in robotics and mechanics (Montgomery-Smith et al., 2022).
3. Ambiguity, continuity, and probabilistic pose models
Quaternion-based pose encoding is inseparable from antipodal symmetry. Any probabilistic model that operates directly on quaternions must respect 9. The Bingham-distribution formulation for rotation estimation does exactly this by defining a density on 0 whose quadratic exponent is unchanged under 1. In that framework, the mode quaternion gives the most likely rotation, while the eigenstructure and concentration parameters encode uncertainty shape and magnitude. On YCB-Video, the best-performing parameterization in the paper is the 10D symmetric-matrix representation 2, which slightly outperforms conventional quaternion regression in the reported average AUC: 3 versus 4 on ADD and 5 versus 6 on ADD-S (Sato et al., 2022).
For 6-DoF uncertainty, the MPG framework uses dual quaternions as the pose parameterization and constructs a local Gaussian in a tangent space to the unit-quaternion sphere, combined with Euclidean translation. A rigid pose is encoded as
7
with 8 a unit quaternion and 9 a purely imaginary translation quaternion. Projecting a 6D Gaussian from the tangent space back to 0 induces a “Projected Gaussian,” and mixtures of such components are used to represent broad or multimodal pose uncertainty while preserving quaternion geometry (Feiten et al., 2017).
The continuity problem also reappears in deterministic extraction and learning. The adjugate approach argues that the correct algebraic object for inversion is not a single quaternion-valued function 1, but the rank-1 matrix 2, from which one normalizes a valid branch. This suggests that some apparently ad hoc quaternion sign-handling rules are consequences of the topology of 3 and its double cover of 4, not merely implementation detail (Hanson et al., 2022).
4. Articulated motion, sequence models, and learned pose spaces
In articulated human motion, quaternion-based pose encoding is often used not just to store rotations, but to restructure the learning problem. For deep skeletal animation, one dual-quaternion formulation represents each frame by a separate global root translation plus, for each non-root joint, a dual quaternion encoding that joint’s rotation and displacement relative to the root. The representation is explicitly root-centered and hierarchy-aware: local BVH transforms are converted into current/root-relative transforms, then into dual quaternions. Because positions are directly recoverable from the dual part through
5
the model can apply positional supervision without an external forward-kinematics layer. In the reported experiments, dual quaternions with all losses achieve the best acRNN scores overall—lowest NPSS, lowest Euclidean error, and lowest acceleration error—and on QuaterNet long horizons they reduce error at 6 ms from 7 to 8, roughly the reported 9 improvement (Andreou et al., 2021).
Recent work in sign language production uses a different articulated formulation: each bone is represented by a quaternion relative to a reference T-pose bone direction,
0
and training uses the geodesic loss
1
The model then reconstructs joint positions by recursively applying bone rotations from the root. In that study, quaternion encoding alone reduces mean bone angle error from 2 to 3, and when combined with gloss-supervised contrastive learning the model reaches 4, corresponding to the reported 5 reduction in Mean Bone Angle Error relative to the Progressive Transformers baseline (Fauré et al., 20 Aug 2025).
Quaternion-aware dynamics also appear in trajectory models. Riemannian ProMPs treat orientation trajectories as points on 6, replacing the Euclidean mean 7 by 8 and performing conditioning and blending through log, exp, and parallel transport. In the reported re-orient skill, Riemannian orientation ProMPs achieve jerkiness 9, versus 0 for Euler-angle ProMPs and 1 for unit-normalized Euclidean quaternion ProMPs, with substantially better tracking accuracy under via-point adaptation (Rozo et al., 2021). QuaMo pushes the dynamical viewpoint further by treating each joint rotation as a quaternion state evolved by a quaternion differential equation on the unit sphere. Its exact update
2
preserves the quaternion unit-sphere constraint and, in the paper’s ablations, quaternion PD outperforms Euler and axis-angle variants, with MPJPE 3 and Accel 4 versus 5 for Euler XYZ PD (Le et al., 27 Jan 2026).
A related but distinct dual-quaternion learning strategy appears in rigid-motion forecasting: one model encodes center-of-mass coordinates in the real part and joint locations relative to the center of mass in the dual part,
6
arguing that this yields both rotation and translation equivariance. On 3DPW, the reported Dual Quaternion CoRPoF reaches VIM 7 and FDE 8, compared with 9 for the real-valued CoRPoF baseline (Vieira et al., 2023).
5. Vision, estimation, control, and planning
In vision, quaternion-based pose encoding appears in both full-pose and rotation-only forms. QuEst uses a unit quaternion to encode relative camera rotation between two views, solves quartic polynomial constraints in 0, and then estimates translation and point depths in a separate linear null-space stage. Its 6-point variant is explicitly designed to remain valid for both general 3D and coplanar point configurations, unlike essential-matrix methods on critical surfaces (Fathian et al., 2017). At the opposite end of the spectrum, the monocular shoulder-based “quaternion extraction” method is not a full articulated pose code at all; it constructs a local frame from the left and right shoulders, converts the resulting 1 rotation matrix to a quaternion, and uses it as a cheap body-orientation descriptor. The paper itself emphasizes that this is a task-specific global torso/facing estimate, not a full-body kinematic encoding (Radhakrishna et al., 2023).
In estimation and feedback control, dual quaternions are used precisely because they keep translation and rotation coupled. Distributed visual-sensor-network localization represents each camera pose as a unit dual quaternion and reports a more balanced estimation error distribution between orientation and position, together with improved robustness to initial conditions, relative to a split 2 estimator (Varotto et al., 2022). Dual-quaternion visual servoing for grasping moving objects uses the pose error
3
and the logarithmic control law
4
combining it with a damped pseudoinverse and null-space term for joint-limit avoidance (Farias et al., 2021). Pose-following control likewise writes the desired pose as
5
defines the error 6, and proves an almost globally asymptotically stable control law; the qualifier “almost” is tied directly to the inherited quaternion double cover and the two equivalent equilibria 7 (Arrizabalaga et al., 2023).
The same geometric backbone is carried into filtering and planning. A distributed dual-quaternion multiplicative EKF for spacecraft pose estimation keeps the nominal pose as a unit dual quaternion, uses reduced tangent-space error coordinates in the filter state, and applies multiplicative corrections so that unit constraints are preserved after each update (Badyn et al., 2024). In motion planning, dual quaternion RRT* uses the state
8
and steers with screw linear interpolation,
9
rather than separate linear translation and SLERP; the reported comparison emphasizes enhanced pose continuity and smoother 6-DoF evolution (Stankovic et al., 19 Dec 2025). A closely related orientation-control line encodes quaternion trajectories in the tangent space at the attractor,
0
and learns a stable LPV dynamical system there; the resulting Quaternion-DS is then coupled with Euclidean position through shared SE(3) gating so that position and orientation transition coherently under perturbations (Sun et al., 2024).
6. Advantages, limits, and competing representations
The advantages claimed for quaternion-based pose encoding are consistent across subfields. Unit quaternions are compact, singularity-free for rotation, and easy to normalize; dual quaternions extend these benefits to full rigid-body motion while preserving multiplicative composition, simple inversion, and differential kinematics (Montgomery-Smith et al., 2022). In deep learning, quaternion-specific inductive bias can also be parameter-efficient: Quaternion Capsule Networks represent capsule pose as pure quaternions and child-to-parent transformations as learned unit rotor quaternions, reporting improved viewpoint generalization on smallNORB with roughly half the parameters of Matrix Capsules; on azimuth-novel viewpoints, the reported error is 1 for QCN versus 2 for Matrix Capsules EM (Özcan et al., 2020).
The limits are equally structural. Ordinary quaternions encode rotation only; whenever translation matters, it must be handled separately or absorbed into a dual-quaternion extension (Montgomery-Smith et al., 2022). Both quaternions and dual quaternions retain sign ambiguity, and practical systems often require antipodal correction, branch selection, or continuity heuristics across time (Andreou et al., 2021, Hanson et al., 2022). Quaternion-only learning can also leave positional correctness to a separate forward-kinematics mechanism, which is precisely why several animation papers prefer dual quaternions or root-centered rigid transforms (Andreou et al., 2021). Probabilistic Bingham models remain unimodal on 3 up to antipodal symmetry, so they cannot represent strongly multimodal discrete rotational ambiguity well (Sato et al., 2022). In articulated human motion, dual-quaternion rigid-motion ideas often need to be adapted into global/local decompositions because a full skeleton is not a single rigid body (Vieira et al., 2023).
Competing representations address some of these issues differently. Euler angles are simple but suffer from discontinuity and gimbal lock (Andreou et al., 2021, Le et al., 27 Jan 2026). Rotation matrices are overparameterized and require orthogonality constraints (Blanco-Claraco, 2021, Fauré et al., 20 Aug 2025). Continuous 6D rotation encodings avoid some quaternion continuity problems, but in the skeletal-animation comparison they still encode only rotation, not translation, and require conversion to transform matrices for forward kinematics (Andreou et al., 2021). This suggests a practical partition of use cases rather than a universal winner: unit quaternions are well suited to rotation-only state variables, dual quaternions to full 4 pose and twist, and manifold-aware probabilistic or tangent-space variants to uncertainty, conditioning, and stable learning on non-Euclidean pose domains.