Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
librealsense::ds5_advanced_mode_base Class Reference

#include <advanced_mode.h>

Inheritance diagram for librealsense::ds5_advanced_mode_base:
Inheritance graph
[legend]

Public Member Functions

void apply_preset (const std::vector< platform::stream_profile > &configuration, rs2_rs400_visual_preset preset, uint16_t device_pid, const firmware_version &fw_version) override
 
void create_snapshot (std::shared_ptr< ds5_advanced_mode_interface > &snapshot) const override
 
 ds5_advanced_mode_base (std::shared_ptr< hw_monitor > hwm, synthetic_sensor &depth_sensor)
 
void enable_recording (std::function< void(const ds5_advanced_mode_interface &)> recording_function) override
 
void get_ae_control (STAEControl *ptr, int mode=0) const override
 
void get_amp_factor (STAFactor *ptr, int mode=0) const override
 
void get_census_radius (STCensusRadius *ptr, int mode=0) const override
 
void get_color_control (STColorControl *ptr, int mode=0) const override
 
void get_color_correction (STColorCorrection *ptr, int mode=0) const override
 
void get_depth_control_group (STDepthControlGroup *ptr, int mode=0) const override
 
void get_depth_table_control (STDepthTableControl *ptr, int mode=0) const override
 
void get_hdad (STHdad *ptr, int mode=0) const override
 
void get_rau_color_thresholds_control (STRauColorThresholdsControl *ptr, int mode=0) const override
 
void get_rau_support_vector_control (STRauSupportVectorControl *ptr, int mode=0) const override
 
void get_rsm (STRsm *ptr, int mode=0) const override
 
void get_slo_color_thresholds_control (STSloColorThresholdsControl *ptr, int mode=0) const override
 
void get_slo_penalty_control (STSloPenaltyControl *ptr, int mode=0) const override
 
bool is_enabled () const override
 
void load_json (const std::string &json_content) override
 
std::vector< uint8_tserialize_json () const override
 
void set_ae_control (const STAEControl &val) override
 
void set_amp_factor (const STAFactor &val) override
 
void set_census_radius (const STCensusRadius &val) override
 
void set_color_control (const STColorControl &val) override
 
void set_color_correction (const STColorCorrection &val) override
 
void set_depth_control_group (const STDepthControlGroup &val) override
 
void set_depth_table_control (const STDepthTableControl &val) override
 
void set_hdad (const STHdad &val) override
 
void set_rau_color_thresholds_control (const STRauColorThresholdsControl &val) override
 
void set_rau_support_vector_control (const STRauSupportVectorControl &val) override
 
void set_rsm (const STRsm &val) override
 
void set_slo_color_thresholds_control (const STSloColorThresholdsControl &val) override
 
void set_slo_penalty_control (const STSloPenaltyControl &val) override
 
void toggle_advanced_mode (bool enable) override
 
virtual ~ds5_advanced_mode_base ()=default
 
- Public Member Functions inherited from librealsense::ds5_advanced_mode_interface
virtual ~ds5_advanced_mode_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< ds5_advanced_mode_interface >
virtual ~recordable ()=default
 

Static Public Attributes

static const uint16_t HW_MONITOR_BUFFER_SIZE = 1024
 
static const uint16_t HW_MONITOR_COMMAND_SIZE = 1000
 

Private Member Functions

std::vector< uint8_tencode_command (ds::fw_cmd opcode, uint32_t p1=0, uint32_t p2=0, uint32_t p3=0, uint32_t p4=0, std::vector< uint8_t > data=std::vector< uint8_t >()) const
 
template<class T >
get (EtAdvancedModeRegGroup cmd, T *ptr=static_cast< T * >(nullptr), int mode=0) const
 
preset get_all () const
 
void get_auto_exposure (synthetic_sensor &sensor, auto_exposure_control *ptr) const
 
void get_color_auto_exposure (auto_exposure_control *ptr) const
 
void get_color_auto_white_balance (auto_white_balance_control *ptr) const
 
void get_color_backlight_compensation (backlight_compensation_control *ptr) const
 
void get_color_brightness (brightness_control *ptr) const
 
void get_color_contrast (contrast_control *ptr) const
 
void get_color_exposure (exposure_control *ptr) const
 
void get_color_gain (gain_control *ptr) const
 
void get_color_gamma (gamma_control *ptr) const
 
void get_color_hue (hue_control *ptr) const
 
void get_color_power_line_frequency (power_line_frequency_control *ptr) const
 
