Convert 3D Rotation
robosim_convert_rotationConvert any rotation representation (quaternion, Euler angles, rotation matrix, axis-angle) to all others, including URDF roll-pitch-yaw. Supports 12 Euler sequences, intrinsic/extrinsic, and degrees.
Instructions
Convert a rotation between quaternion, Euler (12 sequences, intrinsic/extrinsic), 3x3 matrix, and axis-angle, and report URDF roll-pitch-yaw. Give it in any one representation via from; returns ALL of them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>"
},
"name": "robosim_convert_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Which representation the input is in. | |
| euler | No | Required when from='euler'. | |
| matrix | No | Required when from='matrix' (row-major). | |
| degrees | No | Interpret and report angles in degrees (else radians). | |
| axis_angle | No | Required when from='axis_angle'. | |
| quaternion | No | Required when from='quaternion' (auto-normalized). | |
| output_euler_order | No | Euler order to report (default ZYX). | ZYX |
| output_euler_intrinsic | No | Intrinsic vs extrinsic for the reported Euler. |