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

Commit 728f929

Browse files
committed
add Orientation to markers
1 parent 46076a3 commit 728f929

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
@@ -217,3 +217,15 @@ def spherical(self) -> SphericalCoord:
217217
space is different to the usual representation of a spherical space.
218218
"""
219219
return SphericalCoord(*self._raw_data['spherical'])
220+
221+
@property
222+
def orientation(self) -> Orientation:
223+
"""
224+
The rotation of the marker in relative to the camera.
225+
226+
Describes a rotation as angles about the x, y, and z axes, which
227+
corresponds pitch, yaw, and roll of the marker respectively. The
228+
angles are measured as an offset from the marker directly facing
229+
the camera.
230+
"""
231+
return Orientation(*self._raw_data['orientation'])

0 commit comments

Comments
 (0)