Python API
utils.to_quat()
utils.from_quat()
ROS & ROS2 API
Table of Contents
Quaternions
to_quat
from_quat
Convert orientation (A,B,C) to quaternion
orientation (3-element list or np.ndarray, optional) – The cartesian orientation to convert to quaternion
format (str, optional) – Quaternion format (default: “xyzw”)
degrees (bool, optional) – Whether the orientation is in degrees or radians (default: radians)
AssertionError – If the format is not valid
Quaternion in the specified format
np.ndarray
Convert quaternion to orientation (A,B,C)
quaternion (3-element list or np.ndarray, optional) – The cartesian orientation to convert to quaternion
degrees (bool, optional) – Whether the orientation will be returned in degrees or radians (default: radians)
Cartesian orientation (A,B,C)