calibration-model.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2024 Intel Corporation. All Rights Reserved.
3 #pragma once
4 
5 #include <librealsense2/rs.hpp>
6 #include "notifications.h"
8 
9 
10 namespace rs2
11 {
12  class ux_window;
13 
15  {
17 
18  public:
19  calibration_model(rs2::device dev, std::shared_ptr<notifications_model> not_model);
20 
21  bool supports();
22 
23  void update(ux_window& window, std::string& error_message);
24 
25  void open() { to_open = true; }
26 
27  private:
28  void draw_float4x4(std::string name, float3x3 & feild, const float3x3& original, bool& changed);
29  void draw_float(std::string name, float& x, const float& orig, bool& changed);
30 
32  bool to_open = false;
33  bool _accept = false;
34 
35  std::vector<uint8_t> _calibration;
36  std::vector<uint8_t> _original;
37 
39 
40  std::weak_ptr<notifications_model> _not_model;
41  };
42 }
rs2::device
Definition: rs_device.hpp:19
rs2::calibration_model::_accept
bool _accept
Definition: calibration-model.h:33
rs2::calibration_model::_original
std::vector< uint8_t > _original
Definition: calibration-model.h:36
rs2::calibration_model::dev
rs2::device dev
Definition: calibration-model.h:31
string
GLsizei const GLchar *const * string
Definition: glad/glad/glad.h:2861
rs2::calibration_model::selected_resolution
int selected_resolution
Definition: calibration-model.h:38
rs2::calibration_model::draw_float
void draw_float(std::string name, float &x, const float &orig, bool &changed)
Definition: calibration-model.cpp:29
rs.hpp
rs2::calibration_model::open
void open()
Definition: calibration-model.h:25
rs2
Definition: animated.h:9
rs2::calibration_model::_not_model
std::weak_ptr< notifications_model > _not_model
Definition: calibration-model.h:40
rs2::calibration_model
Definition: calibration-model.h:14
rsutils::number::float3x3
Definition: third-party/rsutils/include/rsutils/number/float3.h:57
name
GLuint const GLchar * name
Definition: glad/glad/glad.h:2777
rs2::calibration_model::to_open
bool to_open
Definition: calibration-model.h:32
window
Definition: example.hpp:513
rs2::calibration_model::_calibration
std::vector< uint8_t > _calibration
Definition: calibration-model.h:35
rs2::calibration_model::float3x3
rsutils::number::float3x3 float3x3
Definition: calibration-model.h:16
rs2::calibration_model::calibration_model
calibration_model(rs2::device dev, std::shared_ptr< notifications_model > not_model)
Definition: calibration-model.cpp:15
notifications.h
rs2::calibration_model::supports
bool supports()
Definition: calibration-model.cpp:21
float3.h
x
GLdouble x
Definition: glad/glad/glad.h:2279
rmse.orig
list orig
Definition: rmse.py:46
rs2::ux_window
Definition: ux-window.h:35
rs2::calibration_model::update
void update(ux_window &window, std::string &error_message)
Definition: calibration-model.cpp:75
rs2::calibration_model::draw_float4x4
void draw_float4x4(std::string name, float3x3 &feild, const float3x3 &original, bool &changed)
Definition: calibration-model.cpp:41


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