Skip to content

Commit 397ad16

Browse files
committed
Update vision index page to the latest zoloto api
1 parent a7408d9 commit 397ad16

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/source/api/vision/index.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,19 @@ Position
7474

7575
Each marker has a position in 3D space, relative to your webcam.
7676

77-
You can access the position using ``m.bearing`` and ``m.distance``.
77+
You can access the position using ``m.distance``, ``m.cartesian`` and ``m.spherical``.
7878

7979
.. code:: python
8080
8181
markers = r.camera.see()
8282
8383
for m in markers:
84-
print(m.bearing) # Bearing to the marker from the origin, in radians
85-
print(m.distance) # Distance to the marker from the origin, in metres
84+
print(m.distance) # Distance to the marker from the webcam, in metres
85+
print(m.spherical.y) # Bearing to the marker from the webcam, in radians
8686
87-
* ``m.bearing`` is equivalent to ``m.position.cylindrical.phi``.
88-
* ``m.distance`` is equivalent to ``m.position.cylindrical.p``.
87+
* ``m.distance`` is equivalent to ``m.cartesian.z`` or ``m.spherical.dist``.
8988

90-
For further information on position, including how to use ``m.position`` and the coordinate systems,
89+
For further information on position, including how to use ``m.cartesian``, ``m.spherical``, and the coordinate systems,
9190
see `Position <position.html>`__.
9291

9392
It is also possible to look at the `Orientation <orientation.html>`__ of the marker.

0 commit comments

Comments
 (0)