Robo2u

Frame & Rotation Converter

One rotation in every representation and frame convention, live in your browser.

Background readingRotations and framesRobot kinematicsRobot calibration

Rotation angle
0
0 rad
Rotation axis
1, 0, 0
unit vector, angle carries no sign
Quaternion norm
1
unit length
Selected Euler
ZYX intrinsic
roll, pitch, yaw in ROS

01Live conversion

Quaternion

Both component orders. Mixing them up is the most common orientation bug.

Euler angles

Intrinsic axes move with the body. Extrinsic axes stay fixed.

Values above are degrees.
radians
Gimbal state

Axis-angle and rotation vector

Angle in 0 to 180 degrees. The rotation vector is OpenCV’s rvec.

3D gizmo

Grey axes are identity. Drag to orbit, scroll to zoom.

Starting the 3D view.
X Y Z reference frame
Z up, right handed, matching ROS REP-103.

Rotation matrix

Row major, v' = R v. Paste one from a log to check it is still a rotation.

Orthonormality

Homogeneous 4x4 transform

Rotation plus translation, as a debugger or tf echo prints it.

4x4
9 numbers read as 3x3, 16 as 4x4, 4 as a quaternion x, y, z, w.

02Code out

In the target tool’s syntax, with order and units handled.

loading

03Compose and compare

A then B is qB × qA: the last rotation sits on the left.

A then B (x, y, z, w)
0, 0, 0, 1
B then A (x, y, z, w)
0, 0, 0, 1
order matters, so this usually differs
Angular distance A to B
0
shortest angle between the two orientations
Relative rotation A to B
0, 0, 0, 1
qA inverse times qB, as x, y, z, w

04Frame convention converter

Re-express the rotation and a position in another frame convention.

Handedness Units
P

05Which tool uses which convention

Check your source here before debugging signs.

Tool or standard Quaternion order Euler convention Axes and handedness Notes
How it works