Skip to content

Commit 909cb35

Browse files
authored
Update boundingbox_camera.md with the proper projection matrix (#552)
The projection matrix assumed a horizontal fov of 1.57, when all of the rest of the example uses a horizontal fov of 1.047. This matches the projection matrix to the rest of the example so the python code works correctly without modification. Signed-off-by: jmackay2 <[email protected]>
1 parent 8c29636 commit 909cb35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/boundingbox_camera.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,15 +369,15 @@ def euler_to_rotation(theta) :
369369
"""
370370
This matrix are specific for the camera configuration in the SDF world
371371
372-
<horizontal_fov>1.57</horizontal_fov>
372+
<horizontal_fov>1.047</horizontal_fov>
373373
<width>800</width>
374374
<height>600</height>
375375
376376
If any of them is changed, you have to change the projection matrix
377377
"""
378378
projMatrix = np.array([
379-
[0.99975, 0, 0, 0],
380-
[0, 1.333, 0, 0 ],
379+
[1.732, 0, 0, 0],
380+
[0, 2.309, 0, 0 ],
381381
[0, 0, -1.00002, -0.02],
382382
[0, 0, -1, 0]
383383
])

0 commit comments

Comments
 (0)