Skip to content

Video profile eq - #8473

Merged
ev-mp merged 5 commits into
realsenseai:developmentfrom
doronhi:video-profile-eq
Mar 9, 2021
Merged

ev-mp merged 5 commits into
realsenseai:developmentfrom
doronhi:video-profile-eq

Conversation

@doronhi

@doronhi doronhi commented Mar 2, 2021 •

Copy link
Copy Markdown
Contributor

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

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread unit-tests/types/test-profile-eq.cpp Resolved
Comment thread unit-tests/types/test-profile-eq.cpp Resolved
Comment thread unit-tests/types/test-profile-eq.cpp Resolved
Comment thread unit-tests/types/test-profile-eq.cpp Resolved
if (devices.size() == 0) return;
auto dev = devices[0];

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

Copy link
Copy Markdown
Contributor

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

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

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 realsenseai: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