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 colorizer - Get depth units from depth_sensor API. #7645

Merged
merged 4 commits into from
Oct 29, 2020

Conversation

aangerma
Copy link
Contributor

@aangerma aangerma commented Oct 25, 2020

Get depth units from depth_sensor API instead of disparity_info to support also l500.
#7089
Tracked on:RS5-8868

@dorodnic
Copy link
Contributor

JIRA? GitHub issue?

src/proc/colorizer.cpp Show resolved Hide resolved
auto depth_sensor = As< librealsense::depth_sensor >( snr );
if( depth_sensor )
_depth_units = depth_sensor->get_depth_scale();

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add "Else" case with throw/error report

}
else
{
LOG_ERROR( "Failed to query depth units from sensor." );
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you guys keep putting in periods into log files? :)

@ev-mp ev-mp changed the title RS5-8868 fix for colorize - Get depth units from depth_sensor API. Fix colorizer - Get depth units from depth_sensor API. Oct 27, 2020
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 b7fe988 into IntelRealSense:development Oct 29, 2020
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.

4 participants