void get_color_saturation (saturation_control *ptr) const
 
void get_color_sharpness (sharpness_control *ptr) const
 
void get_color_white_balance (white_balance_control *ptr) const
 
void get_depth_auto_exposure (auto_exposure_control *ptr) const
 
void get_depth_auto_white_balance (auto_white_balance_control *ptr) const
 
void get_depth_exposure (exposure_control *ptr) const
 
void get_depth_gain (gain_control *ptr) const
 
void get_exposure (synthetic_sensor &sensor, exposure_control *ptr) const
 
void get_laser_power (laser_power_control *ptr) const
 
void get_laser_state (laser_state_control *ptr) const
 
std::vector< uint8_tsend_receive (const std::vector< uint8_t > &input) const
 
template<class T >
void set (const T &strct, EtAdvancedModeRegGroup cmd) const
 
void set_all (const preset &p)
 
void set_auto_exposure (synthetic_sensor &sensor, const auto_exposure_control &val)
 
void set_color_auto_exposure (const auto_exposure_control &val)
 
void set_color_auto_white_balance (const auto_white_balance_control &val)
 
void set_color_backlight_compensation (const backlight_compensation_control &val)
 
void set_color_brightness (const brightness_control &val)
 
void set_color_contrast (const contrast_control &val)
 
void set_color_exposure (const exposure_control &val)
 
void set_color_gain (const gain_control &val)
 
void set_color_gamma (const gamma_control &val)
 
void set_color_hue (const hue_control &val)
 
void set_color_power_line_frequency (const power_line_frequency_control &val)
 
void set_color_saturation (const saturation_control &val)
 
void set_color_sharpness (const sharpness_control &val)
 
void set_color_white_balance (const white_balance_control &val)
 
void set_depth_auto_exposure (const auto_exposure_control &val)
 
void set_depth_auto_white_balance (const auto_white_balance_control &val)
 
void set_depth_exposure (const exposure_control &val)
 
void set_depth_gain (const gain_control &val)
 
void set_exposure (synthetic_sensor &sensor, const exposure_control &val)
 
void set_laser_power (const laser_power_control &val)
 
void set_laser_state (const laser_state_control &val)
 
bool supports_option (const synthetic_sensor &sensor, rs2_option opt) const
 

Static Private Member Functions

static std::vector< uint8_tassert_no_error (ds::fw_cmd opcode, const std::vector< uint8_t > &results)
 
static uint32_t pack (uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3)
 

Private Attributes

lazy< bool > _amplitude_factor_support
 
lazy< ds5_color_sensor * > _color_sensor
 
synthetic_sensor_depth_sensor
 
lazy< bool > _enabled
 
std::shared_ptr< hw_monitor_hw_monitor
 
std::shared_ptr< advanced_mode_preset_option_preset_opt
 
lazy< bool > _rgb_exposure_gain_bind
 

Friends

class auto_calibrated
 

Detailed Description

Definition at line 106 of file advanced_mode.h.

Constructor & Destructor Documentation

librealsense::ds5_advanced_mode_base::ds5_advanced_mode_base ( std::shared_ptr< hw_monitor hwm,
synthetic_sensor depth_sensor 
)
explicit

Definition at line 12 of file ds5/advanced_mode/advanced_mode.cpp.

virtual librealsense::ds5_advanced_mode_base::~ds5_advanced_mode_base ( )
virtualdefault

Member Function Documentation

void librealsense::ds5_advanced_mode_base::apply_preset ( const std::vector< platform::stream_profile > &  configuration,
rs2_rs400_visual_preset  preset,
uint16_t  device_pid,
const firmware_version fw_version 
)
overridevirtual
std::vector< uint8_t > librealsense::ds5_advanced_mode_base::assert_no_error ( ds::fw_cmd  opcode,
const std::vector< uint8_t > &  results 
)
staticprivate

Definition at line 800 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::create_snapshot ( std::shared_ptr< ds5_advanced_mode_interface > &  snapshot) const
inlineoverridevirtual

Create a snapshot of the deriving extension. A snapshot of T is a reflection of the state and memory of T at the time of the call

Implements librealsense::recordable< ds5_advanced_mode_interface >.

Definition at line 112 of file advanced_mode.h.

void librealsense::ds5_advanced_mode_base::enable_recording ( std::function< void(const ds5_advanced_mode_interface &)>  recording_function)
inlineoverridevirtual

Instruct the derived class to begin notifying on changes Derived class should call the recording_function with a reference of themselves

