ds5-auto-calibration.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
7 #include "../core/advanced_mode.h"
8 
9 namespace librealsense
10 {
12  {
13  public:
14  auto_calibrated(std::shared_ptr<hw_monitor>& hwm);
15  void write_calibration() const override;
16  std::vector<uint8_t> run_on_chip_calibration(int timeout_ms, std::string json, float* health, update_progress_callback_ptr progress_callback) override;
17  std::vector<uint8_t> run_tare_calibration(int timeout_ms, float ground_truth_mm, std::string json, update_progress_callback_ptr progress_callback) override;
18  std::vector<uint8_t> get_calibration_table() const override;
19  void set_calibration_table(const std::vector<uint8_t>& calibration) override;
20  void reset_to_factory_calibration() const override;
21 
22  private:
23  std::vector<uint8_t> get_calibration_results(float* health = nullptr) const;
24  std::vector<uint8_t> get_PyRxFL_calibration_results(float* health = nullptr, float* health_fl = nullptr) const;
25  void handle_calibration_error(int status) const;
26  std::map<std::string, int> parse_json(std::string json);
27  std::shared_ptr< ds5_advanced_mode_base> change_preset();
28  void check_params(int speed, int scan_parameter, int data_sampling) const;
29  void check_tare_params(int speed, int scan_parameter, int data_sampling, int average_step_count, int step_count, int accuracy);
30  void check_focal_length_params(int step_count, int fy_scan_range, int keep_new_value_after_sucessful_scan, int interrrupt_data_samling, int adjust_both_sides, int fl_scan_location, int fy_scan_direction, int white_wall_mode) const;
31  void check_one_button_params(int speed, int keep_new_value_after_sucessful_scan, int data_sampling, int adjust_both_sides, int fl_scan_location, int fy_scan_direction, int white_wall_mode) const;
32 
33  std::vector<uint8_t> _curr_calibration;
34  std::shared_ptr<hw_monitor>& _hw_monitor;
35  };
36 
37 }
std::vector< uint8_t > get_PyRxFL_calibration_results(float *health=nullptr, float *health_fl=nullptr) const
void write_calibration() const override
std::vector< uint8_t > run_tare_calibration(int timeout_ms, float ground_truth_mm, std::string json, update_progress_callback_ptr progress_callback) override
a class to store JSON values
Definition: json.hpp:221
GLsizei const GLchar *const * string
status
Defines return codes that SDK interfaces use. Negative values indicate errors, a zero value indicates...
std::shared_ptr< ds5_advanced_mode_base > change_preset()
std::shared_ptr< rs2_update_progress_callback > update_progress_callback_ptr
Definition: src/types.h:1077
void reset_to_factory_calibration() const override
auto_calibrated(std::shared_ptr< hw_monitor > &hwm)
void check_tare_params(int speed, int scan_parameter, int data_sampling, int average_step_count, int step_count, int accuracy)
std::vector< uint8_t > _curr_calibration
void handle_calibration_error(int status) const
std::shared_ptr< hw_monitor > & _hw_monitor
void check_params(int speed, int scan_parameter, int data_sampling) const
std::vector< uint8_t > get_calibration_results(float *health=nullptr) const
void check_focal_length_params(int step_count, int fy_scan_range, int keep_new_value_after_sucessful_scan, int interrrupt_data_samling, int adjust_both_sides, int fl_scan_location, int fy_scan_direction, int white_wall_mode) const
std::vector< uint8_t > run_on_chip_calibration(int timeout_ms, std::string json, float *health, update_progress_callback_ptr progress_callback) override
std::map< std::string, int > parse_json(std::string json)
void set_calibration_table(const std::vector< uint8_t > &calibration) override
void check_one_button_params(int speed, int keep_new_value_after_sucessful_scan, int data_sampling, int adjust_both_sides, int fl_scan_location, int fy_scan_direction, int white_wall_mode) const
std::vector< uint8_t > get_calibration_table() const override


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:12