🪜Coordinate System
Last updated
Last updated
The coordinate system of ROAR_PY follows a right-hand, Z-up system. All rotations follow the right hand rule and the rotation order is XYZ.
The standard units in ROAR_PY are meters(m) and radians(rad).
Very typical representations of coordinate system data are locations np.ndarray
with size (3,) with each index representing x,y,z in meters and rotations np.ndarray
with size (3,) and each index representing rotation in x,y,z (roll, pitch, yaw) in radians.
We do not impose restrictions on the world coordinate's x and y axis but every implementation of ROAR_PY should have world coordinate's z axis in the direction of the gravity.
However, we ask that any implementation of ROAR_PY should have local coordinates (of any ROAR_PY actor) that has the following property:
The x-axis should point in the forward direction of the actor
The y-axis should point in the left direction of the actor
The z-axis should point in the upward direction of the actor
Below are a few examples of local coordinate systems in ROAR_PY
The Boston Dynamics Spot SDK coordinate system uses the same coordinate system as ROAR_PY (Credit: Boston Dynamics website)