Repository navigation
Fix D555 DDS device detection to not depend on Intel name prefix - #3524
Merged
Merged
Conversation
sareluzi
approved these changes
Jun 10, 2026
sareluzi
left a comment
There was a problem hiding this comment.
LGTM. maybe review with another engineer also
OhadMeir
reviewed
Jun 10, 2026
| uint16_t pid; | ||
|
|
||
| if (device_name == "Intel RealSense D555") | ||
| if (connection_type == "DDS" && device_name.find("D555") != std::string::npos) |
Contributor
There was a problem hiding this comment.
As discussed, also search "RealSense" in the string
OhadMeir
reviewed
Jun 10, 2026
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.
Overview: A pending librealsense change drops the
Intelprefix fromRS2_CAMERA_INFO_NAME(e.g.Intel RealSense D555->RealSense D555). The ROS2 wrapper detects DDS-connected D555 by exact name match, so after that change a D555 over DDS is no longer recognized and the node fails to start.Why this special-case exists
DDS devices are discovered over the network, and the realdds discovery protocol carries no USB PID. librealsense therefore hardcodes
RS2_CAMERA_INFO_PRODUCT_IDas the literal string"DDS"for DDS devices, sostd::stoi(pid_str, 0, 16)cannot resolve the model. The wrapper falls back to the only stable identifier a DDS device broadcasts - its name - to forceRS555_PID. (USB/GMSL D555 expose a real PID and use the normal path.)Change
connection_type == "DDS"combined with a prefix-tolerantdevice_name.find("D555"), instead of the exact string"Intel RealSense D555".RS2_CAMERA_INFO_CONNECTION_TYPEwithsupports()soget_infocannot throw.This survives the librealsense rename (matches both old and new names), keeps USB/GMSL devices on the real-PID path, and won't misfire on recovery devices.