The error between two transformations ( T_{\text{current}} ) (the current pose) and ( T_{\text{target}} ) (the desired or target pose) is calculated as:
[
\mathbf{e} = \log \left( T_{\text{target}}^{-1} T_{\text{current}} \right)
]
This formula arises from the need to quantify the "difference" between two poses in a way that is suitable for control purposes, especially in robotics and motion control systems where poses are represented as elements of a Lie group (such as the Special Euclidean group ( \text{SE}(3) )).
Here's why the error is calculated this way:
-
Poses as Elements of a Lie Group:
- ( T_{\text{current}} ) and ( T_{\text{target}} ) are elements of ( \text{SE}(3) ), which represents rotations and translations in 3D space.
- The group ( \text{SE}(3) ) combines rotational (( \text{SO}(3) )) and translational components in a homogeneous transformation matrix.
-
Computing the Relative Transformation:
- To find the transformation that moves an object from the target pose to the current pose, we compute:
[
\Delta T = T_{\text{target}}^{-1} T_{\text{current}}
]
- This ( \Delta T ) represents the transformation you need to apply to ( T_{\text{target}} ) to obtain ( T_{\text{current}} ).
- The inverse ( T_{\text{target}}^{-1} ) effectively "undoes" the target pose, and multiplying it by ( T_{\text{current}} ) shows how the current pose differs from the target.
-
Mapping to the Lie Algebra:
- ( \text{SE}(3) ) is a Lie group, and its associated Lie algebra ( \mathfrak{se}(3) ) consists of 6-dimensional vectors representing infinitesimal rotations and translations (twists).
- The logarithm map ( \log: \text{SE}(3) \rightarrow \mathfrak{se}(3) ) takes a transformation matrix close to the identity and returns its equivalent twist coordinates.
- By applying the logarithm to ( \Delta T ), we convert the relative transformation into a vector in ( \mathfrak{se}(3) ), which can be used in control laws.
-
Resulting Error Vector ( \mathbf{e} ):
- The error vector ( \mathbf{e} ) encapsulates both the rotational and translational differences between ( T_{\text{current}} ) and ( T_{\text{target}} ) in a form suitable for linear control methods.
- This vector represents the "twist" needed to correct the current pose to align with the target pose.
- In control applications, ( \mathbf{e} ) can be used in feedback laws (e.g., ( \mathbf{u} = -K \mathbf{e} )) to compute the necessary control inputs to minimize the error.
Why Use ( T_{\text{target}}^{-1} T_{\text{current}} ) Instead of ( T_{\text{current}}^{-1} T_{\text{target}} )?
- The order of multiplication matters because matrix multiplication is not commutative.
- ( T_{\text{target}}^{-1} T_{\text{current}} ) computes the transformation that brings the target pose to the current pose.
- This direction is consistent with the idea of measuring how much the current pose deviates from the target and what adjustment is needed to correct it.
- If we used ( T_{\text{current}}^{-1} T_{\text{target}} ), we would compute the transformation from the current pose to the target, which may seem intuitive, but in many control formulations, especially those involving feedback linearization or error dynamics, the former convention is adopted.
An Example for Clarity:
Suppose we have:
- ( T_{\text{current}} ): The robot's current pose.
- ( T_{\text{target}} ): The desired pose we want the robot to achieve.
To compute the error:
- Compute the transformation from the target to the current pose:
[
\Delta T = T_{\text{target}}^{-1} T_{\text{current}}
]
- Apply the logarithm map to ( \Delta T ):
[
\mathbf{e} = \log(\Delta T)
]
- Use ( \mathbf{e} ) in your control laws to guide the robot from its current pose to the target pose.
Summary:
The error is calculated as ( \mathbf{e} = \log \left( T_{\text{target}}^{-1} T_{\text{current}} \right) ) because:
- It provides a meaningful measure of the difference between two poses within the Lie group framework.
- It translates the pose difference into Lie algebra elements (twists), which are vectors suitable for control purposes.
- It aligns with the conventions used in robotic control systems to ensure consistent and predictable behavior when correcting pose errors.
Answer: Because to compute the error between the target and current poses (transformations), we define the error as the logarithm of the transformation from the target to the current pose—specifically, the error is calculated as the logarithm of ( T_{\text{target}}^{-1}T_{\text{current}} ); this gives a vector in the Lie algebra representing the rotational and translational difference, which can be used in control.