Skip to content

Invert Transformation Matrix

SUMMARY

invert_transformation_matrix returns the inverse of a 4x4 homogeneous transformation matrix.

UNITS

Both the input and returned transformation matrices have translation in meters.

The Skill

python
T_inv = tfutils.invert_transformation_matrix(T)

Parameter Configuration

ParameterTypeDefaultDescription
transformation_matrixnp.ndarrayrequiredThe (4, 4) transformation matrix to invert.

Returns

TypeDescription
np.ndarrayThe inverted (4, 4) transformation matrix.

Raises

ExceptionCondition
ValueErrortransformation_matrix is not a (4, 4) np.ndarray.