@@ -41,7 +41,7 @@ while True:
41
41
print (" I can see" , len (markers), " markers:" )
42
42
43
43
for m in markers:
44
- print (" - Marker #{0} is {1} metres away" .format(m.id, m.distance))
44
+ print (" - Marker #{0} is {1} metres away" .format(m.id, m.distance / 1000 ))
45
45
~~~~~
46
46
47
47
see_ids
@@ -148,7 +148,7 @@ pixel_corners
148
148
: A list of 4 [ ` Coordinate ` ] ( #Coordinate ) instances, each representing the position of the corners of the marker.
149
149
150
150
distance
151
- : The distance between the camera and the centre of the marker, in metres .
151
+ : The distance between the camera and the centre of the marker, in millimetres .
152
152
153
153
orientation
154
154
: An [ ` Orientation ` ] ( #Orientation ) instance describing the orientation of the marker.
@@ -219,7 +219,7 @@ The spherical coordinates system has three values to specify a specific point in
219
219
220
220
![ A visual representation of Spherical coordinates. Source: SourceBots] ({{ site.baseurl }}/images/content/vision/spherical.png)
221
221
222
- - r - The radial distance, the distance from the origin to the point, in metres .
222
+ - r - The radial distance, the distance from the origin to the point, in millimetres .
223
223
- θ (theta) - The angle from the azimuth to the point, in radians.
224
224
- φ (phi) - The polar angle from the plane of the camera to the point, in radians.
225
225
@@ -230,6 +230,6 @@ rot_y
230
230
: Rotation around the Y-axis, in radians, corresponding to ` phi ` on the diagram.
231
231
232
232
dist
233
- : Distance, in metres , corresponding to ` r ` on the diagram.
233
+ : Distance, in millimetres , corresponding to ` r ` on the diagram.
234
234
235
235
The camera is located at the origin, where the coordinates are (0, 0, 0).
0 commit comments