Skip to content

Commit 50c883d

Browse files
committed
align depth camera config to rgb camera in sim envs
1 parent ef3de86 commit 50c883d

3 files changed

Lines changed: 21 additions & 57 deletions

File tree

src/synthnova_config/src/synthnova_config/sensor/realsense_d405.py

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,16 @@ class RealsenseD405DepthSensor1280x720Config(DepthSensorConfig):
7676
"""
7777
Configuration class for the RealSense D405 Depth camera(1280x720).
7878
79-
Intrinsics of "Depth" / 1280x720 / {Z16}:
80-
- Width: 1280
81-
- Height: 720
82-
- PPX: 636.7132568359375
83-
- PPY: 358.99658203125
84-
- Fx: 649.6893310546875
85-
- Fy: 649.6893310546875
86-
- Distortion: Brown Conrady (using plumb_bob model)
87-
- Coeffs: [0.0, 0.0, 0.0, 0.0, 0.0]
88-
- FOV (deg): 75 x 47.6
79+
Intrinsics aligned with RGB sensor for simulation consistency.
8980
"""
9081

9182
frequency: int = 30
9283
width: int = 1280
9384
height: int = 720
94-
fx: float = 649.6893310546875
95-
fy: float = 649.6893310546875
96-
cx: float = 636.7132568359375
97-
cy: float = 358.99658203125
85+
fx: float = 649.24755859375
86+
fy: float = 648.3587036132812
87+
cx: float = 639.14599609375
88+
cy: float = 355.1600341796875
9889
pixel_size: float = 0.003
9990
f_stop: float = 0.0
10091
focus_distance: float = 0.0
@@ -162,25 +153,16 @@ class RealsenseD405DepthSensor640x360Config(DepthSensorConfig):
162153
"""
163154
Configuration class for the RealSense D405 Depth camera(640x360).
164155
165-
Intrinsics of "Depth" / 640x360 / {Z16}:
166-
- Width: 640
167-
- Height: 360
168-
- PPX: 319.72
169-
- PPY: 188.20
170-
- Fx: 443.18
171-
- Fy: 443.18
172-
- Distortion: Brown Conrady (using plumb_bob model)
173-
- Coeffs: [0.0, 0.0, 0.0, 0.0, 0.0]
174-
- FOV (deg): 75 x 47.6
156+
Intrinsics aligned with RGB sensor for simulation consistency.
175157
"""
176158

177159
frequency: int = 30
178160
width: int = 640
179161
height: int = 360
180-
fx: float = 443.18
181-
fy: float = 443.18
182-
cx: float = 319.72
183-
cy: float = 188.20
162+
fx: float = 326.60852933950645
163+
fy: float = 326.51969070689336
164+
cx: float = 320.10334232983035
165+
cy: float = 180.82591009857398
184166
pixel_size: float = 0.003
185167
f_stop: float = 0.0
186168
focus_distance: float = 0.0

src/synthnova_config/src/synthnova_config/sensor/realsense_d415.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,16 @@ class RealsenseD415DepthSensorConfig(DepthSensorConfig):
7070
"""
7171
Configuration class for the RealSense D415 Depth camera.
7272
73-
Intrinsics of "Depth" / 1280x720 / {Z16}:
74-
- Width: 1280
75-
- Height: 720
76-
- PPX: 631.942749023438
77-
- PPY: 363.001342773438
78-
- Fx: 890.299133300781
79-
- Fy: 890.299133300781
80-
- Distortion: Brown Conrady (using plumb_bob model)
81-
- Coeffs: [0.0, 0.0, 0.0, 0.0, 0.0]
82-
- FOV (deg): 71.42 x 44.03
73+
Intrinsics aligned with RGB sensor for simulation consistency.
8374
"""
8475

8576
frequency: int = 60
8677
width: int = 1280
8778
height: int = 720
88-
fx: float = 890.299133300781
89-
fy: float = 890.299133300781
90-
cx: float = 631.942749023438
91-
cy: float = 363.001342773438
79+
fx: float = 912.569580078125
80+
fy: float = 909.815246582031
81+
cx: float = 629.409301757812
82+
cy: float = 366.805267333984
9283
pixel_size: float = 0.003
9384
f_stop: float = 0.0
9485
focus_distance: float = 0.0

src/synthnova_config/src/synthnova_config/sensor/realsense_d435.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,25 +69,16 @@ class RealsenseD435DepthSensorConfig(DepthSensorConfig):
6969
"""
7070
Configuration class for the RealSense D435 Depth camera.
7171
72-
Intrinsics of "Depth" / 1280x720 / {Z16}:
73-
- Width: 1280
74-
- Height: 720
75-
- PPX: 647.503784179688
76-
- PPY: 354.537139892578
77-
- Fx: 655.93505859375
78-
- Fy: 655.93505859375
79-
- Distortion: Brown Conrady (using plumb_bob model)
80-
- Coeffs: [0.0, 0.0, 0.0, 0.0, 0.0]
81-
- FOV (deg): 88.59 x 57.52
72+
Intrinsics aligned with RGB sensor for simulation consistency.
8273
"""
8374

84-
frequency: int = 60 # Standard frame rate for D435
75+
frequency: int = 60
8576
width: int = 1280
8677
height: int = 720
87-
fx: float = 655.93505859375
88-
fy: float = 655.93505859375
89-
cx: float = 647.503784179688
90-
cy: float = 354.537139892578
78+
fx: float = 910.542541503906
79+
fy: float = 910.544921875
80+
cx: float = 634.326416015625
81+
cy: float = 370.207214355469
9182
pixel_size: float = 0.003
9283
f_stop: float = 0.0
9384
focus_distance: float = 0.0

0 commit comments

Comments
 (0)