7 #include "../src/concurrency.h" 8 #include "../src/algo.h" 15 class subdevice_model;
16 struct subdevice_ui_selection;
17 class rect_calculator;
32 if (!strcmp(dev_name,
"Intel RealSense D415")) {
speed = 4; }
52 std::pair<float, float>
get_metric(
bool use_new);
90 std::shared_ptr<subdevice_model>
_sub;
113 std::shared_ptr<subdevice_ui_selection>
_ui {
nullptr };
151 std::shared_ptr<on_chip_calib_manager> manager,
bool expaned);
157 void set_color_scheme(
float t)
const override;
159 void draw_dismiss(
ux_window& win,
int x,
int y)
override;
161 void draw_intrinsic_extrinsic(
int x,
int y);
162 int calc_height()
override;
163 void dismiss(
bool snooze)
override;
165 bool use_new_calib =
true;
176 int calculate(
const rs2_frame * frame_ref,
float rect_sides[4]);
179 static const int _frame_num = 25;
182 void calculate_rect_sides(
float rect_sides[4]);
187 float _rec_sides[_frame_num][4];
190 const int _reset_limit = 10;
std::pair< float, float > get_depth_metrics(invoker invoke)
GLuint const GLchar * name
on_chip_calib_manager(viewer_model &viewer, std::shared_ptr< subdevice_model > sub, device_model &model, device dev)
std::vector< uint8_t > safe_send_command(const std::vector< uint8_t > &cmd, const std::string &name)
int keep_new_value_after_sucessful_scan
rs2::depth_frame fetch_depth_frame(invoker invoke)
void apply_calib(bool use_new)
std::vector< std::pair< float, float > > _metrics
float get_health_2() const
GLdouble GLdouble GLdouble w
std::vector< uint8_t > _old_calib
GLsizei const GLchar *const * string
GLfloat GLfloat GLfloat GLfloat h
void stop_viewer(invoker invoke)
std::shared_ptr< subdevice_ui_selection > _ui
on_chip_calib_manager & get_manager()
std::function< void(std::function< void()>)> invoker
std::vector< uint8_t > _new_calib
std::pair< float, float > get_metric(bool use_new)
void try_start_viewer(int w, int h, int fps, invoker invoke)
const char * get_info(rs2_camera_info info) const
float get_health_1() const
std::shared_ptr< subdevice_model > _sub
virtual ~rect_calculator()
bool start_viewer(int w, int h, int fps, invoker invoke)
void restore_workspace(invoker invoke)
bool allow_calib_keep() const
struct rs2_frame rs2_frame
void process_flow(std::function< void()> cleanup, invoker invoke) override