advanced_mode.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 #pragma once
4 
5 #include "ds/ds-private.h"
6 #include "hw-monitor.h"
7 #include "option.h"
10 #include "serializable-interface.h"
11 #include <rsutils/lazy.h>
12 
13 
14 typedef enum
15 {
17  etRsm = 1,
23  etHdad = 7,
28  etAFactor = 12,
29  etLastAdvancedModeGroup = 13, // Must be last
30 }
32 
33 namespace librealsense
34 {
35  template<class T>
37 
38  #define MAP_ADVANCED_MODE(T, E) template<> struct advanced_mode_traits<T> { static const EtAdvancedModeRegGroup group = E; }
39 
53 
54 
56  {
57  public:
58  virtual bool is_enabled() const = 0;
59 
60  virtual void toggle_advanced_mode(bool enable) = 0;
61 
62  virtual void apply_preset(const std::vector<platform::stream_profile>& configuration,
64  const firmware_version& fw_version) = 0;
65 
66  virtual void get_depth_control_group(STDepthControlGroup* ptr, int mode = 0) const = 0;
67  virtual void get_rsm(STRsm* ptr, int mode = 0) const = 0;
68  virtual void get_rau_support_vector_control(STRauSupportVectorControl* ptr, int mode = 0) const = 0;
69  virtual void get_color_control(STColorControl* ptr, int mode = 0) const = 0;
70  virtual void get_rau_color_thresholds_control(STRauColorThresholdsControl* ptr, int mode = 0) const = 0;
71  virtual void get_slo_color_thresholds_control(STSloColorThresholdsControl* ptr, int mode = 0) const = 0;
72  virtual void get_slo_penalty_control(STSloPenaltyControl* ptr, int mode = 0) const = 0;
73  virtual void get_hdad(STHdad* ptr, int mode = 0) const = 0;
74  virtual void get_color_correction(STColorCorrection* ptr, int mode = 0) const = 0;
75  virtual void get_depth_table_control(STDepthTableControl* ptr, int mode = 0) const = 0;
76  virtual void get_ae_control(STAEControl* ptr, int mode = 0) const = 0;
77  virtual void get_census_radius(STCensusRadius* ptr, int mode = 0) const = 0;
78  virtual void get_amp_factor(STAFactor* ptr, int mode = 0) const = 0;
79 
80  virtual void set_depth_control_group(const STDepthControlGroup& val) = 0;
81  virtual void set_rsm(const STRsm& val) = 0;
83  virtual void set_color_control(const STColorControl& val) = 0;
86  virtual void set_slo_penalty_control(const STSloPenaltyControl& val) = 0;
87  virtual void set_hdad(const STHdad& val) = 0;
88  virtual void set_color_correction(const STColorCorrection& val) = 0;
89  virtual void set_depth_table_control(const STDepthTableControl& val) = 0;
90  virtual void set_ae_control(const STAEControl& val) = 0;
91  virtual void set_census_radius(const STCensusRadius& val) = 0;
92  virtual void set_amp_factor(const STAFactor& val) = 0;
93 
94  virtual ~ds_advanced_mode_interface() = default;
95  };
96 
98 
100 
102  {
103  public:
104  explicit ds_advanced_mode_base(std::shared_ptr<hw_monitor> hwm,
106 
107  virtual ~ds_advanced_mode_base() = default;
108 
109  bool is_enabled() const override;
110  void toggle_advanced_mode(bool enable) override;
111  void apply_preset(const std::vector<platform::stream_profile>& configuration,
113  const firmware_version& fw_version) override;
114 
115  void get_depth_control_group(STDepthControlGroup* ptr, int mode = 0) const override;
116  void get_rsm(STRsm* ptr, int mode = 0) const override;
117  void get_rau_support_vector_control(STRauSupportVectorControl* ptr, int mode = 0) const override;
118  void get_color_control(STColorControl* ptr, int mode = 0) const override;
119  void get_rau_color_thresholds_control(STRauColorThresholdsControl* ptr, int mode = 0) const override;
120  void get_slo_color_thresholds_control(STSloColorThresholdsControl* ptr, int mode = 0) const override;
121  void get_slo_penalty_control(STSloPenaltyControl* ptr, int mode = 0) const override;
122  void get_hdad(STHdad* ptr, int mode = 0) const override;
123  void get_color_correction(STColorCorrection* ptr, int mode = 0) const override;
124  void get_depth_table_control(STDepthTableControl* ptr, int mode = 0) const override;
125  void get_ae_control(STAEControl* ptr, int mode = 0) const override;
126  void get_census_radius(STCensusRadius* ptr, int mode = 0) const override;
127  void get_amp_factor(STAFactor* ptr, int mode = 0) const override;
128 
129  void set_depth_control_group(const STDepthControlGroup& val) override;
130  void set_rsm(const STRsm& val) override;
132  void set_color_control(const STColorControl& val) override;
135  void set_slo_penalty_control(const STSloPenaltyControl& val) override;
136  void set_hdad(const STHdad& val) override;
137  void set_color_correction(const STColorCorrection& val) override;
138  void set_depth_table_control(const STDepthTableControl& val) override;
139  void set_ae_control(const STAEControl& val) override;
140  void set_census_radius(const STCensusRadius& val) override;
141  void set_amp_factor(const STAFactor& val) override;
142 
143  std::vector<uint8_t> serialize_json() const override;
144  void load_json(const std::string& json_content) override;
145 
148 
149  static const uint16_t HW_MONITOR_COMMAND_SIZE = 1000;
150  static const uint16_t HW_MONITOR_BUFFER_SIZE = 1024;
151 
152  void block( const std::string & exception_message );
153  void unblock();
154 
155  private:
156  friend class auto_calibrated;
161 
162  void get_laser_power(laser_power_control* ptr) const;
163  void get_laser_state(laser_state_control* ptr) const;
164  void get_depth_exposure(exposure_control* ptr) const;
166  void get_depth_gain(gain_control* ptr) const;
168  void get_color_exposure(exposure_control* ptr) const;
171  void get_color_brightness(brightness_control* ptr) const;
172  void get_color_contrast(contrast_control* ptr) const;
173  void get_color_gain(gain_control* ptr) const;
174  void get_color_gamma(gamma_control* ptr) const;
175  void get_color_hue(hue_control* ptr) const;
176  void get_color_saturation(saturation_control* ptr) const;
177  void get_color_sharpness(sharpness_control* ptr) const;
181 
186  void set_depth_gain(const gain_control& val);
193  void set_color_gain(const gain_control& val);
194  void set_color_gamma(const gamma_control& val);
195  void set_color_hue(const hue_control& val);
201 
202  bool supports_option(const synthetic_sensor& sensor, rs2_option opt) const;
203 
204  std::shared_ptr<hw_monitor> _hw_monitor;
208  std::shared_ptr<advanced_mode_preset_option> _preset_opt;
210  bool _blocked = false;
212 
213  preset get_all() const;
214  void set_all( const preset & p );
215  void set_all_depth( const preset & p );
216  void set_all_rgb( const preset & p );
217  bool should_set_rgb_preset() const;
218 
219  std::vector<uint8_t> send_receive(const std::vector<uint8_t>& input) const;
220 
221  template<class T>
222  void set(const T& strct, EtAdvancedModeRegGroup cmd) const
223  {
224  if( _blocked )
225  throw std::runtime_error( _block_message );
226 
227  auto ptr = (uint8_t*)(&strct);
228  std::vector<uint8_t> data(ptr, ptr + sizeof(T));
229 
231  send_receive(encode_command(ds::fw_cmd::SET_ADV, static_cast<uint32_t>(cmd), 0, 0, 0, data)));
232  std::this_thread::sleep_for(std::chrono::milliseconds(20));
233  }
234 
235  template<class T>
236  T get(EtAdvancedModeRegGroup cmd, T* ptr = static_cast<T*>(nullptr), int mode = 0) const
237  {
238  T res;
241  static_cast<uint32_t>(cmd), mode)));
242  if (data.size() < sizeof(T))
243  {
244  throw std::runtime_error("The camera returned invalid sized result!");
245  }
246  res = *reinterpret_cast<T*>(data.data());
247  return res;
248  }
249 
250  static uint32_t pack(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3);
251 
252  static std::vector<uint8_t> assert_no_error(ds::fw_cmd opcode, const std::vector<uint8_t>& results);
253 
254  std::vector<uint8_t> encode_command(ds::fw_cmd opcode,
255  uint32_t p1 = 0,
256  uint32_t p2 = 0,
257  uint32_t p3 = 0,
258  uint32_t p4 = 0,
259  std::vector<uint8_t> data = std::vector<uint8_t>()) const;
260 
261 
262  };
263 
264 
266  {
267  public:
269  const option_range& opt_range);
270 
271  static rs2_rs400_visual_preset to_preset(float x);
272  void set(float value) override;
273  float query() const override;
274  bool is_enabled() const override;
275  const char* get_description() const override;
276  const char* get_value_description(float val) const override;
277 
278  private:
281 
282  std::mutex _mtx;
286  };
287 }
librealsense::ds_advanced_mode_base::get_depth_gain
void get_depth_gain(gain_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:320
example1 - object detection.p1
tuple p1
Definition: example1 - object detection.py:75
librealsense::ds_advanced_mode_base::toggle_advanced_mode
void toggle_advanced_mode(bool enable) override
Definition: ds/advanced_mode/advanced_mode.cpp:76
librealsense::ds_advanced_mode_interface::set_hdad
virtual void set_hdad(const STHdad &val)=0
librealsense
Definition: algo.h:18
librealsense::ds::SET_ADV
@ SET_ADV
Definition: ds-private.h:101
STAEControl
Definition: rs_advanced_mode_command.h:105
test-fw-update.cmd
list cmd
Definition: test-fw-update.py:141
librealsense::ds_advanced_mode_base::set_auto_exposure
void set_auto_exposure(synthetic_sensor &sensor, const auto_exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:551
uint8_t
unsigned char uint8_t
Definition: stdint.h:78
librealsense::ds::GET_ADV
@ GET_ADV
Definition: ds-private.h:102
librealsense::advanced_mode_preset_option::is_enabled
bool is_enabled() const override
Definition: ds/advanced_mode/advanced_mode.cpp:967
rsutils::version
Definition: version.h:20
presets.h
librealsense::ds_advanced_mode_base::set_all_rgb
void set_all_rgb(const preset &p)
Definition: ds/advanced_mode/advanced_mode.cpp:811
EtAdvancedModeRegGroup
EtAdvancedModeRegGroup
Definition: advanced_mode.h:14
etRauColorThresholdsControl
@ etRauColorThresholdsControl
Definition: advanced_mode.h:20
rs-imu-calibration.input
input
Definition: rs-imu-calibration.py:35
librealsense::ds_advanced_mode_base::get_color_contrast
void get_color_contrast(contrast_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:372
librealsense::auto_exposure_control
Definition: presets.h:27
librealsense::ds_advanced_mode_base::is_enabled
bool is_enabled() const override
Definition: ds/advanced_mode/advanced_mode.cpp:71
librealsense::ds_advanced_mode_base::set_rau_support_vector_control
void set_rau_support_vector_control(const STRauSupportVectorControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:465
librealsense::ds_advanced_mode_base::set_ae_control
void set_ae_control(const STAEControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:513
librealsense::white_balance_control
Definition: presets.h:81
librealsense::option_base
Definition: option.h:91
librealsense::ds_advanced_mode_base::_hw_monitor
std::shared_ptr< hw_monitor > _hw_monitor
Definition: advanced_mode.h:204
librealsense::MAP_EXTENSION
MAP_EXTENSION(RS2_EXTENSION_AUTO_CALIBRATED_DEVICE, auto_calibrated_interface)
rsutils::lazy
Definition: lazy.h:16
librealsense::ds_advanced_mode_interface::set_rsm
virtual void set_rsm(const STRsm &val)=0
uint16_t
unsigned short uint16_t
Definition: stdint.h:79
librealsense::advanced_mode_preset_option::_ep
synthetic_sensor & _ep
Definition: advanced_mode.h:283
librealsense::ds_advanced_mode_base::_depth_sensor
synthetic_sensor & _depth_sensor
Definition: advanced_mode.h:205
librealsense::backlight_compensation_control
Definition: presets.h:39
test-librs-device-properties.sensor
sensor
Definition: test-librs-device-properties.py:40
librealsense::ds_advanced_mode_base::get_color_auto_exposure
void get_color_auto_exposure(auto_exposure_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:346
librealsense::ds_advanced_mode_base::get_depth_table_control
void get_depth_table_control(STDepthTableControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:248
librealsense::ds_advanced_mode_base::_enabled
rsutils::lazy< bool > _enabled
Definition: advanced_mode.h:207
librealsense::saturation_control
Definition: presets.h:69
librealsense::ds_advanced_mode_base::get_depth_auto_exposure
void get_depth_auto_exposure(auto_exposure_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:315
librealsense::advanced_mode_preset_option::get_description
const char * get_description() const override
Definition: ds/advanced_mode/advanced_mode.cpp:972
librealsense::ds_advanced_mode_base::set_color_contrast
void set_color_contrast(const contrast_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:616
ds-private.h
etRsm
@ etRsm
Definition: advanced_mode.h:17
STRsm
Definition: rs_advanced_mode_command.h:28
librealsense::ds_advanced_mode_base::_preset_opt
std::shared_ptr< advanced_mode_preset_option > _preset_opt
Definition: advanced_mode.h:208
data
Definition: parser.hpp:153
etHdad
@ etHdad
Definition: advanced_mode.h:23
librealsense::ds_advanced_mode_base::_block_message
std::string _block_message
Definition: advanced_mode.h:211
librealsense::ds_advanced_mode_base::get_all
preset get_all() const
Definition: ds/advanced_mode/advanced_mode.cpp:731
STColorControl
Definition: rs_advanced_mode_command.h:48
librealsense::advanced_mode_preset_option::_last_preset
rs2_rs400_visual_preset _last_preset
Definition: advanced_mode.h:285
rs_advanced_mode_command.h
Advanced Mode Commands header file.
librealsense::ds_advanced_mode_base::set_color_power_line_frequency
void set_color_power_line_frequency(const power_line_frequency_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:688
string
GLsizei const GLchar *const * string
Definition: glad/glad/glad.h:2861
librealsense::sharpness_control
Definition: presets.h:75
mode
GLenum mode
Definition: glad/glad/glad.h:1385
STHdad
Definition: rs_advanced_mode_command.h:82
librealsense::ds_advanced_mode_interface::apply_preset
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
librealsense::ds_advanced_mode_base::set_slo_color_thresholds_control
void set_slo_color_thresholds_control(const STSloColorThresholdsControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:483
librealsense::ds_advanced_mode_base::get_rau_color_thresholds_control
void get_rau_color_thresholds_control(STRauColorThresholdsControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:223
librealsense::uvc_sensor
Definition: uvc-sensor.h:13
librealsense::ds_advanced_mode_interface::set_rau_color_thresholds_control
virtual void set_rau_color_thresholds_control(const STRauColorThresholdsControl &val)=0
librealsense::ds_advanced_mode_base::_color_sensor
rsutils::lazy< synthetic_sensor * > _color_sensor
Definition: advanced_mode.h:206
RS2_EXTENSION_ADVANCED_MODE
@ RS2_EXTENSION_ADVANCED_MODE
Definition: rs_types.h:149
librealsense::ds_advanced_mode_base::register_to_visual_preset_option
void register_to_visual_preset_option()
Definition: ds/advanced_mode/advanced_mode.cpp:17
librealsense::ds_advanced_mode_base::set_depth_table_control
void set_depth_table_control(const STDepthTableControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:507
librealsense::ds_advanced_mode_base::get_color_brightness
void get_color_brightness(brightness_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:363
librealsense::gain_control
Definition: presets.h:33
librealsense::ds_advanced_mode_interface::~ds_advanced_mode_interface
virtual ~ds_advanced_mode_interface()=default
librealsense::ds_advanced_mode_base::get_color_backlight_compensation
void get_color_backlight_compensation(backlight_compensation_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:354
etDepthControl
@ etDepthControl
Definition: advanced_mode.h:16
librealsense::ds_advanced_mode_interface::set_slo_color_thresholds_control
virtual void set_slo_color_thresholds_control(const STSloColorThresholdsControl &val)=0
librealsense::ds_advanced_mode_base::unregister_from_visual_preset_option
void unregister_from_visual_preset_option()
Definition: ds/advanced_mode/advanced_mode.cpp:28
librealsense::ds_advanced_mode_base::get_color_power_line_frequency
void get_color_power_line_frequency(power_line_frequency_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:444
librealsense::ds_advanced_mode_interface::get_depth_control_group
virtual void get_depth_control_group(STDepthControlGroup *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::set_color_exposure
void set_color_exposure(const exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:580
librealsense::serializable_interface
Definition: serializable-interface.h:10
librealsense::ds_advanced_mode_interface::get_slo_penalty_control
virtual void get_slo_penalty_control(STSloPenaltyControl *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::set_color_backlight_compensation
void set_color_backlight_compensation(const backlight_compensation_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:598
lazy.h
librealsense::ds_advanced_mode_base::set_color_hue
void set_color_hue(const hue_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:643
librealsense::ds_advanced_mode_base::get_color_hue
void get_color_hue(hue_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:399
librealsense::ds_advanced_mode_base::get_color_exposure
void get_color_exposure(exposure_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:338
librealsense::ds_advanced_mode_base::HW_MONITOR_COMMAND_SIZE
static const uint16_t HW_MONITOR_COMMAND_SIZE
Definition: advanced_mode.h:149
librealsense::ds_advanced_mode_base::send_receive
std::vector< uint8_t > send_receive(const std::vector< uint8_t > &input) const
Definition: ds/advanced_mode/advanced_mode.cpp:843
etSloPenaltyControl
@ etSloPenaltyControl
Definition: advanced_mode.h:22
STSloColorThresholdsControl
Definition: rs_advanced_mode_command.h:64
librealsense::advanced_mode_preset_option::get_value_description
const char * get_value_description(float val) const override
Definition: ds/advanced_mode/advanced_mode.cpp:977
librealsense::ds_advanced_mode_base::set_all
void set_all(const preset &p)
Definition: ds/advanced_mode/advanced_mode.cpp:769
librealsense::ds_advanced_mode_base::get_ae_control
void get_ae_control(STAEControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:253
librealsense::ds_advanced_mode_base::get_color_sharpness
void get_color_sharpness(sharpness_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:417
librealsense::ds_advanced_mode_base::~ds_advanced_mode_base
virtual ~ds_advanced_mode_base()=default
etDepthTableControl
@ etDepthTableControl
Definition: advanced_mode.h:25
librealsense::option_range
Definition: option-interface.h:14
val
GLuint GLfloat * val
Definition: glad/glad/glad.h:3411
librealsense::ds_advanced_mode_base::get
T get(EtAdvancedModeRegGroup cmd, T *ptr=static_cast< T * >(nullptr), int mode=0) const
Definition: advanced_mode.h:236
librealsense::ds_advanced_mode_base::get_laser_state
void get_laser_state(laser_state_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:283
librealsense::advanced_mode_preset_option
Definition: advanced_mode.h:265
librealsense::ds_advanced_mode_base::unblock
void unblock()
Definition: ds/advanced_mode/advanced_mode.cpp:703
librealsense::depth_sensor
Definition: depth-sensor.h:9
librealsense::ds_advanced_mode_interface::set_ae_control
virtual void set_ae_control(const STAEControl &val)=0
data
GLboolean * data
Definition: glad/glad/glad.h:1481
librealsense::advanced_mode_preset_option::_advanced
ds_advanced_mode_base & _advanced
Definition: advanced_mode.h:284
librealsense::ds_advanced_mode_interface::set_depth_table_control
virtual void set_depth_table_control(const STDepthTableControl &val)=0
test-metadata.c2
c2
Definition: sw-dev/test-metadata.py:181
librealsense::ds_advanced_mode_base::serialize_json
std::vector< uint8_t > serialize_json() const override
Definition: ds/advanced_mode/advanced_mode.cpp:709
librealsense::ds_advanced_mode_interface::toggle_advanced_mode
virtual void toggle_advanced_mode(bool enable)=0
librealsense::laser_power_control
Definition: presets.h:9
test-metadata.c1
c1
Definition: sw-dev/test-metadata.py:167
uint32_t
unsigned int uint32_t
Definition: stdint.h:80
serializable-interface.h
librealsense::ds_advanced_mode_base::get_slo_color_thresholds_control
void get_slo_color_thresholds_control(STSloColorThresholdsControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:228
librealsense::ds_advanced_mode_interface::get_ae_control
virtual void get_ae_control(STAEControl *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::set_depth_exposure
void set_depth_exposure(const exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:556
STDepthControlGroup
Definition: rs_advanced_mode_command.h:14
librealsense::ds_advanced_mode_base::get_color_gamma
void get_color_gamma(gamma_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:390
librealsense::ds_advanced_mode_interface::get_rau_support_vector_control
virtual void get_rau_support_vector_control(STRauSupportVectorControl *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::block
void block(const std::string &exception_message)
Definition: ds/advanced_mode/advanced_mode.cpp:697
STCensusRadius
Definition: rs_advanced_mode_command.h:119
librealsense::ds_advanced_mode_base::get_color_white_balance
void get_color_white_balance(white_balance_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:426
librealsense::ds_advanced_mode_interface::get_depth_table_control
virtual void get_depth_table_control(STDepthTableControl *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::get_color_correction
void get_color_correction(STColorCorrection *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:243
STDepthTableControl
Definition: rs_advanced_mode_command.h:110
librealsense::ds_advanced_mode_base::set_color_gain
void set_color_gain(const gain_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:625
librealsense::ds_advanced_mode_base::get_slo_penalty_control
void get_slo_penalty_control(STSloPenaltyControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:233
value
GLfloat value
Definition: glad/glad/glad.h:2099
librealsense::ds_advanced_mode_base::set_rau_color_thresholds_control
void set_rau_color_thresholds_control(const STRauColorThresholdsControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:477
librealsense::contrast_control
Definition: presets.h:51
librealsense::hue_control
Definition: presets.h:63
librealsense::ds_advanced_mode_base::get_laser_power
void get_laser_power(laser_power_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:274
librealsense::advanced_mode_preset_option::get_device_pid
uint16_t get_device_pid(const uvc_sensor &sensor) const
Definition: ds/advanced_mode/advanced_mode.cpp:991
librealsense::ds_advanced_mode_base::get_depth_control_group
void get_depth_control_group(STDepthControlGroup *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:203
librealsense::ds_advanced_mode_base::set_census_radius
void set_census_radius(const STCensusRadius &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:519
librealsense::ds_advanced_mode_base::pack
static uint32_t pack(uint8_t c0, uint8_t c1, uint8_t c2, uint8_t c3)
Definition: ds/advanced_mode/advanced_mode.cpp:853
librealsense::ds_advanced_mode_base::set_color_white_balance
void set_color_white_balance(const white_balance_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:670
librealsense::ds_advanced_mode_base::set_depth_gain
void set_depth_gain(const gain_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:568
librealsense::ds_advanced_mode_base::supports_option
bool supports_option(const synthetic_sensor &sensor, rs2_option opt) const
Definition: ds/advanced_mode/advanced_mode.cpp:269
librealsense::ds_advanced_mode_base::get_color_control
void get_color_control(STColorControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:218
librealsense::ds_advanced_mode_base::set_rsm
void set_rsm(const STRsm &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:459
librealsense::ds_advanced_mode_base::get_census_radius
void get_census_radius(STCensusRadius *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:258
librealsense::power_line_frequency_control
Definition: presets.h:93
librealsense::ds_advanced_mode_interface::is_enabled
virtual bool is_enabled() const =0
librealsense::ds_advanced_mode_base::get_auto_exposure
void get_auto_exposure(synthetic_sensor &sensor, auto_exposure_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:301
librealsense::ds_advanced_mode_base::get_rau_support_vector_control
void get_rau_support_vector_control(STRauSupportVectorControl *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:213
librealsense::gamma_control
Definition: presets.h:57
rs2_option
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
Definition: rs_option.h:26
etSloColorThresholdsControl
@ etSloColorThresholdsControl
Definition: advanced_mode.h:21
librealsense::ds_advanced_mode_base::get_color_auto_white_balance
void get_color_auto_white_balance(auto_white_balance_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:435
librealsense::ds_advanced_mode_base::get_color_gain
void get_color_gain(gain_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:381
librealsense::advanced_mode_preset_option::to_preset
static rs2_rs400_visual_preset to_preset(float x)
Definition: ds/advanced_mode/advanced_mode.cpp:930
librealsense::ds_advanced_mode_base::set_laser_state
void set_laser_state(const laser_state_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:540
librealsense::synthetic_sensor
Definition: sensor.h:208
librealsense::ds_advanced_mode_base::get_depth_exposure
void get_depth_exposure(exposure_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:310
librealsense::ds_advanced_mode_base::encode_command
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
Definition: ds/advanced_mode/advanced_mode.cpp:875
librealsense::ds_advanced_mode_base::get_amp_factor
void get_amp_factor(STAFactor *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:263
etRauSupportVectorControl
@ etRauSupportVectorControl
Definition: advanced_mode.h:18
librealsense::ds_advanced_mode_base::set_color_auto_white_balance
void set_color_auto_white_balance(const auto_white_balance_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:679
librealsense::advanced_mode_preset_option::set
void set(float value) override
Definition: ds/advanced_mode/advanced_mode.cpp:935
librealsense::ds_advanced_mode_base::should_set_rgb_preset
bool should_set_rgb_preset() const
Definition: ds/advanced_mode/advanced_mode.cpp:836
etAEControl
@ etAEControl
Definition: advanced_mode.h:26
librealsense::ds_advanced_mode_interface::get_hdad
virtual void get_hdad(STHdad *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::set_exposure
void set_exposure(synthetic_sensor &sensor, const exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:546
librealsense::ds_advanced_mode_base::set_laser_power
void set_laser_power(const laser_power_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:534
librealsense::ds_advanced_mode_base::set_amp_factor
void set_amp_factor(const STAFactor &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:525
librealsense::ds_advanced_mode_base::_blocked
bool _blocked
Definition: advanced_mode.h:210
librealsense::ds_advanced_mode_base::set_color_control
void set_color_control(const STColorControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:471
librealsense::ds_advanced_mode_base::set
void set(const T &strct, EtAdvancedModeRegGroup cmd) const
Definition: advanced_mode.h:222
librealsense::advanced_mode_preset_option::_mtx
std::mutex _mtx
Definition: advanced_mode.h:282
librealsense::ds_advanced_mode_base::set_color_correction
void set_color_correction(const STColorCorrection &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:501
etAFactor
@ etAFactor
Definition: advanced_mode.h:28
librealsense::ds_advanced_mode_base::get_depth_auto_white_balance
void get_depth_auto_white_balance(auto_white_balance_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:329
librealsense::ds_advanced_mode_interface::set_color_control
virtual void set_color_control(const STColorControl &val)=0
librealsense::ds_advanced_mode_base::ds_advanced_mode_base
ds_advanced_mode_base(std::shared_ptr< hw_monitor > hwm, synthetic_sensor &depth_sensor)
Definition: ds/advanced_mode/advanced_mode.cpp:33
librealsense::ds_advanced_mode_base::set_color_brightness
void set_color_brightness(const brightness_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:607
rs2_rs400_visual_preset
rs2_rs400_visual_preset
For RS400 devices: provides optimized settings (presets) for specific types of usage.
Definition: rs_option.h:196
librealsense::ds_advanced_mode_base::set_depth_control_group
void set_depth_control_group(const STDepthControlGroup &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:453
librealsense::ds_advanced_mode_base::set_hdad
void set_hdad(const STHdad &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:495
librealsense::ds_advanced_mode_interface
Definition: advanced_mode.h:55
librealsense::ds_advanced_mode_interface::get_color_control
virtual void get_color_control(STColorControl *ptr, int mode=0) const =0
librealsense::brightness_control
Definition: presets.h:45
librealsense::ds_advanced_mode_base::_amplitude_factor_support
rsutils::lazy< bool > _amplitude_factor_support
Definition: advanced_mode.h:209
librealsense::ds_advanced_mode_interface::set_slo_penalty_control
virtual void set_slo_penalty_control(const STSloPenaltyControl &val)=0
hw-monitor.h
p
double p[GRIDW][GRIDH]
Definition: wave.c:109
STRauSupportVectorControl
Definition: rs_advanced_mode_command.h:36
librealsense::ds_advanced_mode_base
Definition: advanced_mode.h:101
librealsense::ds_advanced_mode_base::load_json
void load_json(const std::string &json_content) override
Definition: ds/advanced_mode/advanced_mode.cpp:719
librealsense::ds_advanced_mode_base::get_hdad
void get_hdad(STHdad *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:238
STColorCorrection
Definition: rs_advanced_mode_command.h:89
librealsense::preset
Definition: presets.h:99
librealsense::MAP_ADVANCED_MODE
MAP_ADVANCED_MODE(STDepthControlGroup, etDepthControl)
librealsense::auto_white_balance_control
Definition: presets.h:87
librealsense::ds_advanced_mode_interface::set_census_radius
virtual void set_census_radius(const STCensusRadius &val)=0
librealsense::ds_advanced_mode_base::set_color_auto_exposure
void set_color_auto_exposure(const auto_exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:589
librealsense::ds_advanced_mode_interface::set_color_correction
virtual void set_color_correction(const STColorCorrection &val)=0
librealsense::ds_advanced_mode_interface::get_color_correction
virtual void get_color_correction(STColorCorrection *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::HW_MONITOR_BUFFER_SIZE
static const uint16_t HW_MONITOR_BUFFER_SIZE
Definition: advanced_mode.h:150
example1 - object detection.p2
tuple p2
Definition: example1 - object detection.py:76
librealsense::advanced_mode_preset_option::get_firmware_version
firmware_version get_firmware_version(const uvc_sensor &sensor) const
Definition: ds/advanced_mode/advanced_mode.cpp:1001
test-depth_ae_mode.fw_version
fw_version
Definition: test-depth_ae_mode.py:14
librealsense::ds_advanced_mode_base::set_depth_auto_exposure
void set_depth_auto_exposure(const auto_exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:562
librealsense::ds_advanced_mode_interface::get_rsm
virtual void get_rsm(STRsm *ptr, int mode=0) const =0
STSloPenaltyControl
Definition: rs_advanced_mode_command.h:71
librealsense::ds_advanced_mode_base::get_exposure
void get_exposure(synthetic_sensor &sensor, exposure_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:292
librealsense::ds::fw_cmd
fw_cmd
Definition: ds-private.h:83
librealsense::ds_advanced_mode_base::assert_no_error
static std::vector< uint8_t > assert_no_error(ds::fw_cmd opcode, const std::vector< uint8_t > &results)
Definition: ds/advanced_mode/advanced_mode.cpp:858
librealsense::advanced_mode_preset_option::query
float query() const override
Definition: ds/advanced_mode/advanced_mode.cpp:962
x
GLdouble x
Definition: glad/glad/glad.h:2279
option.h
etColorControl
@ etColorControl
Definition: advanced_mode.h:19
librealsense::ds_advanced_mode_interface::get_amp_factor
virtual void get_amp_factor(STAFactor *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::set_color_gamma
void set_color_gamma(const gamma_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:634
librealsense::auto_calibrated
Definition: d400-auto-calibration.h:29
librealsense::laser_state_control
Definition: presets.h:15
librealsense::ds_advanced_mode_base::set_all_depth
void set_all_depth(const preset &p)
Definition: ds/advanced_mode/advanced_mode.cpp:776
librealsense::ds_advanced_mode_base::set_color_saturation
void set_color_saturation(const saturation_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:652
etColorCorrection
@ etColorCorrection
Definition: advanced_mode.h:24
librealsense::ds_advanced_mode_interface::get_census_radius
virtual void get_census_radius(STCensusRadius *ptr, int mode=0) const =0
STRauColorThresholdsControl
Definition: rs_advanced_mode_command.h:57
librealsense::exposure_control
Definition: presets.h:21
librealsense::ds_advanced_mode_base::apply_preset
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
Definition: ds/advanced_mode/advanced_mode.cpp:90
librealsense::ds_advanced_mode_base::get_color_saturation
void get_color_saturation(saturation_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:408
librealsense::ds_advanced_mode_base::set_color_sharpness
void set_color_sharpness(const sharpness_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:661
etLastAdvancedModeGroup
@ etLastAdvancedModeGroup
Definition: advanced_mode.h:29
librealsense::ds_advanced_mode_base::set_slo_penalty_control
void set_slo_penalty_control(const STSloPenaltyControl &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:489
librealsense::advanced_mode_preset_option::advanced_mode_preset_option
advanced_mode_preset_option(ds_advanced_mode_base &advanced, synthetic_sensor &ep, const option_range &opt_range)
Definition: ds/advanced_mode/advanced_mode.cpp:915
STAFactor
Definition: rs_advanced_mode_command.h:125
librealsense::advanced_mode_traits
Definition: advanced_mode.h:36
librealsense::ds_advanced_mode_base::set_depth_auto_white_balance
void set_depth_auto_white_balance(const auto_white_balance_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:574
etCencusRadius9
@ etCencusRadius9
Definition: advanced_mode.h:27
librealsense::ds_advanced_mode_interface::set_rau_support_vector_control
virtual void set_rau_support_vector_control(const STRauSupportVectorControl &val)=0
librealsense::ds_advanced_mode_interface::set_depth_control_group
virtual void set_depth_control_group(const STDepthControlGroup &val)=0
librealsense::ds_advanced_mode_interface::get_slo_color_thresholds_control
virtual void get_slo_color_thresholds_control(STSloColorThresholdsControl *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_base::get_rsm
void get_rsm(STRsm *ptr, int mode=0) const override
Definition: ds/advanced_mode/advanced_mode.cpp:208
realdds::topics::control::hwm::key::opcode
const std::string opcode
librealsense::ds_advanced_mode_interface::get_rau_color_thresholds_control
virtual void get_rau_color_thresholds_control(STRauColorThresholdsControl *ptr, int mode=0) const =0
librealsense::ds_advanced_mode_interface::set_amp_factor
virtual void set_amp_factor(const STAFactor &val)=0


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:00