Skip to content

Commit fde2cbd

Browse files
committed
Merge branch 'docs-22' into main
2 parents 96309b3 + 7f8c864 commit fde2cbd

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

docs/source/api/vision/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Vision
55
:maxdepth: 1
66
:caption: Quick Links:
77

8-
orientation
98
position
9+
orientation
1010

1111
.. figure:: /_static/api/vision/arena_marker.jpg
1212
:alt: An arena with Fiducial Markers.
@@ -86,7 +86,7 @@ You can access the position using ``m.distance``, ``m.cartesian`` and ``m.spheri
8686
8787
* ``m.distance`` is equivalent to ``m.cartesian.z`` or ``m.spherical.dist``.
8888

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

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

docs/source/api/vision/position.rst

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ The camera is located at the origin, where the coordinates are ``(0, 0, 0)``.
2929
markers = r.camera.see()
3030
3131
for m in markers:
32-
print(m.position.cartesian.x) # Displacement from the origin in metres, along x axis.
33-
print(m.position.cartesian.y) # Displacement from the origin in metres, along y axis.
34-
print(m.position.cartesian.z) # Displacement from the origin in metres, along z axis.
32+
print(m.cartesian.x) # Displacement from the origin in millimetres, along x axis.
33+
print(m.cartesian.y) # Displacement from the origin in millimetres, along y axis.
34+
print(m.cartesian.z) # Displacement from the origin in millimetres, along z axis.
3535
3636
.. Hint:: The `y` axis decreases as you go up. This matches convention for computer vision systems.
3737

@@ -47,9 +47,9 @@ Spherical
4747
The `spherical coordinates system <https://en.wikipedia.org/wiki/Spherical_coordinate_system>`_ has
4848
three values to specify a specific point in space.
4949

50-
* ``r`` - The `radial distance`, the distance from the origin to the point, in metres.
51-
* ``θ`` (theta) - The angle from the azimuth to the point, in radians.
52-
* ``φ`` (phi) - The polar angle from the plane of the camera to the point, in radians.
50+
* ``distance`` - The `radial distance`, the distance from the origin to the point, in millimetres.
51+
* ``rot_x`` - Rotation around the X-axis, in radians, corresponding to `theta` on the diagram.
52+
* ``rot_y`` - Rotation around the Y-axis, in radians, corresponding to `phi` on the diagram.
5353

5454
The camera is located at the origin, where the coordinates are ``(0, 0, 0)``.
5555

@@ -58,11 +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.position.spherical.r) # Distance from the origin in metres
61+
print(m.position.spherical.r) # Distance from the origin in millimetres
6262
print(m.position.spherical.theta) # The angle from the azimuth to the point, in radians.
6363
print(m.position.spherical.phi) # 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.
66-
67-
.. Note:: When searching for spherical coordinates, you may find a references with phi and theta the other way around.
68-
This is due to there being *two* conventions for this. We use the ISO 80000-2 16.3 system, as often found in physics.

0 commit comments

Comments
 (0)