Skip to content

Orientation

Yaw Pitch and Roll (Image source: Wikipedia)

Orientation represents the rotation of a marker around its center. These can be accessed as follows:

  • yaw - the angle of rotation in radians clockwise about the vertical axis.
  • pitch - the angle of rotation in radians upwards about the transverse axis.
  • roll - the angle of rotation in radians clockwise about the longitudinal axis.
markers = robot.camera.see()

for marker in markers:
   print(marker.orientation.yaw)
   print(marker.orientation.pitch)
   print(marker.orientation.roll)

Examples

The following table visually explains what positive and negative rotations represent.

Example

0 in all axes:

m0x0y0z

π/4 -π/4
yaw m0x45y0z m0x-45y0z
pitch m-45x0y0z m45x0y0z
roll m0x0y-45z m0x0y45z