Skip to content

Commit 24a4eb4

Browse files
Merge pull request #290 from sourcebots/Vision-sph-coords-patch
Fixed the example code for spherical coords
2 parents 1b0a0b3 + 30950ea commit 24a4eb4

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)