calibration-model.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2021 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <librealsense2/rs.hpp>
7 #include "notifications.h"
8 
9 namespace librealsense
10 {
11  struct float3x3;
12 }
13 
14 namespace helpers
15 {
16  // Calculate CRC code for arbitrary characters buffer
17  uint32_t calc_crc32(const uint8_t* buf, size_t bufsize);
18 }
19 
20 namespace rs2
21 {
22  class ux_window;
23 
25  {
26  public:
27  calibration_model(rs2::device dev, std::shared_ptr<notifications_model> not_model);
28 
29  bool supports();
30 
31  void update(ux_window& window, std::string& error_message);
32 
33  void open() { to_open = true; }
34 
35  private:
36  void draw_float4x4(std::string name, librealsense::float3x3& feild, const librealsense::float3x3& original, bool& changed);
37  void draw_float(std::string name, float& x, const float& orig, bool& changed);
38 
40  bool to_open = false;
41  bool _accept = false;
42 
43  std::vector<uint8_t> _calibration;
44  std::vector<uint8_t> _original;
45 
46  int selected_resolution = 0;
47 
48  std::weak_ptr<notifications_model> _not_model;
49  };
50 }
std::vector< uint8_t > _calibration
GLuint const GLchar * name
Definition: animated.h:9
unsigned char uint8_t
Definition: stdint.h:78
GLenum GLuint GLenum GLsizei const GLchar * buf
void update(rs2::update_device fwu_dev, std::vector< uint8_t > fw_image)
list orig
Definition: rmse.py:46
GLdouble x
unsigned int uint32_t
Definition: stdint.h:80
std::vector< uint8_t > _original
std::weak_ptr< notifications_model > _not_model
uint32_t calc_crc32(const uint8_t *buf, size_t bufsize)
Calculate CRC code for arbitrary characters buffer.
Definition: types.cpp:222


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Thu Dec 22 2022 03:41:42