Convert Rotation Format
SUMMARY
convert_rotation_format converts a rotation between deg, rad, quat, and rotvec representations.
The Skill
python
rotation_rad = tfutils.convert_rotation_format([90, 90, 180], "deg", "rad")Parameter Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
rotation | list | required | The rotation to convert. |
in_rot_type | str | required | Rotation type of rotation, one of "deg", "rad", "quat", "rotvec". |
out_rot_type | str | required | Desired rotation type of the output. |
Returns
| Type | Description |
|---|---|
list | The rotation converted to out_rot_type. |
Raises
| Exception | Condition |
|---|---|
TypeError | rotation is not a list. |
TypeError | in_rot_type or out_rot_type is not a string. |
ValueError | in_rot_type or out_rot_type is not one of "deg", "rad", "quat", "rotvec". |