Implements librealsense::recordable< ds5_advanced_mode_interface >.

Definition at line 113 of file advanced_mode.h.

std::vector< uint8_t > librealsense::ds5_advanced_mode_base::encode_command ( ds::fw_cmd  opcode,
uint32_t  p1 = 0,
uint32_t  p2 = 0,
uint32_t  p3 = 0,
uint32_t  p4 = 0,
std::vector< uint8_t data = std::vector<uint8_t>() 
) const
private

Definition at line 817 of file ds5/advanced_mode/advanced_mode.cpp.

template<class T >
T librealsense::ds5_advanced_mode_base::get ( EtAdvancedModeRegGroup  cmd,
T *  ptr = static_cast<T*>(nullptr),
int  mode = 0 
) const
inlineprivate

Definition at line 231 of file advanced_mode.h.

void librealsense::ds5_advanced_mode_base::get_ae_control ( STAEControl ptr,
int  mode = 0 
) const
overridevirtual
preset librealsense::ds5_advanced_mode_base::get_all ( ) const
private

Definition at line 692 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_amp_factor ( STAFactor ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_auto_exposure ( synthetic_sensor sensor,
auto_exposure_control ptr 
) const
private

Definition at line 276 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_census_radius ( STCensusRadius ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_color_auto_exposure ( auto_exposure_control ptr) const
private

Definition at line 321 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_auto_white_balance ( auto_white_balance_control ptr) const
private

Definition at line 410 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_backlight_compensation ( backlight_compensation_control ptr) const
private

Definition at line 329 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_brightness ( brightness_control ptr) const
private

Definition at line 338 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_contrast ( contrast_control ptr) const
private

Definition at line 347 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_control ( STColorControl ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_color_correction ( STColorCorrection ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_color_exposure ( exposure_control ptr) const
private

Definition at line 313 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_gain ( gain_control ptr) const
private

Definition at line 356 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_gamma ( gamma_control ptr) const
private

Definition at line 365 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_hue ( hue_control ptr) const
private

Definition at line 374 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_power_line_frequency ( power_line_frequency_control ptr) const
private

Definition at line 419 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_saturation ( saturation_control ptr) const
private

Definition at line 383 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_sharpness ( sharpness_control ptr) const
private

Definition at line 392 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_color_white_balance ( white_balance_control ptr) const
private

Definition at line 401 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_depth_auto_exposure ( auto_exposure_control ptr) const
private

Definition at line 290 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_depth_auto_white_balance ( auto_white_balance_control ptr) const
private

Definition at line 304 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_depth_control_group ( STDepthControlGroup ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_depth_exposure ( exposure_control ptr) const
private

Definition at line 285 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_depth_gain ( gain_control ptr) const
private

Definition at line 295 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_depth_table_control ( STDepthTableControl ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_exposure ( synthetic_sensor sensor,
exposure_control ptr 
) const
private

Definition at line 267 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_hdad ( STHdad ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_laser_power ( laser_power_control ptr) const
private

Definition at line 249 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_laser_state ( laser_state_control ptr) const
private

Definition at line 258 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::get_rau_color_thresholds_control ( STRauColorThresholdsControl ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_rau_support_vector_control ( STRauSupportVectorControl ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_rsm ( STRsm ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_slo_color_thresholds_control ( STSloColorThresholdsControl ptr,
int  mode = 0 
) const
overridevirtual
void librealsense::ds5_advanced_mode_base::get_slo_penalty_control ( STSloPenaltyControl ptr,
int  mode = 0 
) const
overridevirtual
bool librealsense::ds5_advanced_mode_base::is_enabled ( ) const
overridevirtual
void librealsense::ds5_advanced_mode_base::load_json ( const std::string json_content)
overridevirtual
uint32_t librealsense::ds5_advanced_mode_base::pack ( uint8_t  c0,
uint8_t  c1,
uint8_t  c2,
uint8_t  c3 
)
staticprivate

Definition at line 795 of file ds5/advanced_mode/advanced_mode.cpp.

std::vector< uint8_t > librealsense::ds5_advanced_mode_base::send_receive ( const std::vector< uint8_t > &  input) const
private

Definition at line 785 of file ds5/advanced_mode/advanced_mode.cpp.

std::vector< uint8_t > librealsense::ds5_advanced_mode_base::serialize_json ( ) const
overridevirtual
template<class T >
void librealsense::ds5_advanced_mode_base::set ( const T &  strct,
EtAdvancedModeRegGroup  cmd 
) const
inlineprivate

Definition at line 220 of file advanced_mode.h.

void librealsense::ds5_advanced_mode_base::set_ae_control ( const STAEControl val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_all ( const preset p)
private

Definition at line 730 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_amp_factor ( const STAFactor val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_auto_exposure ( synthetic_sensor sensor,
const auto_exposure_control val 
)
private

Definition at line 526 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_census_radius ( const STCensusRadius val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_color_auto_exposure ( const auto_exposure_control val)
private

Definition at line 564 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_auto_white_balance ( const auto_white_balance_control val)
private

Definition at line 654 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_backlight_compensation ( const backlight_compensation_control val)
private

Definition at line 573 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_brightness ( const brightness_control val)
private

Definition at line 582 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_contrast ( const contrast_control val)
private

Definition at line 591 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_control ( const STColorControl val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_color_correction ( const STColorCorrection val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_color_exposure ( const exposure_control val)
private

Definition at line 555 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_gain ( const gain_control val)
private

Definition at line 600 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_gamma ( const gamma_control val)
private

Definition at line 609 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_hue ( const hue_control val)
private

Definition at line 618 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_power_line_frequency ( const power_line_frequency_control val)
private

Definition at line 663 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_saturation ( const saturation_control val)
private

Definition at line 627 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_sharpness ( const sharpness_control val)
private

Definition at line 636 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_color_white_balance ( const white_balance_control val)
private

Definition at line 645 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_depth_auto_exposure ( const auto_exposure_control val)
private

Definition at line 537 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_depth_auto_white_balance ( const auto_white_balance_control val)
private

Definition at line 549 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_depth_control_group ( const STDepthControlGroup val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_depth_exposure ( const exposure_control val)
private

Definition at line 531 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_depth_gain ( const gain_control val)
private

Definition at line 543 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_depth_table_control ( const STDepthTableControl val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_exposure ( synthetic_sensor sensor,
const exposure_control val 
)
private

Definition at line 521 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_hdad ( const STHdad val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_laser_power ( const laser_power_control val)
private

Definition at line 509 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_laser_state ( const laser_state_control val)
private

Definition at line 515 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::set_rau_color_thresholds_control ( const STRauColorThresholdsControl val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_rau_support_vector_control ( const STRauSupportVectorControl val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_rsm ( const STRsm val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_slo_color_thresholds_control ( const STSloColorThresholdsControl val)
overridevirtual
void librealsense::ds5_advanced_mode_base::set_slo_penalty_control ( const STSloPenaltyControl val)
overridevirtual
bool librealsense::ds5_advanced_mode_base::supports_option ( const synthetic_sensor sensor,
rs2_option  opt 
) const
private

Definition at line 244 of file ds5/advanced_mode/advanced_mode.cpp.

void librealsense::ds5_advanced_mode_base::toggle_advanced_mode ( bool  enable)
overridevirtual

Friends And Related Function Documentation

friend class auto_calibrated
friend

Definition at line 158 of file advanced_mode.h.

Member Data Documentation

lazy<bool> librealsense::ds5_advanced_mode_base::_amplitude_factor_support
private

Definition at line 212 of file advanced_mode.h.

lazy<ds5_color_sensor*> librealsense::ds5_advanced_mode_base::_color_sensor
private

Definition at line 208 of file advanced_mode.h.

synthetic_sensor& librealsense::ds5_advanced_mode_base::_depth_sensor
private

Definition at line 207 of file advanced_mode.h.

lazy<bool> librealsense::ds5_advanced_mode_base::_enabled
private

Definition at line 209 of file advanced_mode.h.

std::shared_ptr<hw_monitor> librealsense::ds5_advanced_mode_base::_hw_monitor
private

Definition at line 206 of file advanced_mode.h.

std::shared_ptr<advanced_mode_preset_option> librealsense::ds5_advanced_mode_base::_preset_opt
private

Definition at line 210 of file advanced_mode.h.

lazy<bool> librealsense::ds5_advanced_mode_base::_rgb_exposure_gain_bind
private

Definition at line 211 of file advanced_mode.h.

const uint16_t librealsense::ds5_advanced_mode_base::HW_MONITOR_BUFFER_SIZE = 1024
static

Definition at line 155 of file advanced_mode.h.

const uint16_t librealsense::ds5_advanced_mode_base::HW_MONITOR_COMMAND_SIZE = 1000
static

Definition at line 154 of file advanced_mode.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:37