Typedefs | Enumerations | Functions | Variables
presets-common.h File Reference
#include "../../test.h"
#include <concurrency.h>
#include <types.h>
#include "l500/l500-private.h"
#include "l500/l500-options.h"
#include "../send-hw-monitor-command.h"
Include dependency graph for presets-common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef std::map< std::pair< rs2_digital_gain, rs2_sensor_mode >, std::map< rs2_option, float > > gain_values_map
 
typedef std::pair< rs2_l500_visual_preset, rs2_sensor_modepreset_mode_pair
 
typedef std::map< preset_mode_pair, std::map< rs2_option, float > > preset_values_map
 

Enumerations

enum  presets_useful_laser_values { default_laser, max_laser }
 

Functions

gain_values_map build_gain_to_expected_defaults_map (rs2::device &dev, rs2::depth_sensor &depth_sens)
 
void build_new_device_and_do (std::function< void(rs2::depth_sensor &depth_sens) > action)
 
std::map< rs2_option, float > build_preset_to_expected_defaults_map (rs2::device &dev, rs2::depth_sensor &depth_sens, preset_mode_pair preset_mode)
 
void build_preset_to_expected_values_map (rs2::device &dev, rs2::depth_sensor &depth_sens, preset_mode_pair preset_mode, std::map< rs2_option, float > &expected_values, std::map< rs2_option, float > &expected_defs)
 
preset_values_map build_presets_to_expected_defaults_map (rs2::device &dev, rs2::depth_sensor &depth_sens)
 
void build_presets_to_expected_values_defs_map (rs2::device &dev, rs2::depth_sensor &depth_sens, preset_values_map &expected_values, preset_values_map &expected_defs)
 
void check_preset_is_equal_to (rs2::depth_sensor &depth_sens, rs2_l500_visual_preset preset)
 
void check_preset_values (const rs2::sensor &sens, rs2_l500_visual_preset preset, rs2_sensor_mode mode, const std::map< rs2_option, float > &expected_values, const std::map< rs2_option, float > &expected_defaults)
 
void check_presets_values (std::vector< rs2_l500_visual_preset > presets_to_check, const rs2::sensor &sens, preset_values_map &preset_to_expected_values, preset_values_map &preset_to_expected_defaults, std::function< void(preset_mode_pair) > do_before_check=nullptr, std::function< void(preset_mode_pair) > do_after_check=nullptr)
 
void check_presets_values_while_streaming (std::vector< rs2_l500_visual_preset > presets_to_check, const rs2::sensor &sens, preset_values_map &preset_to_expected_values, preset_values_map &preset_to_expected_defaults, std::function< void(preset_mode_pair) > do_before_stream_start=nullptr, std::function< void(preset_mode_pair) > do_after_stream_start=nullptr)
 
void compare (const std::map< rs2_option, float > &first, const std::map< rs2_option, float > &second)
 
void compare_expected_currents_to_actual (const rs2::sensor &sens, const std::map< rs2_option, float > &expected_values)
 
void compare_expected_defaults_to_actual (const rs2::sensor &sens, const std::map< rs2_option, float > &expected_defaults)
 
void compare_to_actual (const rs2::sensor &sens, const std::map< rs2_option, float > &expected_values, const std::map< rs2_option, float > &expected_defaults)
 
void for_each_gain_mode_combination (std::function< void(rs2_digital_gain, rs2_sensor_mode) > action)
 
void for_each_preset_mode_combination (std::function< void(preset_mode_pair) > action)
 
preset_mode_pair get_camera_preset_mode_defaults (const rs2::sensor &sens)
 
std::map< rs2_option, float > get_currents_from_lrs (rs2::depth_sensor &depth_sens)
 
std::map< rs2_option, float > get_defaults_from_fw (rs2::device &dev)
 
std::map< rs2_option, float > get_defaults_from_lrs (rs2::depth_sensor &depth_sens)
 
const librealsense::firmware_version MIN_GET_DEFAULT_FW_VERSION ("1.5.4.0")
 
void print_presets_to_csv (rs2::depth_sensor &depth_sens, preset_values_map &preset_to_expected_values)
 
void reset_camera_preset_mode_to_defaults (const rs2::sensor &sens)
 
void reset_hw_controls (rs2::device &dev)
 
void set_mode_preset (const rs2::sensor &sens, preset_mode_pair preset_mode)
 
void set_option_values (const rs2::sensor &sens, const std::map< rs2_option, float > &option_values)
 
void start_depth_ir_confidence (const rs2::sensor &sens, rs2_sensor_mode mode=RS2_SENSOR_MODE_VGA)
 
void stop_depth (const rs2::sensor &sens)
 

Variables

std::map< rs2_option, librealsense::l500_controloption_to_code
 
const std::vector< rs2_optionpreset_dependent_options
 
const std::map< rs2_l500_visual_preset, std::pair< rs2_digital_gain, presets_useful_laser_values > > preset_to_gain_and_laser_map
 

Typedef Documentation

typedef std::map< std::pair< rs2_digital_gain, rs2_sensor_mode >, std::map< rs2_option, float > > gain_values_map

Definition at line 22 of file presets-common.h.

Definition at line 15 of file presets-common.h.

typedef std::map< preset_mode_pair, std::map< rs2_option, float > > preset_values_map

Definition at line 19 of file presets-common.h.

Enumeration Type Documentation

Enumerator
default_laser 
max_laser 

Definition at line 46 of file presets-common.h.

Function Documentation

