Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dds device stream-type-and-index mapping #13403

Merged
merged 3 commits into from
Oct 14, 2024

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Oct 7, 2024

In an effort to improve debugging, I moved the fourcc code to rsutils (rsutils::type::fourcc) and added backend_stream_profile::to_stream() allowing us to print it.

But the main feature here is a bug fix:

The device-proxy maintains a mapping from stream-type-and-index but it was global for all streams. I.e., if two streams share an index, the second one was not be recorded and an error was not issued. Our unit-test, test-librs-format-conversion.py, did exactly this, and I noticed it failing when I added the splitting of Y12I into two separate streams.

The mapping is now per sensor.

@maloel maloel requested a review from OhadMeir October 7, 2024 06:53
{
results.push_back(mfp.profile);
});
foreach_profile(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change still needed or can it be reverted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right that it's not needed but I think it's convenient to keep the debug line there, commented.

Copy link
Contributor

@OhadMeir OhadMeir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment. Can be merged after handling it

@maloel maloel merged commit 473609c into IntelRealSense:development Oct 14, 2024
20 checks passed
@maloel maloel deleted the type-index branch October 14, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants