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

Close laser emitter on Focal Length calibration #11995

Merged
merged 2 commits into from
Jul 16, 2023

Conversation

OhadMeir
Copy link
Contributor

@OhadMeir OhadMeir commented Jul 13, 2023

Close laser emitter during FL calibration and verify other calibration work according to table by algo team
Tracked on [LRS-666]

@OhadMeir OhadMeir requested a review from Nir-Az July 13, 2023 15:26
@Nir-Az
Copy link
Collaborator

Nir-Az commented Jul 13, 2023

How hard it is to add some kind of UT for this?
Is this even possible?

@OhadMeir
Copy link
Contributor Author

I Don't think if it possible since viewer code is not reflected in the API

@Nir-Az
Copy link
Collaborator

Nir-Az commented Jul 13, 2023

I Don't think if it possible since viewer code is not reflected in the API

No python API for it? python calibration example?

_sub->s->set_option(RS2_OPTION_EMITTER_ENABLED, 0.0f);
if (_sub->s->supports(RS2_OPTION_THERMAL_COMPENSATION))
_sub->s->set_option(RS2_OPTION_THERMAL_COMPENSATION, 0.f);
// TODO - When implementing UV mapping - should remove from here and handle in process_flow()
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this means?
UV mapping is implemented for D400 devices, no?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Like discussed lets rephrased to UV mapping based calibration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rephrased to UV mapping calibration

if (_sub->s->supports(RS2_OPTION_THERMAL_COMPENSATION))
_sub->s->set_option(RS2_OPTION_THERMAL_COMPENSATION, 0.f);
// TODO - When implementing UV mapping - should remove from here and handle in process_flow()
set_laser_emitter_state( off_value );
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see you removed the supports check, why?
Don't needed anymore?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add it inside the helper funcs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is checked in the helper functions. More "clean" this way, and less code repetitions

@@ -516,8 +565,8 @@ namespace rs2
break;
}

if (_sub->s->supports(RS2_OPTION_EMITTER_ENABLED))
_sub->s->set_option(RS2_OPTION_EMITTER_ENABLED, 0.0f);
// TODO - When implementing UV mapping - should remove from here and handle in process_flow()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same, moved into set_laser_emitter_state function

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

Looks great

@Nir-Az Nir-Az merged commit 0c07f67 into IntelRealSense:development Jul 16, 2023
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