-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
…nfo to support also l500.
JIRA? GitHub issue? |
src/proc/colorizer.cpp
Outdated
auto depth_sensor = As< librealsense::depth_sensor >( snr ); | ||
if( depth_sensor ) | ||
_depth_units = depth_sensor->get_depth_scale(); | ||
|
There was a problem hiding this comment.
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
src/proc/colorizer.cpp
Outdated
} | ||
else | ||
{ | ||
LOG_ERROR( "Failed to query depth units from sensor." ); |
There was a problem hiding this comment.
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? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Get depth units from depth_sensor API instead of disparity_info to support also l500.
#7089
Tracked on:RS5-8868