auto-calibrated-device.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3 #pragma once
4 
5 #include "types.h"
6 #include "core/extension.h"
7 #include <vector>
8 
9 
10 namespace librealsense
11 {
13  {
14  public:
15  virtual void write_calibration() const = 0;
16  virtual std::vector<uint8_t> run_on_chip_calibration(int timeout_ms, std::string json, float* const health, rs2_update_progress_callback_sptr progress_callback) = 0;
17  virtual std::vector<uint8_t> run_tare_calibration( int timeout_ms, float ground_truth_mm, std::string json, float* const health, rs2_update_progress_callback_sptr progress_callback) = 0;
18  virtual std::vector<uint8_t> process_calibration_frame(int timeout_ms, const rs2_frame* f, float* const health, rs2_update_progress_callback_sptr progress_callback) = 0;
19  virtual std::vector<uint8_t> get_calibration_table() const = 0;
20  virtual void set_calibration_table(const std::vector<uint8_t>& calibration) = 0;
21  virtual void reset_to_factory_calibration() const = 0;
22  virtual std::vector<uint8_t> run_focal_length_calibration(rs2_frame_queue* left, rs2_frame_queue* right, float target_w, float target_h,
23  int adjust_both_sides, float* ratio, float* angle, rs2_update_progress_callback_sptr progress_callback) = 0;
24  virtual std::vector<uint8_t> run_uv_map_calibration(rs2_frame_queue* left, rs2_frame_queue* color, rs2_frame_queue* depth, int py_px_only,
25  float* const health, int health_size, rs2_update_progress_callback_sptr progress_callback) = 0;
26  virtual float calculate_target_z(rs2_frame_queue* queue1, rs2_frame_queue* queue2, rs2_frame_queue* queue3,
27  float target_w, float target_h, rs2_update_progress_callback_sptr progress_callback) = 0;
28  };
30 }
example1 - object detection.left
left
Definition: example1 - object detection.py:70
rs2_update_progress_callback_sptr
std::shared_ptr< rs2_update_progress_callback > rs2_update_progress_callback_sptr
Definition: rs_types.hpp:97
color
GLuint color
Definition: glad/glad/glad.h:3181
librealsense
Definition: algo.h:18
librealsense::auto_calibrated_interface::set_calibration_table
virtual void set_calibration_table(const std::vector< uint8_t > &calibration)=0
librealsense::auto_calibrated_interface::write_calibration
virtual void write_calibration() const =0
librealsense::MAP_EXTENSION
MAP_EXTENSION(RS2_EXTENSION_AUTO_CALIBRATED_DEVICE, auto_calibrated_interface)
librealsense::auto_calibrated_interface::get_calibration_table
virtual std::vector< uint8_t > get_calibration_table() const =0
rs2_frame
struct rs2_frame rs2_frame
Definition: rs_types.h:230
string
GLsizei const GLchar *const * string
Definition: glad/glad/glad.h:2861
right
GLdouble right
Definition: glad/glad/glad.h:2249
librealsense::auto_calibrated_interface::run_on_chip_calibration
virtual std::vector< uint8_t > run_on_chip_calibration(int timeout_ms, std::string json, float *const health, rs2_update_progress_callback_sptr progress_callback)=0
librealsense::auto_calibrated_interface::reset_to_factory_calibration
virtual void reset_to_factory_calibration() const =0
rs2_frame_queue
Definition: rs.cpp:195
librealsense::json
rsutils::json json
Definition: json_loader.hpp:26
librealsense::auto_calibrated_interface::process_calibration_frame
virtual std::vector< uint8_t > process_calibration_frame(int timeout_ms, const rs2_frame *f, float *const health, rs2_update_progress_callback_sptr progress_callback)=0
f
GLdouble f
Definition: glad/glad/glad.h:1517
extension.h
depth_auto_calibration_example.progress_callback
def progress_callback(progress)
Definition: depth_auto_calibration_example.py:96
angle
cv::RotateFlags angle(cv::RotateFlags::ROTATE_90_CLOCKWISE)
librealsense::auto_calibrated_interface::run_uv_map_calibration
virtual std::vector< uint8_t > run_uv_map_calibration(rs2_frame_queue *left, rs2_frame_queue *color, rs2_frame_queue *depth, int py_px_only, float *const health, int health_size, rs2_update_progress_callback_sptr progress_callback)=0
RS2_EXTENSION_AUTO_CALIBRATED_DEVICE
@ RS2_EXTENSION_AUTO_CALIBRATED_DEVICE
Definition: rs_types.h:177
librealsense::auto_calibrated_interface::calculate_target_z
virtual float calculate_target_z(rs2_frame_queue *queue1, rs2_frame_queue *queue2, rs2_frame_queue *queue3, float target_w, float target_h, rs2_update_progress_callback_sptr progress_callback)=0
librealsense::auto_calibrated_interface::run_focal_length_calibration
virtual std::vector< uint8_t > run_focal_length_calibration(rs2_frame_queue *left, rs2_frame_queue *right, float target_w, float target_h, int adjust_both_sides, float *ratio, float *angle, rs2_update_progress_callback_sptr progress_callback)=0
librealsense::auto_calibrated_interface
Definition: auto-calibrated-device.h:12
types.h
librealsense::auto_calibrated_interface::run_tare_calibration
virtual std::vector< uint8_t > run_tare_calibration(int timeout_ms, float ground_truth_mm, std::string json, float *const health, rs2_update_progress_callback_sptr progress_callback)=0
depth
GLint GLint GLsizei GLsizei GLsizei depth
Definition: glad/glad/glad.h:2398


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:00