Skip to content

Commit

Permalink
fix camera bug (#422)
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
QuanyiLi committed Apr 16, 2023
1 parent 641bbbd commit 91d0d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metadrive/component/vehicle_module/depth_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self):
cam = self.get_cam()
lens = self.get_lens()

self.origin.lookAt(2.4, 0, 1.3)
cam.lookAt(2.4, 0, 1.3)

lens.setFov(60)
lens.setAspectRatio(2.0)
Expand Down
2 changes: 1 addition & 1 deletion metadrive/component/vehicle_module/rgb_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self):
super(RGBCamera, self).__init__(True, cuda)
cam = self.get_cam()
lens = self.get_lens()
self.origin.lookAt(2.4, 0, 1.3)
cam.lookAt(2.4, 0, 1.3)

lens.setFov(60)
lens.setAspectRatio(2.0)

0 comments on commit 91d0d19

Please sign in to comment.