Commit bb4ab63
stereo_image_proc: disparity_node: Add parameter to control camera_info (#1051)
Add a parameter, use_image_transport_camera_info (default:
true), to control whether DisparityNode uses
image_transport::getCameraInfoTopic for deriving camera_info topics.
Default Behavior (backward compatible):
When use_image_transport_camera_info is true, the node continues using
image_transport::getCameraInfoTopic for camera_info resolution,
maintaining existing functionality.
Custom Behavior:
When use_image_transport_camera_info is false, the node directly uses
the camera_info topics specified via remapping (e.g., left/camera_info
and right/camera_info), bypassing image_transport's derivation logic.
This solution allows users to explicitly remap the camera_info topics
for both cameras, providing flexibility for scenarios where topic names
are not unique or need customization.
---------
Signed-off-by: Zhaoyuan Cheng <quic_zhaochen@quicinc.com>
Signed-off-by: Zhaoyuan <quic_zhaochen@quicinc.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>1 parent a7283c7 commit bb4ab63
2 files changed
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
316 | 327 | | |
317 | 328 | | |
318 | 329 | | |
| |||
0 commit comments