Standard Dual Quaternion Optimization and Its Applications in Hand-Eye Calibration and SLAM
Abstract
Several common dual quaternion functions, such as the power function, the magnitude function, the -norm function and the th largest eigenvalue of a dual quaternion Hermitian matrix, are standard dual quaternion functions, i.e., the standard parts of their function values depend upon only the standard parts of their dual quaternion variables. Furthermore, the sum, product, minimum, maximum and composite functions of two standard dual functions, the logarithm and the exponential of standard unit dual quaternion functions, are still standard dual quaternion functions. On the other hand, the dual quaternion optimization problem, where objective and constraint function values are dual numbers but variables are dual quaternions, naturally arises from applications. We show that to solve an equality constrained dual quaternion optimization problem, we only need to solve two quaternion optimization problems. If the involved dual quaternion functions are all standard, the optimization problem is called a standard dual quaternion optimization problem, and some better results hold. Then, we show that the dual quaternion optimization problems arising from the hand-eye calibration problem and the simultaneous localization and mapping (SLAM) problem are equality constrained standard dual quaternion optimization problems.
Key words. Standard dual quaternion functions, dual quaternion optimization, quaternion optimization, hand-eye calibration, simultaneous localization and mapping.
1 Introduction
Dual quaternions have wide applications in robotics, 3D motion modelling and control, and computer graphics [1, 2, 4, 9, 10, 13, 14, 15, 16, 17, 23].
According to [18], the magnitudes of dual quaternions and the -norms of dual quaternion vectors are dual numbers. A total order was defined for dual numbers in [18]. Thus, dual quaternion optimization problems, where objective and constraint function values are dual numbers but variables are dual quaternions, naturally arise. In particular, the least squares approach results in such optimization problems. In Section 5, we will present such dual quaternion optimization problems arising from hand-eye calibration. However, how to solve a dual quaternion optimization problem is still a problem. First, there is no calculus concepts for dual quaternion functions. Even the limit concept is not established for dual quaternion functions. Second, unlike quaternion optimization problems, which can be transformed to one-level real optimization problems, general dual quaternion optimization problems are essentially bilevel optimization problems. These are difficulties.
Fortunately, some common dual quaternion functions are easy to handle. Several common dual quaternion functions, such as the power function, the magnitude function, the -norm function and the th largest eigenvalue of a dual quaternion Hermitian matrix, are standard dual quaternion functions. The standard parts of the function values of these functions depend upon only the standard parts of their dual quaternion variables. Furthermore, the sum, product, minimum, maximum and composite functions of two standard dual functions, the logarithm and the exponential of a standard unit dual quaternion functions, are still standard dual quaternion functions. Then we show that to solve an equality constrained dual quaternion optimization problem, we only need to solve two quaternion optimization problems. For a dual quaternion optimization problem, if its objective and constraint functions are all standard, then we call it a standard dual quaternion optimization problem, and some better results hold there. Finally, we show that the dual quaternion optimization problems arising from the hand-eye calibration problem are equality constrained standard dual quaternion optimization problems, and thus relatively easier to handle. This provides a method to solve this problem.
In the next section, we present some preliminary knowledge on dual numbers, dual quaternions and quaternion optimization. Standard dual quaternion functions are studied in Section 3. A solution method for the equality constrained dual quaternion optimization problem is proposed, and standard dual quaternion optimization is discussed in Section 4. In Section 5, we show that equality constrained standard dual quaternion optimization problem has some better properties. Finally, in Sections 6 and 7, we show that the dual quaternion optimization problems arising from the hand-eye calibration problem and the simultaneous localization and mapping (SLAM) problem are equality constrained standard dual quaternion optimization problems.
Scalars, vectors and matrices are denoted by small letters, bold small letters and capital letters, respectively. Dual numbers and dual quaternions are distinguished by a hat symbol.
2 Dual Numbers, Quaternions and Dual Quaternions
2.1 Dual Numbers
The set of the dual numbers is denoted as . Following the literature such as [23], we use the hat symbol to denote dual numbers and dual quaternions. A dual number has the form , where and are real numbers, and is the infinitesimal unit, satisfying . The quaternion is called the real part or the standard part of , and the quaternion is called the dual part or the infinitesimal part of . The infinitesimal unit is commutative in multiplication with real numbers, complex numbers and quaternion numbers. If , is said to be appreciable, otherwise, is said to be infinitesimal.
A total order was introduced in [18] for dual numbers. Given two dual numbers , , , where , , and are real numbers, we say that , if either , or and . In particular, we say that is positive, nonnegative, nonpositive or negative, if , , or , respectively.
2.2 Quaternions
The set of the quaternions is denoted by . A quaternion has the form where and are real numbers, and are three imaginary units of quaternions, satisfying
The real part of is Re. The imaginary part of is Im. The multiplication of quaternions satisfies the distribution law, but is noncommutative.
The conjugate of is The magnitude of is It follows that the inverse of a nonzero quaternion is For any two quaternions and , we have .
A quaternion is said imaginary if its real part is zero. If is imaginary, then . In the literature [23], it is called a vector quaternion. Various 3D vectors, such as position vectors, displacement vectors, linear velocity vectors, and angular velocity vectors, can be represented as imaginary quaternions.
If , then is called a unit quaternion, or a rotation quaternion. A spatial rotation around a fixed point of radians about a unit axis that denotes the Euler axis is given by the unit quaternion
(1) |
where the unit axis is an imaginary unit quaternion . We may also write
(2) |
A unit quaternion is always invertible and .
The collection of -dimensional quaternion vectors is denoted by . For , define , where is the conjugate transpose of .
2.3 Dual Quaternions and Unit Dual Quaternions
The set of dual quaternions is denoted by . A dual quaternion has the form
(3) |
where are the standard part and the dual part of , respectively. If , then we say that is appreciable. If and are imaginary quaternions, then is called an imaginary dual quaternion.
The conjugate of is
(4) |
Thus, if , then is a dual number. If is imaginary, then .
For two dual quaternions and , their addition and multiplications are defined as
and
A dual number is always commutative with a dual quaternion or a dual quaternion vector.
A dual quaternion is called invertible if there exists a quaternion such that . A dual quaternion is invertible if and only if is appreciable. In this case, we have
If , then is called a unit dual quaternion. A unit dual quaternion is always invertible and we have . The 3D motion of a rigid body can be represented by a unit dual quaternion. We have
Thus, is a unit dual quaternion if and only if is a unit quaternion, and
(6) |
Suppose that there is a rotation succeeded by a translation , where is an imaginary quaternion. The superscripts and represent the relation of the rigid body motion with respect to the body frame attached to the rigid body and the spatial frame which is relative to a fixed coordinate frame. Then the whole transformation can be represented by unit dual quaternion , where . Note that we have
Thus, a transformation of a rigid body can be represented by a unit dual quaternion
(7) |
where is a unit quaternion to represent the rotation, and is the imaginary quaternion to represent the translation or the position. In (7), is the attitude of the rigid body, while represents the transformation.
A unit dual quaternion serves as both a specification of the configuration of a rigid body and a transformation taking the coordinates of a point from one frame to another via rotation and translation. In (7), if is the configuration of the rigid body, then and are the attitude of and position of the rigid body respectively.
Denote the collection of -dimensional dual quaternion vectors by .
For , , define , where is the conjugate transpose of . We say is appreciable if at least one of its component is appreciable.
For , by [18], if not all of are infinitesimal, its -norm is defined as
(9) |
If all are infinitesimal, we have for . Then we have
(10) |
3 Standard Dual Quaternion Functions
We call a function a dual quaternion function. Let
and
where , are the standard parts and dual parts of and , respectively. If for all , then we say that is a standard dual quaternion function.
A simple example is the power function. Consider the power function for a positive integer . Let . Then , i.e., . By (5), the magnitude function is also a standard quaternion function. By (5), (9) and (10), the -norm function is also a standard quaternion function. A fourth example is , where is the an dual quaternion Hermitian matrix, is the th largest eigenvalue of , . By Theorem 4.1 of [19], this is also a standard dual quaternion function.
Furthermore, many operations preserve standard dual quaternion functions.
Theorem 3.1.
Suppose that are two standard dual quaternion functions. Then their sum, product, minimum and maximum functions are still standard dual quaternion functions.
Proof.
Let . Then , where
i.e., is also a standard dual quaternion function. This proves the first conclusion.
Let . Then , where
i.e., is also a standard dual quaternion function. This proves the second conclusion.
Let . Then , where
i.e., is also a standard dual quaternion function. This proves the third conclusion.
The fourth conclusion can be proved similarly.
∎
Corollary 3.2.
Suppose that are standard dual quaternion functions, where is a positive integer. Then their sum, product, minimum and maximum functions are still standard dual quaternion functions.
Corollary 3.3.
Suppose that is a standard dual quaternion functions, and is a positive integer. Then is still a standard dual quaternion function.
Theorem 3.4.
Suppose that is a standard unit dual quaternion function. Then its logarithm and exponential functions are still standard dual quaternion functions.
Proof.
We have
as is a standard dual quaternion function. Since is a unit dual quaternion function, we have . Thus, we may write
Write
Then and are functions of . By (8), we have
Thus, is still a standard dual quaternion function. Similarly, we may show that is a standard dual quaternion function too. ∎
Theorem 3.5.
Suppose that and are two standard unit dual quaternion functions. Then their composite function is also a standard dual quaternion function.
Proof.
For ,
where the second and the third equalities hold because and are standard unit dual quaternion functions respectively. Thus, is also a standard dual quaternion function. ∎
4 Equality Constrained Dual Quaternion Optimization
In this section, we propose a solution method for the following equality constrained dual quaternion optimization problem (EQDQO):
(11) |
where , and for are dual quaternion functions. If and for are all standard dual quaternion functions, then this problem is called an equality constrained standard dual quaternion optimization problem (EQSDQO). EQSDQO arises in many applications, as the most dual quaternion application problems are unit dual quaternion application problems, and their constraints may only have the unit requirement. In the next section, we will see that the dual quaternion optimization problem arising from the hand-eye calibration problem is an EQSDQO.
We have . We may regard and as real valued functions and , with -dimensional quaternion vector variables , i.e.,
We now abuse the notation, and simply write
i.e., we now simply regard and as real valued functions, with -dimensional quaternion vector variables . We may treat and similarly. Then we have the following theorem.
Theorem 4.1.
Suppose that is the optimal function value of the equality constrained quaternion optimization problem (EQQOPI):
(12) |
and is a global optimal solution of the following equality constrained quaternion optimization problem (EQQOPII):
(13) |
Then is a global optimal solution of EQDQO (11).
Proof.
Since satisfies all the constraints of EQDQO, and the standard part and the dual part of attain their global minimal values, the conclusion follows. ∎
Let and . Then we may further regard , , and as real valued functions with real vector variables for . Then we only need to apply ordinary nonlinear optimization techniques to analyze and to solve (12-13). However, we may apply the approach in [20] to simplify the language.
In the following, as in [20], we say that the real valued functions are continuously differentiable, if they are continuously differentiable with respect to real vector variables for . We now take as an example, and the same argument applies to and . Let . Denote the partial derivatives and gradient of at as
Then . With the R-linear independence concept and Theorem 4.3 of [20], we may have the first optimality conditions for (12-13). This is essentially the linear independence constraint qualification in real nonlinear optimization.
5 Equality Constrained Standard Dual Quaternion Optimization
If and for are all standard dual quaternion functions, then (EQQOPI) has the form
(14) |
and (EQQOPII) has the form
(15) |
Then we may have some better results. See the theorem and its corollary below. We call such a dual quaternion optimization problem a standard dual quaternion optimization problem.
Theorem 5.1.
Suppose that , for are continuously differentiable.
Proof.
By Theorem 4.3 of [20] and the property of block triangular matrices, if is R-linearly independent in the sense of [20], and is R-linearly independent in the sense of [20], then there are real Lagrangian multipliers and for , such that
(20) |
(21) |
and
(22) |
Since is R-linearly independent in the sense of [20], by (21), all . We have the first result of this theorem. The second result can be derived similarly. ∎
Actually, Theorem 5.1 may be stated and proved in the Language of real optimization. That way is somewhat tedious.
Corollary 5.2.
Let and denote . Suppose that and are continuously differentiable.
Assume is an optimal solution of (14). Assume that , and . Then there is a real Lagrangian multiplier , such that
(23) |
and
(24) |
In practice, we may only find an approximal value of , an error analysis is necessary in the application of this approach.
This approach cannot be extended to the inequality constraint case naturally, the optimal index set there is dependent upon the concrete solution.
6 Hand-Eye Calibration
The hand-eye calibration problem (the sensor-actuator problem) is an important application problem in robot research. They can be solved by using dual quaternions [10, 15, 16]. In this section, we formulate it as an equality constrained dual quaternion optimization problem, and show that this problem is a standard dual quaternion optimization problem.
In 1989, Shiu and Ahmad [21] and Tsai and Lenz [22] formulated the hand-eye calibration problem as a matrix equation
(27) |
where is the transformation matrix from the camera (eye) to the gripper (hand), and , is the transformation matrix from the camera to the world coordinate system, and is the transformation matrix from the robot base to the gripper [10]. They are all matrices, and can be measured, while is the variable matrix. Assume that there are measurements (poses) and for . Denote and , for . Then the problem is to find the best solution of
(28) |
for . In 1999, Daniilidis [10] proposed to use dual quaternions to solve this problem. See Figure 1 for the geometry of this model.

