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

Video profile eq #8473

Merged
merged 5 commits into from
Mar 9, 2021
Merged

Conversation

doronhi
Copy link
Contributor

@doronhi doronhi commented Mar 2, 2021

video_stream_profile class is missing operator==
This cause 2 video_stream_profile objects to use the stream_profile::operator== instead which gives false results.
PR includes a test to demonstrate the issue and the fix.

Relates to DSO-16565

Copy link
Collaborator

@ev-mp ev-mp left a comment

Choose a reason for hiding this comment

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

Put DSO reference in description

unit-tests/types/test-profile-eq.cpp Show resolved Hide resolved
unit-tests/types/test-profile-eq.cpp Outdated Show resolved Hide resolved
unit-tests/types/test-profile-eq.cpp Show resolved Hide resolved
unit-tests/types/test-profile-eq.cpp Outdated Show resolved Hide resolved
if (devices.size() == 0) return;
auto dev = devices[0];

auto depth_sens = dev.first< rs2::depth_sensor >();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add check for cast and exist gracefully if casting fails, i.e. with T265.
Alternatively, modify the flow to handle T265 as well

Copy link
Collaborator

@ev-mp ev-mp left a comment

Choose a reason for hiding this comment

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

LGTM

@ev-mp ev-mp merged commit 6fef8a2 into IntelRealSense:development Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants