Go to the documentation of this file.
38 #define MAP_ADVANCED_MODE(T, E) template<> struct advanced_mode_traits<T> { static const EtAdvancedModeRegGroup group = E; }
62 virtual void apply_preset(
const std::vector<platform::stream_profile>& configuration,
111 void apply_preset(
const std::vector<platform::stream_profile>& configuration,
228 std::vector<uint8_t>
data(ptr, ptr +
sizeof(T));
232 std::this_thread::sleep_for(std::chrono::milliseconds(20));
242 if (
data.size() <
sizeof(T))
244 throw std::runtime_error(
"The camera returned invalid sized result!");
246 res = *
reinterpret_cast<T*
>(
data.data());
259 std::vector<uint8_t>
data = std::vector<uint8_t>())
const;
273 float query()
const override;
void get_depth_gain(gain_control *ptr) const
void toggle_advanced_mode(bool enable) override
virtual void set_hdad(const STHdad &val)=0
void set_auto_exposure(synthetic_sensor &sensor, const auto_exposure_control &val)
bool is_enabled() const override
void set_all_rgb(const preset &p)
@ etRauColorThresholdsControl
void get_color_contrast(contrast_control *ptr) const
bool is_enabled() const override
void set_rau_support_vector_control(const STRauSupportVectorControl &val) override
void set_ae_control(const STAEControl &val) override
std::shared_ptr< hw_monitor > _hw_monitor
MAP_EXTENSION(RS2_EXTENSION_AUTO_CALIBRATED_DEVICE, auto_calibrated_interface)
virtual void set_rsm(const STRsm &val)=0
synthetic_sensor & _depth_sensor
void get_color_auto_exposure(auto_exposure_control *ptr) const
void get_depth_table_control(STDepthTableControl *ptr, int mode=0) const override
rsutils::lazy< bool > _enabled
void get_depth_auto_exposure(auto_exposure_control *ptr) const
const char * get_description() const override
void set_color_contrast(const contrast_control &val)
std::shared_ptr< advanced_mode_preset_option > _preset_opt
std::string _block_message
rs2_rs400_visual_preset _last_preset
Advanced Mode Commands header file.
void set_color_power_line_frequency(const power_line_frequency_control &val)
GLsizei const GLchar *const * string
virtual void apply_preset(const std::vector< platform::stream_profile > &configuration, rs2_rs400_visual_preset preset, uint16_t device_pid, const firmware_version &fw_version)=0
void set_slo_color_thresholds_control(const STSloColorThresholdsControl &val) override
void get_rau_color_thresholds_control(STRauColorThresholdsControl *ptr, int mode=0) const override
virtual void set_rau_color_thresholds_control(const STRauColorThresholdsControl &val)=0
rsutils::lazy< synthetic_sensor * > _color_sensor
@ RS2_EXTENSION_ADVANCED_MODE
void register_to_visual_preset_option()
void set_depth_table_control(const STDepthTableControl &val) override
void get_color_brightness(brightness_control *ptr) const
virtual ~ds_advanced_mode_interface()=default
void get_color_backlight_compensation(backlight_compensation_control *ptr) const
virtual void set_slo_color_thresholds_control(const STSloColorThresholdsControl &val)=0
void unregister_from_visual_preset_option()
void get_color_power_line_frequency(power_line_frequency_control *ptr) const
virtual void get_depth_control_group(STDepthControlGroup *ptr, int mode=0) const =0
void set_color_exposure(const exposure_control &val)
virtual void get_slo_penalty_control(STSloPenaltyControl *ptr, int mode=0) const =0
void set_color_backlight_compensation(const backlight_compensation_control &val)
void set_color_hue(const hue_control &val)
void get_color_hue(hue_control *ptr) const
void get_color_exposure(exposure_control *ptr) const
static const uint16_t HW_MONITOR_COMMAND_SIZE
std::vector< uint8_t > send_receive(const std::vector< uint8_t > &input) const
const char * get_value_description(float val) const override
void set_all(const preset &p)
void get_ae_control(STAEControl *ptr, int mode=0) const override
void get_color_sharpness(sharpness_control *ptr) const
virtual ~ds_advanced_mode_base()=default
T get(EtAdvancedModeRegGroup cmd, T *ptr=static_cast< T * >(nullptr), int mode=0) const
void get_laser_state(laser_state_control *ptr) const
virtual void set_ae_control(const STAEControl &val)=0
ds_advanced_mode_base & _advanced
virtual void set_depth_table_control(const STDepthTableControl &val)=0
std::vector< uint8_t > serialize_json() const override
virtual void toggle_advanced_mode(bool enable)=0
void get_slo_color_thresholds_control(STSloColorThresholdsControl *ptr, int mode=0) const override
virtual void get_ae_control(STAEControl *ptr, int mode=0) const =0
void set_depth_exposure(const exposure_control &val)
void get_color_gamma(gamma_control *ptr) const
virtual void get_rau_support_vector_control(STRauSupportVectorControl *ptr, int mode=0) const =0
void block(const std::string &exception_message)
void get_color_white_balance(white_balance_control *ptr) const
virtual void get_depth_table_control(STDepthTableControl *ptr, int mode=0) const =0
void get_color_correction(STColorCorrection *ptr, int mode=0) const override
void set_color_gain(const gain_control &val)
void get_slo_penalty_control(STSloPenaltyControl *ptr, int mode=0) const override
void set_rau_color_thresholds_control(const STRauColorThresholdsControl &val) override
void get_laser_power(laser_power_control *ptr) const
uint16_t get_device_pid(const uvc_sensor &sensor) const
void get_depth_control_group(STDepthControlGroup *ptr, int mode=0) const override
void set_census_radius(const STCensusRadius &val) override
static uint32_t pack(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3)
void set_color_white_balance(const white_balance_control &val)
void set_depth_gain(const gain_control &val)
bool supports_option(const synthetic_sensor &sensor, rs2_option opt) const
void get_color_control(STColorControl *ptr, int mode=0) const override
void set_rsm(const STRsm &val) override
void get_census_radius(STCensusRadius *ptr, int mode=0) const override
virtual bool is_enabled() const =0
void get_auto_exposure(synthetic_sensor &sensor, auto_exposure_control *ptr) const
void get_rau_support_vector_control(STRauSupportVectorControl *ptr, int mode=0) const override
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
@ etSloColorThresholdsControl
void get_color_auto_white_balance(auto_white_balance_control *ptr) const
void get_color_gain(gain_control *ptr) const
static rs2_rs400_visual_preset to_preset(float x)
void set_laser_state(const laser_state_control &val)
void get_depth_exposure(exposure_control *ptr) const
std::vector< uint8_t > 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
void get_amp_factor(STAFactor *ptr, int mode=0) const override
@ etRauSupportVectorControl
void set_color_auto_white_balance(const auto_white_balance_control &val)
void set(float value) override
bool should_set_rgb_preset() const
virtual void get_hdad(STHdad *ptr, int mode=0) const =0
void set_exposure(synthetic_sensor &sensor, const exposure_control &val)
void set_laser_power(const laser_power_control &val)
void set_amp_factor(const STAFactor &val) override
void set_color_control(const STColorControl &val) override
void set(const T &strct, EtAdvancedModeRegGroup cmd) const
void set_color_correction(const STColorCorrection &val) override
void get_depth_auto_white_balance(auto_white_balance_control *ptr) const
virtual void set_color_control(const STColorControl &val)=0
ds_advanced_mode_base(std::shared_ptr< hw_monitor > hwm, synthetic_sensor &depth_sensor)
void set_color_brightness(const brightness_control &val)
rs2_rs400_visual_preset
For RS400 devices: provides optimized settings (presets) for specific types of usage.
void set_depth_control_group(const STDepthControlGroup &val) override
void set_hdad(const STHdad &val) override
virtual void get_color_control(STColorControl *ptr, int mode=0) const =0
rsutils::lazy< bool > _amplitude_factor_support
virtual void set_slo_penalty_control(const STSloPenaltyControl &val)=0
void load_json(const std::string &json_content) override
void get_hdad(STHdad *ptr, int mode=0) const override
MAP_ADVANCED_MODE(STDepthControlGroup, etDepthControl)
virtual void set_census_radius(const STCensusRadius &val)=0
void set_color_auto_exposure(const auto_exposure_control &val)
virtual void set_color_correction(const STColorCorrection &val)=0
virtual void get_color_correction(STColorCorrection *ptr, int mode=0) const =0
static const uint16_t HW_MONITOR_BUFFER_SIZE
firmware_version get_firmware_version(const uvc_sensor &sensor) const
void set_depth_auto_exposure(const auto_exposure_control &val)
virtual void get_rsm(STRsm *ptr, int mode=0) const =0
void get_exposure(synthetic_sensor &sensor, exposure_control *ptr) const
static std::vector< uint8_t > assert_no_error(ds::fw_cmd opcode, const std::vector< uint8_t > &results)
float query() const override
virtual void get_amp_factor(STAFactor *ptr, int mode=0) const =0
void set_color_gamma(const gamma_control &val)
void set_all_depth(const preset &p)
void set_color_saturation(const saturation_control &val)
virtual void get_census_radius(STCensusRadius *ptr, int mode=0) const =0
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 get_color_saturation(saturation_control *ptr) const
void set_color_sharpness(const sharpness_control &val)
@ etLastAdvancedModeGroup
void set_slo_penalty_control(const STSloPenaltyControl &val) override
advanced_mode_preset_option(ds_advanced_mode_base &advanced, synthetic_sensor &ep, const option_range &opt_range)
void set_depth_auto_white_balance(const auto_white_balance_control &val)
virtual void set_rau_support_vector_control(const STRauSupportVectorControl &val)=0
virtual void set_depth_control_group(const STDepthControlGroup &val)=0
virtual void get_slo_color_thresholds_control(STSloColorThresholdsControl *ptr, int mode=0) const =0
void get_rsm(STRsm *ptr, int mode=0) const override
virtual void get_rau_color_thresholds_control(STRauColorThresholdsControl *ptr, int mode=0) const =0
virtual void set_amp_factor(const STAFactor &val)=0
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:00