Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
rs2::on_chip_calib_manager Class Reference

#include <on-chip-calib.h>

Inheritance diagram for rs2::on_chip_calib_manager:
Inheritance graph
[legend]

Public Types

enum  auto_calib_action {
  RS2_CALIB_ACTION_ON_CHIP_OB_CALIB, RS2_CALIB_ACTION_ON_CHIP_CALIB, RS2_CALIB_ACTION_ON_CHIP_FL_CALIB, RS2_CALIB_ACTION_TARE_CALIB,
  RS2_CALIB_ACTION_TARE_GROUND_TRUTH
}
 

Public Member Functions

bool allow_calib_keep () const
 
void apply_calib (bool use_new)
 
void calibrate ()
 
void get_ground_truth ()
 
float get_health () const
 
float get_health_1 () const
 
float get_health_2 () const
 
std::pair< float, float > get_metric (bool use_new)
 
void keep ()
 
 on_chip_calib_manager (viewer_model &viewer, std::shared_ptr< subdevice_model > sub, device_model &model, device dev)
 
void restore_workspace (invoker invoke)
 
void update_last_used ()
 
- Public Member Functions inherited from rs2::process_manager
void check_error (std::string &error)
 
bool done () const
 
void fail (std::string error)
 
bool failed () const
 
const std::stringget_log () const
 
int get_progress () const
 
void log (std::string line)
 
 process_manager (std::string name)
 
void reset ()
 
void start (invoker invoke)
 
bool started () const
 
virtual ~process_manager ()=default
 

Public Attributes

std::shared_ptr< subdevice_model_sub
 
int accuracy = 2
 
auto_calib_action action = RS2_CALIB_ACTION_ON_CHIP_CALIB
 
int adjust_both_sides = 0
 
bool apply_preset = true
 
int average_step_count = 20
 
int fl_data_sampling = 1
 
int fl_scan_location = 0
 
int fl_step_count = 51
 
int fy_scan_direction = 0
 
int fy_scan_range = 40
 
float ground_truth = 1200.0f
 
bool intrinsic_scan = true
 
int keep_new_value_after_sucessful_scan = 1
 
float laser_status_prev = 0.0f
 
int retry_times = 0
 
int speed = 3
 
int speed_fl = 1
 
int step_count = 20
 
bool toggle = false
 
int white_wall_mode = 0
 

Private Member Functions

rs2::depth_frame fetch_depth_frame (invoker invoke)
 
std::pair< float, float > get_depth_metrics (invoker invoke)
 
void process_flow (std::function< void()> cleanup, invoker invoke) override
 
std::vector< uint8_tsafe_send_command (const std::vector< uint8_t > &cmd, const std::string &name)
 
bool start_viewer (int w, int h, int fps, invoker invoke)
 
void stop_viewer (invoker invoke)
 
void try_start_viewer (int w, int h, int fps, invoker invoke)
 

Private Attributes

device _dev
 
float _health = -1.0f
 
float _health_1 = -1.0f
 
float _health_2 = -1.0f
 
bool _in_3d_view = false
 
std::vector< std::pair< float, float > > _metrics
 
device_model_model
 
std::vector< uint8_t_new_calib
 
std::vector< uint8_t_old_calib
 
bool _post_processing = false
 
bool _restored = true
 
bool _synchronized = false
 
std::shared_ptr< subdevice_ui_selection_ui { nullptr }
 
int _uid = 0
 
viewer_model_viewer
 
bool _was_streaming = false
 

Additional Inherited Members

- Protected Attributes inherited from rs2::process_manager
bool _done = false
 
bool _failed = false
 
std::string _last_error
 
std::string _log
 
std::mutex _log_lock
 
std::string _process_name
 
int _progress = 0
 
bool _started = false
 

Detailed Description

Definition at line 23 of file on-chip-calib.h.

Member Enumeration Documentation

Enumerator
RS2_CALIB_ACTION_ON_CHIP_OB_CALIB 
RS2_CALIB_ACTION_ON_CHIP_CALIB 
RS2_CALIB_ACTION_ON_CHIP_FL_CALIB 
RS2_CALIB_ACTION_TARE_CALIB 
RS2_CALIB_ACTION_TARE_GROUND_TRUTH 

Definition at line 65 of file on-chip-calib.h.

Constructor & Destructor Documentation

rs2::on_chip_calib_manager::on_chip_calib_manager ( viewer_model viewer,
std::shared_ptr< subdevice_model sub,
device_model model,
device  dev 
)
inline

Definition at line 26 of file on-chip-calib.h.

Member Function Documentation

bool rs2::on_chip_calib_manager::allow_calib_keep ( ) const
inline

Definition at line 35 of file on-chip-calib.h.

void rs2::on_chip_calib_manager::apply_calib ( bool  use_new)

Definition at line 670 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::calibrate ( )

