Skip to content

Fix examples for D555 - #13734

Merged
OhadMeir merged 3 commits into
realsenseai:developmentfrom
OhadMeir:development
Feb 3, 2025
Merged

OhadMeir merged 3 commits into
realsenseai:developmentfrom
OhadMeir:development

Conversation

@OhadMeir

@OhadMeir OhadMeir commented Feb 3, 2025

Copy link
Copy Markdown
Contributor

Tracked on [RSDEV-3069]

if (1 == is_depth_sensor_found)
{
depth_scale = rs2_get_option((const rs2_options*)sensor, RS2_OPTION_DEPTH_UNITS, &e);
if( rs2_supports_option((const rs2_options*)sensor, RS2_OPTION_DEPTH_UNITS, &e) )

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Don't we have depth scale on D555?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The camera does not publish this as an option. You can use the CPP API depth_sensor.get_depth_scale(), but this is a C example.

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@OhadMeir
OhadMeir merged commit 818c156 into realsenseai:development Feb 3, 2025
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