Repository navigation
fix(autoware_carla_interface): publish every camera type, not only sensor.camera.rgb - #13409
Merged
hakuturu583 merged 1 commit intoOct 1, 2026
Conversation
ujinf74
requested review from
Max-Bin,
hakuturu583 and
maxime-clem
as code owners
September 18, 2026 10:16
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Contributor
|
@ujinf74 Could you resolve conflicts? |
…nsor.camera.rgb The spawn path accepts any sensor.camera.* blueprint and the publisher lookup matches the same prefix, but publisher creation and the publish dispatch compared the type exactly against sensor.camera.rgb. A mapping naming CARLA's depth or semantic segmentation camera therefore spawned the sensor, got a "Unknown sensor type" warning instead of publishers, and then dropped every frame it produced into a debug log. These cameras deliver the same BGRA frame through the same callback and want the same pair of image/camera_info publishers, so match the prefix in both places, as the other two paths already do. Claude-Session: https://claude.ai/code/session_011TMdPd8VUDxUrFtckxg2AQ Signed-off-by: ujinf74 <ujin@tukorea.ac.kr>
ujinf74
force-pushed
the
fix/carla-camera-sensor-types
branch
from
September 25, 2026 11:52
39a137b to
4611858
Compare
Contributor
Author
|
Rebased onto Both conflicts came from #13407/#13408/#13411 landing in the same file:
No behavior change from the previous revision. Package tests pass (22) and |
hakuturu583
enabled auto-merge (squash)
October 1, 2026 04:08
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13409 +/- ##
==========================================
- Coverage 20.74% 20.74% -0.01%
==========================================
Files 2058 2058
Lines 143007 143007
Branches 52631 52631
==========================================
- Hits 29662 29661 -1
Misses 89560 89560
- Partials 23785 23786 +1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
shmpwk
pushed a commit
to tier4/pilot_auto_simulation
that referenced
this pull request
Oct 14, 2026
…nsor.camera.rgb (autowarefoundation/autoware_universe#13409) The spawn path accepts any sensor.camera.* blueprint and the publisher lookup matches the same prefix, but publisher creation and the publish dispatch compared the type exactly against sensor.camera.rgb. A mapping naming CARLA's depth or semantic segmentation camera therefore spawned the sensor, got a "Unknown sensor type" warning instead of publishers, and then dropped every frame it produced into a debug log. These cameras deliver the same BGRA frame through the same callback and want the same pair of image/camera_info publishers, so match the prefix in both places, as the other two paths already do. Claude-Session: https://claude.ai/code/session_011TMdPd8VUDxUrFtckxg2AQ Signed-off-by: ujinf74 <ujin@tukorea.ac.kr>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The four places that decide what a camera is do not agree:
SensorWrapper._configure_sensor_blueprint)startswith("sensor.camera")carla_ros2_interface._setup_publishers)startswith("sensor.camera")ROSPublisherManager.create_publisher_for_sensor)== "sensor.camera.rgb"carla_ros2_interface._publish_sensor_data)== "sensor.camera.rgb"So a mapping naming
sensor.camera.depthorsensor.camera.semantic_segmentationspawns the sensor and attaches its callback, but getsUnknown sensor type: sensor.camera.depthinstead of publishers, and every frame it produces then falls through the dispatch into adebuglog. The sensor renders for the whole run and nothing is ever published.These cameras deliver the same BGRA frame through the same callback as the RGB one and want the same image/camera_info pair, so this PR matches the prefix in the two places that did not.
Related links
Parent Issue:
How was this PR tested?
sensor.camera.depth: the bridge creates its image and camera_info publishers and the camera publishes (640x480bgra8, 1,228,800 bytes per frame, 19.80 Hz against a 20 Hz throttle). Onmainthe same mapping logsUnknown sensor type: sensor.camera.depthand publishes nothing.pytestovertest/: 14 passed (no test touches these paths; nothing regressed).markdownlint,prettier,isort,blackandflake8-rospre-commit hooks pass on the changed files.Notes for reviewers
The shipped mappings only use
sensor.camera.rgb, so nothing changes for them.The pixel values of a depth or semantic camera are an encoding, not a color, and this PR publishes them untouched as
bgra8for a consumer to decode. Decoding them in the bridge would be a separate change.