Skip to content

Commit 30950ea

Browse files
Fixed the example code for spherical coords
Now uses distance, rot_x and rot_y rather than r, theta and phi
1 parent 1b0a0b3 commit 30950ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/api/vision/position.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ The camera is located at the origin, where the coordinates are ``(0, 0, 0)``.
5858
markers = r.camera.see()
5959
6060
for m in markers:
61-
print(m.spherical.r) # Distance from the origin in millimetres
62-
print(m.spherical.theta) # The angle from the azimuth to the point, in radians.
63-
print(m.spherical.phi) # The polar angle from the plane of the camera to the point, in radians.
61+
print(m.spherical.distance) # Distance from the origin in millimetres
62+
print(m.spherical.rot_x) # The angle from the azimuth to the point, in radians.
63+
print(m.spherical.rot_y) # The polar angle from the plane of the camera to the point, in radians.
6464
6565
.. Hint:: You can use the ``math.degrees`` function to convert from radians to degrees.

0 commit comments

Comments
 (0)