In 1994, Zhuang, Roth and Sudhaker [26] generalized (27) to
(29) |
where is the transformation matrix from the world coordinate system to the robot base. Assume that we have measurements (poses) for . Then the problem is to find the best solution and of
(30) |
for . In 2010, Li, Wang and Wu [15] proposed to use dual quaternions to solve this problem. Also see [16]. See Figure 2 for the geometry of this model.

As the 3D movement of a rigid body may also be expressed by unit dual quaternions, we may rewrite (28) and (30) as
(31) |
for , and
(32) |
for , where , , , , and are corresponding unit dual quaternions. We may solve (31) and (32) by the following minimization problems:
(33) |
and
(34) |
Then (33) and (34) are equality constrained dual quaternion optimization problems. By the analysis in Section 3, all the functions involved are standard dual quaternion optimization problems. Thus, they are equality constrained standard dual quaternion optimization problems.
Note that by (5), the magnitudes in the objective functions of (33) and (34) cannot be replaced by their squares as for a dual quaternion number , and are not equivalent.
Consider (33). We have and . Then EQSDQO has the form
(35) |
and
Similarly, we have
and can be computed by (5). Then, (EQQOPI) has the form
(36) |
and (EQQOPII) has the form
(37) |
We may apply Theorems 4.1 and 5.1 as well as Corollary 5.2 now. In particular, we have as . The problem (34) can be treated similarly.
7 Pose Graph Optimization
The simultaneous localization and mapping (SLAM) problem is a very hot topic in robotic research [5]. The applications of SLAM include not only field robots, but also underwater navigation [25], unmanned aerial vehicle (UAV) [3], planetary exploration rover [24]. The graph-based approach poses the SLAM problem to the pose graph optimization problem. In 2016, Cheng, Kim, Jiang and Che [9] studied dual quaternion-based graph SLAM. In this section, we show that the dual quaternion pose graph optimization problem is a standard dual quaternion optimization problem.
Pose graph optimization estimates robot poses from relative pose measurements. The dual quaternion pose graph problem can be visualized as a directed graph [6], where each vertex corresponds to a robot pose for , and each directed edge (arc) corresponds to a relative measurement , a unit dual quaternion. Thus, for , are unknown unit dual quaternion variables. The cardinality of the edge set as we have relative measurements. By the pose relation, the relative pose should be
Then the error at the edge is
We may regard as an -dimensional dual quaternion vector, i.e., . Then we have the following minimization model for this pose graph optimization problem:
(38) |
where is defined by (9) and (10). By the discussion in Section 3, this is an equality constrained standard dual quaternion optimization problem.
We will study the algorithm aspect of applying standard dual quaternion optimization approach to the hand-eye calibration problem and the SLAM problem in further coming papers.
Acknowledgment I am thankful to Chen Ling, Ziyan Luo and Zhongming Chen for the discussion on standard dual quaternion optimization, to Wei Li for the discussion on hand-eye calibration, to Jiantong Cheng for the discussion on SLAM, to Guyan Ni for introducing Jiantong Cheng to me, and to Chen Ouyang and Jinjie Liu for Figures 1 and 2.
References
- [1] H. Abaunza, P. Castillo, A. Victorino and R. Lozano, “Dual quaternion modeling and control of a quad-rotor aerial manipulator”, Journal of Intelligent & Robotic Systems 88 (2017) 267-283.
- [2] G. Brambley and J. Kim, “Unit dual quaternion-based pose optimization for visual runway observations”, IET Cyber-Systems and Robotics 2 (2020) 181-189.
- [3] M. Bryson and S. Sukkarieh, “Building a robust implementation of bearing - only inertial SLAM for a UAV”, Journal of Field Robotics 24 (2007) 113-143.
- [4] S. Bultmann, K. Li and U.D. Hanebeck, “Stereo visual SLAM based on unscented dual quaternion filtering”, 2019 22th International Conference on Information Fusion (FUSION) (2019) 1-8.
- [5] C. Cadena, L. Carlone, H. Carrillo, Y. Latif, D. Scaramuzza, J. Neira, I. Reid and J.J. Leonard, “Past, present and future of simultaneous localization and mapping: Toward the robust-perception age”, IEEE Transactions on Robotics 32 (2016) 1309-1332.
- [6] L. Carlone, R. Tron, K. Daniilidis and F. Dellaert, “Initialization techniques for 3D SLAM: A survey on Rotation and its use in pose graph optimization”, IEEE International Conference on Robotics and Automation (ICRA) (2015) 4597-4604.
- [7] Y. Chen, L. Qi and X. Zhang, “Color image completion using a low-rank quaternion matrix approximation”, Pacific Journal of Optimization 18 (2022) 55-75.
- [8] Y. Chen, X. Xiao and Y. Zhou, “Low-rank quaternion approximation for color image processing”, IEEE Transactions on Image Processing 29 (2019) 1057-7149.
- [9] J. Cheng, J. Kim, Z. Jiang and W. Che, “Dual quaternion-based graph SLAM”, Robotics and Autonomous Systems 77 (2016) 15-24.
- [10] K. Daniilidis, “Hand-eye calibration using dual quaternions”, The International Journal of Robotics Research 18 (1999) 286-298.
- [11] J. Flamant, S. Miron and D. Brie, “A general framework for constrained convex quaternion optimization”, IEEE Transactions on Signal Processing, doi:10.1109/TSP.2021.3137746.
- [12] Z. Jia, M.K. Ng and G. Song, “Robust quaternion matrix completion with applications to image inpaiting”, Numerical Linear Algebra with Applications 26 (2019) e2245.
- [13] B. Kenright, “A beginners guide to dual-quaternions”, 20th International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision, Plzen, Czech, 2012.
- [14] G. Leclercq, Ph. Lefévre and G. Blohm, “3D kinematics using dual quaternions: Theory and applications in neuroscience”, Frontiers in Behavioral Neuroscience 7 (2013) Article 7, 1-25.
- [15] A. Li, L. Wang and D. Wu, “Simultaneous robot-world and hand-eye calibration using dual-quaternions and Kronecker product”, International Journal of the Physical Sciences 5 (2010) 1530-1536.
- [16] W. Li, N. Lv, M. Dong and X. Lou, “Simultaneous robot-world/hand-eye calibration using dual quaternion”, Robot 40 (in Chinese) (2018) 301-308.
- [17] X. Peng, X. Shi and Y. Gong, “Dual-quaternion-based modelling and control for motion tracking of a tumbling target”, Journal of Systems Engineering and Electronic 30 (2019) 985-994.
- [18] L. Qi, C. Ling and H. Yan, “Dual quaternions and dual quaternion vectors”, Communications on Applied Mathematics and Computation DOI: 10.1007/s42967-022-00189-y.
- [19] L. Qi and Z. Luo, “Eigenvalues and singular values of dual quaternion matrices”, to appear in: Pacific Journal of Optimization.
- [20] L. Qi, Z. Luo, Q. Wang and X. Zhang, “Quaternion matrix optimization: Motivation and analysis”, Journal of Optimization Theory and Applications, DOI: 10.1007/s10957-021-01906-y.
- [21] Y. Shiu and S. Ahmad, “Calibration of wrist-mounted robotic sensors by solving homogeneous transform equation of the form ”, IEEE Transactions on Robotics and Automation 5 (1989) 16-27.
- [22] R. Tsai and R. Lenz, “A new technique for fully autonomous and efficient 3D robotic hand/eye calibration”, IEEE Transactions on Robotics and Automation 5 (1989) 345-358.
- [23] X. Wang, C. Yu and Z. Lin, “A dual quaternion solution to attitude and position control for rigid body coordination”, IEEE Transactions on Robotics 28 (2012) 1162-1170.
- [24] E. Wei, S. Jin and Q. Zhang, “Autonomous navigation of mars probe using X-ray pulsars: Modeling and results”, Advances in Space Research 51 (2013) 849-857.
- [25] S.B. Williams, P. Newman and G. Dissanayake, “Autonomous underwater simultaneous localization and map building”, IEEE International Conference on Robotics and Automation (ICRA), (2000) 1793-1798.
- [26] H.Q. Zhuang, Z. Roth and R. Sudhakar, “Simultaneous robot-world and tool/flange calibration by solving homogeneous transformation of the form ”, IEEE Transactions on Robotics and Automation 10 (1994) 549-554.