@@ -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
4747The `spherical coordinates system <https://en.wikipedia.org/wiki/Spherical_coordinate_system >`_ has
4848three 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
5454The 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