Definition at line 350 of file on-chip-calib.cpp.

rs2::depth_frame rs2::on_chip_calib_manager::fetch_depth_frame ( invoker  invoke)
private

Definition at line 52 of file on-chip-calib.cpp.

std::pair< float, float > rs2::on_chip_calib_manager::get_depth_metrics ( invoker  invoke)
private

Definition at line 214 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::get_ground_truth ( )

Definition at line 455 of file on-chip-calib.cpp.

float rs2::on_chip_calib_manager::get_health ( ) const
inline

Definition at line 38 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::get_health_1 ( ) const
inline

Definition at line 39 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::get_health_2 ( ) const
inline

Definition at line 40 of file on-chip-calib.h.

std::pair< float, float > rs2::on_chip_calib_manager::get_metric ( bool  use_new)

Definition at line 192 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::keep ( )

Definition at line 663 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::process_flow ( std::function< void()>  cleanup,
invoker  invoke 
)
overrideprivatevirtual

Implements rs2::process_manager.

Definition at line 540 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::restore_workspace ( invoker  invoke)

Definition at line 631 of file on-chip-calib.cpp.

std::vector< uint8_t > rs2::on_chip_calib_manager::safe_send_command ( const std::vector< uint8_t > &  cmd,
const std::string name 
)
private

Definition at line 327 of file on-chip-calib.cpp.

bool rs2::on_chip_calib_manager::start_viewer ( int  w,
int  h,
int  fps,
invoker  invoke 
)
private

Definition at line 80 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::stop_viewer ( invoker  invoke)
private

Definition at line 19 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::try_start_viewer ( int  w,
int  h,
int  fps,
invoker  invoke 
)
private

Definition at line 197 of file on-chip-calib.cpp.

void rs2::on_chip_calib_manager::update_last_used ( )

Definition at line 342 of file on-chip-calib.cpp.

Member Data Documentation

device rs2::on_chip_calib_manager::_dev
private

Definition at line 108 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::_health = -1.0f
private

Definition at line 105 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::_health_1 = -1.0f
private

Definition at line 106 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::_health_2 = -1.0f
private

Definition at line 107 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::_in_3d_view = false
private

Definition at line 114 of file on-chip-calib.h.

std::vector<std::pair<float, float> > rs2::on_chip_calib_manager::_metrics
private

Definition at line 120 of file on-chip-calib.h.

device_model& rs2::on_chip_calib_manager::_model
private

Definition at line 121 of file on-chip-calib.h.

std::vector<uint8_t> rs2::on_chip_calib_manager::_new_calib
private

Definition at line 119 of file on-chip-calib.h.

std::vector<uint8_t> rs2::on_chip_calib_manager::_old_calib
private

Definition at line 119 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::_post_processing = false
private

Definition at line 112 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::_restored = true
private

Definition at line 123 of file on-chip-calib.h.

std::shared_ptr<subdevice_model> rs2::on_chip_calib_manager::_sub

Definition at line 90 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::_synchronized = false
private

Definition at line 111 of file on-chip-calib.h.

std::shared_ptr<subdevice_ui_selection> rs2::on_chip_calib_manager::_ui { nullptr }
private

Definition at line 113 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::_uid = 0
private

Definition at line 115 of file on-chip-calib.h.

viewer_model& rs2::on_chip_calib_manager::_viewer
private

Definition at line 117 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::_was_streaming = false
private

Definition at line 110 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::accuracy = 2

Definition at line 59 of file on-chip-calib.h.

auto_calib_action rs2::on_chip_calib_manager::action = RS2_CALIB_ACTION_ON_CHIP_CALIB

Definition at line 74 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::adjust_both_sides = 0

Definition at line 81 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::apply_preset = true

Definition at line 63 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::average_step_count = 20

Definition at line 57 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::fl_data_sampling = 1

Definition at line 80 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::fl_scan_location = 0

Definition at line 83 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::fl_step_count = 51

Definition at line 77 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::fy_scan_direction = 0

Definition at line 84 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::fy_scan_range = 40

Definition at line 78 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::ground_truth = 1200.0f

Definition at line 56 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::intrinsic_scan = true

Definition at line 62 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::keep_new_value_after_sucessful_scan = 1

Definition at line 79 of file on-chip-calib.h.

float rs2::on_chip_calib_manager::laser_status_prev = 0.0f

Definition at line 75 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::retry_times = 0

Definition at line 87 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::speed = 3

Definition at line 60 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::speed_fl = 1

Definition at line 61 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::step_count = 20

Definition at line 58 of file on-chip-calib.h.

bool rs2::on_chip_calib_manager::toggle = false

Definition at line 88 of file on-chip-calib.h.

int rs2::on_chip_calib_manager::white_wall_mode = 0

Definition at line 85 of file on-chip-calib.h.


The documentation for this class was generated from the following files:


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