Skip to content

Close laser emitter on Focal Length calibration - #11995

Merged
Nir-Az merged 2 commits into
realsenseai:developmentfrom
OhadMeir:calibrations
Jul 16, 2023
Merged

Nir-Az merged 2 commits into
realsenseai:developmentfrom
OhadMeir:calibrations

Conversation

@OhadMeir

@OhadMeir OhadMeir commented Jul 13, 2023 •

Copy link
Copy Markdown
Contributor

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

Nir-Az commented Jul 13, 2023 •

Copy link
Copy Markdown
Collaborator

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

@OhadMeir

Copy link
Copy Markdown
Contributor Author

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

@Nir-Az

Nir-Az commented Jul 13, 2023

Copy link
Copy Markdown
Collaborator

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

No python API for it? python calibration example?

Comment thread common/on-chip-calib.cpp Outdated
_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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread common/on-chip-calib.cpp
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread common/on-chip-calib.cpp Outdated

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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Same

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.

Same, moved into set_laser_emitter_state function

@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.

Looks great

@Nir-Az
Nir-Az merged commit 0c07f67 into realsenseai: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