Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit 1cb9cc8

Browse files
committed
add Orientation to markers
1 parent 0176711 commit 1cb9cc8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

robot/markers.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,15 @@ def spherical(self) -> SphericalCoord:
206206
space is different to the usual representation of a spherical space.
207207
"""
208208
return SphericalCoord(*self._raw_data['spherical'])
209+
210+
@property
211+
def orientation(self) -> Orientation:
212+
"""
213+
The rotation of the marker in relative to the camera.
214+
215+
Describes a rotation as angles about the x, y, and z axes, which
216+
corresponds pitch, yaw, and roll of the marker respectively. The
217+
angles are measured as an offset from the marker directly facing
218+
the camera.
219+
"""
220+
return Orientation(*self._raw_data['orientation'])

0 commit comments

Comments
 (0)