Skip to content

Fix colorizer - Get depth units from depth_sensor API. - #7645

Merged
ev-mp merged 4 commits into
realsenseai:developmentfrom
aangerma:RS5-8868
Oct 29, 2020
Merged

Fix colorizer - Get depth units from depth_sensor API.#7645
ev-mp merged 4 commits into
realsenseai:developmentfrom
aangerma:RS5-8868

Conversation

@aangerma

@aangerma aangerma commented Oct 25, 2020

Copy link
Copy Markdown
Contributor

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

@dorodnic

Copy link
Copy Markdown
Contributor

JIRA? GitHub issue?

Comment thread src/proc/colorizer.cpp
Comment thread src/proc/colorizer.cpp Outdated
auto depth_sensor = As< librealsense::depth_sensor >( snr );
if( depth_sensor )
_depth_units = depth_sensor->get_depth_scale();

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.

Please add "Else" case with throw/error report

Comment thread src/proc/colorizer.cpp Outdated
}
else
{
LOG_ERROR( "Failed to query depth units from 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.

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

@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 b7fe988 into realsenseai: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