Skip to content

change get/set calibration config API to work with JSONs directly - #13168

Merged
SamerKhshiboun merged 2 commits into
realsenseai:developmentfrom
SamerKhshiboun:change_calib_config_api
Jul 21, 2024
Merged

change get/set calibration config API to work with JSONs directly#13168
SamerKhshiboun merged 2 commits into
realsenseai:developmentfrom
SamerKhshiboun:change_calib_config_api

Conversation

@SamerKhshiboun

@SamerKhshiboun SamerKhshiboun commented Jul 18, 2024

Copy link
Copy Markdown
Contributor

tested in
https://github.com/IntelRealSense/librealsense-private/pull/307

new unit test passed and sanity checks passed

@SamerKhshiboun
SamerKhshiboun force-pushed the change_calib_config_api branch 9 times, most recently from 7a58dab to 4bd86d2 Compare July 18, 2024 17:48
Comment thread src/ds/d500/d500-auto-calibration.cpp Outdated
static_cast<int>(ds::d500_calib_type::d500_calib_dynamic));
cmd.require_response = true;

// send command to device and get response (safety_interface_config entry + header)

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.

safety_interface_config?

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.

Fixed.

Comment thread src/ds/d500/d500-types/calibration-config.h
# License: Apache 2.0. See LICENSE file in root directory.
# Copyright(c) 2024 Intel Corporation. All Rights Reserved.

# test:donotrun

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 we should only add it to the relevant branch?
Or place a comment to "uncomment" this when D555e is connected to LibCI?

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.

Fixed. Added a comment.

test.start("Writing calibration config, then reading and comparing calibration config JSONs")

# save current calibration config json in order to restore it at the end
original_calib_config = ac_dev.get_calibration_config()

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.

Not sure we want to write calibration tables..
If the test stop in the middle we will get a very bad calibration table on the CI machines no?
How do you think we can make this more robust?

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.

Let's decide this offline.

@SamerKhshiboun
SamerKhshiboun merged commit 42e7adf into realsenseai:development Jul 21, 2024
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