gain_values_map build_gain_to_expected_defaults_map ( rs2::device dev,
rs2::depth_sensor depth_sens 
)

Definition at line 232 of file presets-common.h.

void build_new_device_and_do ( std::function< void(rs2::depth_sensor &depth_sens) >  action)

Definition at line 474 of file presets-common.h.

std::map< rs2_option, float > build_preset_to_expected_defaults_map ( rs2::device dev,
rs2::depth_sensor depth_sens,
preset_mode_pair  preset_mode 
)

Definition at line 144 of file presets-common.h.

void build_preset_to_expected_values_map ( rs2::device dev,
rs2::depth_sensor depth_sens,
preset_mode_pair  preset_mode,
std::map< rs2_option, float > &  expected_values,
std::map< rs2_option, float > &  expected_defs 
)

Definition at line 172 of file presets-common.h.

preset_values_map build_presets_to_expected_defaults_map ( rs2::device dev,
rs2::depth_sensor depth_sens 
)

Definition at line 157 of file presets-common.h.

void build_presets_to_expected_values_defs_map ( rs2::device dev,
rs2::depth_sensor depth_sens,
preset_values_map expected_values,
preset_values_map expected_defs 
)

Definition at line 203 of file presets-common.h.

void check_preset_is_equal_to ( rs2::depth_sensor depth_sens,
rs2_l500_visual_preset  preset 
)

Definition at line 457 of file presets-common.h.

void check_preset_values ( const rs2::sensor sens,
rs2_l500_visual_preset  preset,
rs2_sensor_mode  mode,
const std::map< rs2_option, float > &  expected_values,
const std::map< rs2_option, float > &  expected_defaults 
)

Definition at line 357 of file presets-common.h.

void check_presets_values ( std::vector< rs2_l500_visual_preset presets_to_check,
const rs2::sensor sens,
preset_values_map preset_to_expected_values,
preset_values_map preset_to_expected_defaults,
std::function< void(preset_mode_pair) >  do_before_check = nullptr,
std::function< void(preset_mode_pair) >  do_after_check = nullptr 
)

Definition at line 371 of file presets-common.h.

void check_presets_values_while_streaming ( std::vector< rs2_l500_visual_preset presets_to_check,
const rs2::sensor sens,
preset_values_map preset_to_expected_values,
preset_values_map preset_to_expected_defaults,
std::function< void(preset_mode_pair) >  do_before_stream_start = nullptr,
std::function< void(preset_mode_pair) >  do_after_stream_start = nullptr 
)

Definition at line 430 of file presets-common.h.

void compare ( const std::map< rs2_option, float > &  first,
const std::map< rs2_option, float > &  second 
)

Definition at line 278 of file presets-common.h.

void compare_expected_currents_to_actual ( const rs2::sensor sens,
const std::map< rs2_option, float > &  expected_values 
)

Definition at line 329 of file presets-common.h.

void compare_expected_defaults_to_actual ( const rs2::sensor sens,
const std::map< rs2_option, float > &  expected_defaults 
)

Definition at line 339 of file presets-common.h.

void compare_to_actual ( const rs2::sensor sens,
const std::map< rs2_option, float > &  expected_values,
const std::map< rs2_option, float > &  expected_defaults 
)

Definition at line 349 of file presets-common.h.

void for_each_gain_mode_combination ( std::function< void(rs2_digital_gain, rs2_sensor_mode) >  action)

Definition at line 75 of file presets-common.h.

void for_each_preset_mode_combination ( std::function< void(preset_mode_pair) >  action)

Definition at line 60 of file presets-common.h.

preset_mode_pair get_camera_preset_mode_defaults ( const rs2::sensor sens)
inline

Definition at line 95 of file presets-common.h.

std::map< rs2_option, float > get_currents_from_lrs ( rs2::depth_sensor depth_sens)

Definition at line 264 of file presets-common.h.

std::map< rs2_option, float > get_defaults_from_fw ( rs2::device dev)

Definition at line 106 of file presets-common.h.

std::map< rs2_option, float > get_defaults_from_lrs ( rs2::depth_sensor depth_sens)

Definition at line 218 of file presets-common.h.

const librealsense::firmware_version MIN_GET_DEFAULT_FW_VERSION ( "1.5.4.0"  )
void print_presets_to_csv ( rs2::depth_sensor depth_sens,
preset_values_map preset_to_expected_values 
)

Definition at line 294 of file presets-common.h.

void reset_camera_preset_mode_to_defaults ( const rs2::sensor sens)
inline

Definition at line 88 of file presets-common.h.

void reset_hw_controls ( rs2::device dev)

Definition at line 249 of file presets-common.h.

void set_mode_preset ( const rs2::sensor sens,
preset_mode_pair  preset_mode 
)

Definition at line 423 of file presets-common.h.

void set_option_values ( const rs2::sensor sens,
const std::map< rs2_option, float > &  option_values 
)

Definition at line 317 of file presets-common.h.

void start_depth_ir_confidence ( const rs2::sensor sens,
rs2_sensor_mode  mode = RS2_SENSOR_MODE_VGA 
)

Definition at line 401 of file presets-common.h.

void stop_depth ( const rs2::sensor sens)

Definition at line 417 of file presets-common.h.

Variable Documentation

std::map< rs2_option, librealsense::l500_control > option_to_code
Initial value:
= {

Definition at line 35 of file presets-common.h.

const std::vector< rs2_option > preset_dependent_options
const std::map< rs2_l500_visual_preset, std::pair< rs2_digital_gain, presets_useful_laser_values > > preset_to_gain_and_laser_map


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