approx_equal
scipy.spatial.transform.Rotation.
RotationObject containing the rotations to measure against this one.
The absolute angular tolerance, below which the rotations are considered equal. If not given, then set to 1e-8 radians by default.
If True and atol is given, then atol is measured in degrees. If False (default), then atol is measured in radians.
numpy.boolWhether the rotations are approximately equal, numpy.bool if object
contains a single numpy rotation and Array if object contains multiple
rotations or is from another library.
>>> from scipy.spatial.transform import Rotation as R
>>> import numpy as np
>>> p = R.from_quat([0, 0, 0, 1])
>>> q = R.from_quat(np.eye(4))
>>> p.approx_equal(q)
array([False, False, False, True])
Approximate equality for a single rotation:
>>> p.approx_equal(q[0])
np.False_