Orientation
Orientation represents the rotation of a marker around its center. The axis and rotations follow the aircraft principal axis as shown in the diagram above. These can be accessed as follows:
- yaw
- The angle of rotation in radians clockwise about the vertical axis, from the perspective of the marker.
- pitch
- The angle of rotation in radians upwards about the transverse axis, from the perspective of the marker.
- roll
- The angle of rotation in radians clockwise about the longitudinal axis, from the perspective of the marker.
from sbot import *
robot = Robot()
markers = robot.camera.see()
for marker in markers:
print(marker.orientation.yaw)
print(marker.orientation.pitch)
print(marker.orientation.roll)
Examples
The following images visually explains what positive and negative rotations represent. The red arrow is not normally present on the marker but is used in these examples to indicate which way is up.
0 in all axes:
π/4 | -π/4 | |
---|---|---|
yaw | ![]() | ![]() |
pitch | ![]() | ![]() |
roll | ![]() | ![]() |