forked from deepdrive/deepdrive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcamera_config.py
28 lines (26 loc) · 1.21 KB
/
camera_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import logs
import config
log = logs.get_log(__name__)
# First dimension is rotated through at the end of the episode. Second dimension is for separate cameras on the car.
rigs = {
'baseline_rigs': [
[config.DEFAULT_CAM],
[dict(name='forward cam 90 FOV', field_of_view=90, capture_width=340, capture_height=227,
relative_position=[150, 1.0, 200],
relative_rotation=[0.0, 0.0, 0.0])],
[dict(name='semi-truck tall cam 110 FOV', field_of_view=110, capture_width=340, capture_height=227,
relative_position=[150, 1.0, 400],
relative_rotation=[0.0, -15.0, 0.0])],
],
'three_cam_rig': [[
dict(name='forward cam', field_of_view=60, capture_width=512, capture_height=289,
relative_position=[150, 1.0, 200],
relative_rotation=[0.0, 0.0, 0.0]),
dict(name='left cam', field_of_view=60, capture_width=512, capture_height=289,
relative_position=[150, -150., 200],
relative_rotation=[0.0, 0.0, 0.0]),
dict(name='right cam', field_of_view=60, capture_width=512, capture_height=289,
relative_position=[150, 150., 200],
relative_rotation=[0.0, 0.0, 0.0])
]]
}