ds/advanced_mode/advanced_mode.cpp
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 
4 #include "core/advanced_mode.h"
5 #include "json_loader.hpp"
6 #include "ds/d400/d400-color.h"
7 #include "ds/d500/d500-color.h"
8 
11 
12 #include <rsutils/string/from.h>
13 #include <rsutils/string/hexdump.h>
14 
15 namespace librealsense
16 {
18  {
19  _preset_opt = std::make_shared<advanced_mode_preset_option>(*this,
21  option_range{ 0,
23  1,
26  }
27 
29  {
31  }
32 
33  ds_advanced_mode_base::ds_advanced_mode_base(std::shared_ptr<hw_monitor> hwm,
35  : _hw_monitor(hwm),
36  _depth_sensor(depth_sensor),
37  _color_sensor(nullptr)
38  {
39  _enabled = [this]() {
42  return results[4] > 0;
43  };
44 
45  // "Remove IR Pattern" visual preset is available only for D400, D410, D415, D460
46  if (is_enabled())
48 
49  _color_sensor = [this]() -> synthetic_sensor *
50  {
51  auto & dev = _depth_sensor.get_device();
52  for( size_t i = 0; i < dev.get_sensors_count(); ++i )
53  {
54  if( auto s = dynamic_cast< const d400_color_sensor * >( &( dev.get_sensor( i ) ) ) )
55  {
56  return const_cast< d400_color_sensor * >( s );
57  }
58  if( auto s = dynamic_cast< const d500_color_sensor * >( &( dev.get_sensor( i ) ) ) )
59  {
60  return const_cast< d500_color_sensor * >( s );
61  }
62  }
63  return nullptr;
64  };
65 
66  _amplitude_factor_support = [this]() {
68  };
69  }
70 
72  {
73  return *_enabled;
74  }
75 
77  {
80 
81  // register / unregister visual preset option
82  if (is_enabled())
83  {
85  }
86  else
88  }
89 
90  void ds_advanced_mode_base::apply_preset(const std::vector<platform::stream_profile>& configuration,
93  {
94  auto p = get_all();
95  res_type res;
96  // configuration is empty before first streaming - so set default res
97  if (configuration.empty())
98  res = low_resolution;
99  else
100  res = get_res_type(configuration.front().width, configuration.front().height);
101 
102  switch (preset)
103  {
105  switch (device_pid)
106  {
107  case ds::RS410_PID:
108  case ds::RS415_PID:
109  default_410(p);
110  break;
111  case ds::RS430_PID:
112  case ds::RS430I_PID:
113  case ds::RS435_RGB_PID:
114  case ds::RS435I_PID:
115  default_430(p);
116  break;
117  case ds::RS455_PID:
118  case ds::RS457_PID:
120  switch (res)
121  {
122  case low_resolution:
123  case medium_resolution:
124  //applied defaultly
125  break;
126  case high_resolution:
128  break;
129  default:
132  << "apply_preset(...) failed! Given device doesn't support Default Preset (pid=0x"
133  << rsutils::string::hexdump( device_pid ) << ")" );
134  break;
135  }
136  break;
137  case ds::RS405U_PID:
138  default_405u(p);
139  break;
140  case ds::RS405_PID:
141  default_405(p);
142  break;
143  case ds::RS400_PID:
144  default_400(p);
145  break;
146  case ds::RS420_PID:
147  default_420(p);
148  break;
149  default:
152  << "apply_preset(...) failed! Given device doesn't support Default Preset (pid=0x"
153  << rsutils::string::hexdump( device_pid ) << ")" );
154  break;
155  }
156  break;
158  hand_gesture(p);
159  // depth units for D405
160  if (device_pid == ds::RS405_PID)
161  p.depth_table.depthUnits = 100; // 0.1mm
162  break;
164  high_accuracy(p);
165  break;
167  high_density(p);
168  break;
170  mid_density(p);
171  break;
173  {
175  throw invalid_value_exception( "apply_preset(...) failed! The device does not support remove IR pattern feature" );
176 
177  switch (device_pid)
178  {
179  case ds::RS400_PID:
180  case ds::RS410_PID:
181  case ds::RS415_PID:
182  d415_remove_ir(p);
183  break;
184  case ds::RS460_PID:
185  d460_remove_ir(p);
186  break;
187  default:
190  << "apply_preset(...) failed! Given device doesn't support Remove IR Pattern Preset (pid=0x"
191  << std::hex << device_pid << ")" );
192  break;
193  }
194  }
195  break;
196  default:
198  << "apply_preset(...) failed! Invalid preset! (" << preset << ")" );
199  }
200  set_all(p);
201  }
202 
204  {
205  *ptr = get<STDepthControlGroup>(advanced_mode_traits<STDepthControlGroup>::group, nullptr, mode);
206  }
207 
209  {
210  *ptr = get<STRsm>(advanced_mode_traits<STRsm>::group, nullptr, mode);
211  }
212 
214  {
215  *ptr = get<STRauSupportVectorControl>(advanced_mode_traits<STRauSupportVectorControl>::group, nullptr, mode);
216  }
217 
219  {
220  *ptr = get<STColorControl>(advanced_mode_traits<STColorControl>::group, nullptr, mode);
221  }
222 
224  {
225  *ptr = get<STRauColorThresholdsControl>(advanced_mode_traits<STRauColorThresholdsControl>::group, nullptr, mode);
226  }
227 
229  {
230  *ptr = get<STSloColorThresholdsControl>(advanced_mode_traits<STSloColorThresholdsControl>::group, nullptr, mode);
231  }
232 
234  {
235  *ptr = get<STSloPenaltyControl>(advanced_mode_traits<STSloPenaltyControl>::group, nullptr, mode);
236  }
237 
239  {
240  *ptr = get<STHdad>(advanced_mode_traits<STHdad>::group, nullptr, mode);
241  }
242 
244  {
245  *ptr = get<STColorCorrection>(advanced_mode_traits<STColorCorrection>::group, nullptr, mode);
246  }
247 
249  {
250  *ptr = get<STDepthTableControl>(advanced_mode_traits<STDepthTableControl>::group, nullptr, mode);
251  }
252 
254  {
255  *ptr = get<STAEControl>(advanced_mode_traits<STAEControl>::group, nullptr, mode);
256  }
257 
259  {
260  *ptr = get<STCensusRadius>(advanced_mode_traits<STCensusRadius>::group, nullptr, mode);
261  }
262 
264  {
265  *ptr = *_amplitude_factor_support ? get<STAFactor>(advanced_mode_traits<STAFactor>::group, nullptr, mode) :
266  []() { STAFactor af; af.amplitude = 0.f; return af; }();
267  }
268 
270  {
271  return sensor.supports_option(opt);
272  }
273 
275  {
277  {
279  ptr->was_set = true;
280  }
281  }
282 
284  {
286  {
288  ptr->was_set = true;
289  }
290  }
291 
293  {
295  {
296  ptr->exposure = sensor.get_option(RS2_OPTION_EXPOSURE).query();
297  ptr->was_set = true;
298  }
299  }
300 
302  {
304  {
305  ptr->auto_exposure = static_cast<int>(sensor.get_option(RS2_OPTION_ENABLE_AUTO_EXPOSURE).query());
306  ptr->was_set = true;
307  }
308  }
309 
311  {
313  }
314 
316  {
318  }
319 
321  {
323  {
325  ptr->was_set = true;
326  }
327  }
328 
330  {
332  {
334  ptr->was_set = true;
335  }
336  }
337 
339  {
340  if (*_color_sensor)
341  {
342  get_exposure(**_color_sensor, ptr);
343  }
344  }
345 
347  {
348  if (*_color_sensor)
349  {
351  }
352  }
353 
355  {
357  {
358  ptr->backlight_compensation = static_cast<int>((*_color_sensor)->get_option(RS2_OPTION_BACKLIGHT_COMPENSATION).query());
359  ptr->was_set = true;
360  }
361  }
362 
364  {
366  {
367  ptr->brightness = (*_color_sensor)->get_option(RS2_OPTION_BRIGHTNESS).query();
368  ptr->was_set = true;
369  }
370  }
371 
373  {
375  {
376  ptr->contrast = (*_color_sensor)->get_option(RS2_OPTION_CONTRAST).query();
377  ptr->was_set = true;
378  }
379  }
380 
382  {
384  {
385  ptr->gain = (*_color_sensor)->get_option(RS2_OPTION_GAIN).query();
386  ptr->was_set = true;
387  }
388  }
389 
391  {
393  {
394  ptr->gamma = (*_color_sensor)->get_option(RS2_OPTION_GAMMA).query();
395  ptr->was_set = true;
396  }
397  }
398 
400  {
402  {
403  ptr->hue = (*_color_sensor)->get_option(RS2_OPTION_HUE).query();
404  ptr->was_set = true;
405  }
406  }
407 
409  {
411  {
412  ptr->saturation = (*_color_sensor)->get_option(RS2_OPTION_SATURATION).query();
413  ptr->was_set = true;
414  }
415  }
416 
418  {
420  {
421  ptr->sharpness = (*_color_sensor)->get_option(RS2_OPTION_SHARPNESS).query();
422  ptr->was_set = true;
423  }
424  }
425 
427  {
429  {
430  ptr->white_balance = (*_color_sensor)->get_option(RS2_OPTION_WHITE_BALANCE).query();
431  ptr->was_set = true;
432  }
433  }
434 
436  {
438  {
439  ptr->auto_white_balance = static_cast<int>((*_color_sensor)->get_option(RS2_OPTION_ENABLE_AUTO_WHITE_BALANCE).query());
440  ptr->was_set = true;
441  }
442  }
443 
445  {
447  {
448  ptr->power_line_frequency = static_cast<int>((*_color_sensor)->get_option(RS2_OPTION_POWER_LINE_FREQUENCY).query());
449  ptr->was_set = true;
450  }
451  }
452 
454  {
457  }
458 
460  {
463  }
464 
466  {
469  }
470 
472  {
475  }
476 
478  {
481  }
482 
484  {
487  }
488 
490  {
493  }
494 
496  {
499  }
500 
502  {
505  }
506 
508  {
511  }
512 
514  {
517  }
518 
520  {
523  }
524 
526  {
528  {
531  }
532  }
533 
535  {
536  if (val.was_set)
538  }
539 
541  {
542  if (val.was_set)
544  }
545 
547  {
548  sensor.get_option(RS2_OPTION_EXPOSURE).set(val.exposure);
549  }
550 
552  {
553  sensor.get_option(RS2_OPTION_ENABLE_AUTO_EXPOSURE).set(float(val.auto_exposure));
554  }
555 
557  {
558  if (val.was_set)
560  }
561 
563  {
564  if (val.was_set)
566  }
567 
569  {
570  if (val.was_set)
572  }
573 
575  {
576  if (val.was_set)
578  }
579 
581  {
582  if (val.was_set && !*_color_sensor)
583  throw invalid_value_exception("Can't set color_exposure value! Color sensor not found.");
584 
585  if (val.was_set)
587  }
588 
590  {
591  if (val.was_set && !*_color_sensor)
592  throw invalid_value_exception("Can't set color_auto_exposure value! Color sensor not found.");
593 
594  if (val.was_set)
596  }
597 
599  {
600  if (val.was_set && !*_color_sensor)
601  throw invalid_value_exception("Can't set color_backlight_compensation value! Color sensor not found.");
602 
603  if (val.was_set)
604  (*_color_sensor)->get_option(RS2_OPTION_BACKLIGHT_COMPENSATION).set((float)val.backlight_compensation);
605  }
606 
608  {
609  if (val.was_set && !*_color_sensor)
610  throw invalid_value_exception("Can't set color_brightness value! Color sensor not found.");
611 
612  if (val.was_set)
613  (*_color_sensor)->get_option(RS2_OPTION_BRIGHTNESS).set(val.brightness);
614  }
615 
617  {
618  if (val.was_set && !*_color_sensor)
619  throw invalid_value_exception("Can't set color_contrast value! Color sensor not found.");
620 
621  if (val.was_set)
622  (*_color_sensor)->get_option(RS2_OPTION_CONTRAST).set(val.contrast);
623  }
624 
626  {
627  if (val.was_set && !*_color_sensor)
628  throw invalid_value_exception("Can't set color_gain value! Color sensor not found.");
629 
630  if (val.was_set)
631  (*_color_sensor)->get_option(RS2_OPTION_GAIN).set(val.gain);
632  }
633 
635  {
636  if (val.was_set && !*_color_sensor)
637  throw invalid_value_exception("Can't set color_gamma value! Color sensor not found.");
638 
639  if (val.was_set)
640  (*_color_sensor)->get_option(RS2_OPTION_GAMMA).set(val.gamma);
641  }
642 
644  {
645  if (val.was_set && !*_color_sensor)
646  throw invalid_value_exception("Can't set color_hue value! Color sensor not found.");
647 
648  if (val.was_set)
649  (*_color_sensor)->get_option(RS2_OPTION_HUE).set(val.hue);
650  }
651 
653  {
654  if (val.was_set && !*_color_sensor)
655  throw invalid_value_exception("Can't set color_saturation value! Color sensor not found.");
656 
657  if (val.was_set)
658  (*_color_sensor)->get_option(RS2_OPTION_SATURATION).set(val.saturation);
659  }
660 
662  {
663  if (val.was_set && !*_color_sensor)
664  throw invalid_value_exception("Can't set color_sharpness value! Color sensor not found.");
665 
666  if (val.was_set)
667  (*_color_sensor)->get_option(RS2_OPTION_SHARPNESS).set(val.sharpness);
668  }
669 
671  {
672  if (val.was_set && !*_color_sensor)
673  throw invalid_value_exception("Can't set color_white_balance value! Color sensor not found.");
674 
675  if (val.was_set)
676  (*_color_sensor)->get_option(RS2_OPTION_WHITE_BALANCE).set(val.white_balance);
677  }
678 
680  {
681  if (val.was_set && !*_color_sensor)
682  throw invalid_value_exception("Can't set color_auto_white_balance value! Color sensor not found.");
683 
684  if (val.was_set)
685  (*_color_sensor)->get_option(RS2_OPTION_ENABLE_AUTO_WHITE_BALANCE).set((float)val.auto_white_balance);
686  }
687 
689  {
690  if (val.was_set && !*_color_sensor)
691  throw invalid_value_exception("Can't set color_power_line_frequency value! Color sensor not found.");
692 
693  if (val.was_set)
694  (*_color_sensor)->get_option(RS2_OPTION_POWER_LINE_FREQUENCY).set((float)val.power_line_frequency);
695  }
696 
697  void ds_advanced_mode_base::block( const std::string & exception_message )
698  {
699  _blocked = true;
700  _block_message = exception_message;
701  }
702 
704  {
705  _blocked = false;
706  _block_message.clear();
707  }
708 
709  std::vector<uint8_t> ds_advanced_mode_base::serialize_json() const
710  {
711  if (!is_enabled())
713  << "serialize_json() failed! Device is not in Advanced-Mode." );
714 
715  auto p = get_all();
717  }
718 
720  {
721  if (!is_enabled())
723  << "load_json(...) failed! Device is not in Advanced-Mode." );
724 
725  auto p = get_all();
726  update_structs(_depth_sensor.get_device(), json_content, p);
727  set_all(p);
729  }
730 
732  {
733  preset p;
734  get_depth_control_group(&p.depth_controls);
735  get_rsm(&p.rsm);
737  get_color_control(&p.color_control);
741  get_hdad(&p.hdad);
742  get_color_correction(&p.cc);
743  get_depth_table_control(&p.depth_table);
744  get_ae_control(&p.ae);
745  get_census_radius(&p.census);
746  get_amp_factor(&p.amplitude_factor);
747  get_laser_power(&p.laser_power);
748  get_laser_state(&p.laser_state);
749  get_depth_exposure(&p.depth_exposure);
750  get_depth_auto_exposure(&p.depth_auto_exposure);
751  get_depth_gain(&p.depth_gain);
752  get_depth_auto_white_balance(&p.depth_auto_white_balance);
753  get_color_exposure(&p.color_exposure);
754  get_color_auto_exposure(&p.color_auto_exposure);
755  get_color_backlight_compensation(&p.color_backlight_compensation);
756  get_color_brightness(&p.color_brightness);
757  get_color_contrast(&p.color_contrast);
758  get_color_gain(&p.color_gain);
759  get_color_gamma(&p.color_gamma);
760  get_color_hue(&p.color_hue);
761  get_color_saturation(&p.color_saturation);
762  get_color_sharpness(&p.color_sharpness);
763  get_color_white_balance(&p.color_white_balance);
764  get_color_auto_white_balance(&p.color_auto_white_balance);
765  get_color_power_line_frequency(&p.color_power_line_frequency);
766  return p;
767  }
768 
770  {
771  set_all_depth( p );
772  if( should_set_rgb_preset() )
773  set_all_rgb( p );
774  }
775 
777  {
782 
783  // Setting auto-white-balance control before colorCorrection parameters
784  set_depth_auto_white_balance(p.depth_auto_white_balance);
786 
791  set(p.amplitude_factor, advanced_mode_traits<STAFactor>::group);
792 
793  set_laser_state(p.laser_state);
794  if (p.laser_state.was_set && p.laser_state.laser_state == 1) // 1 - on
795  set_laser_power(p.laser_power);
796 
797  set_depth_auto_exposure(p.depth_auto_exposure);
798  if (p.depth_auto_exposure.was_set && p.depth_auto_exposure.auto_exposure == 0)
799  {
800  set_depth_gain(p.depth_gain);
801  set_depth_exposure(p.depth_exposure);
802  }
803 
804  // Depth sensor related even though they have color in the name. Probably color from left IR imager.
809  }
810 
812  {
813  set_color_auto_exposure(p.color_auto_exposure);
814  if (p.color_auto_exposure.was_set && p.color_auto_exposure.auto_exposure == 0)
815  {
816  set_color_exposure(p.color_exposure);
817  set_color_gain(p.color_gain);
818  }
819 
820  set_color_backlight_compensation(p.color_backlight_compensation);
821  set_color_brightness(p.color_brightness);
822  set_color_contrast(p.color_contrast);
823  set_color_gamma(p.color_gamma);
824  set_color_hue(p.color_hue);
825  set_color_saturation(p.color_saturation);
826  set_color_sharpness(p.color_sharpness);
827 
828  set_color_auto_white_balance(p.color_auto_white_balance);
829  if (p.color_auto_white_balance.was_set && p.color_auto_white_balance.auto_white_balance == 0)
830  set_color_white_balance(p.color_white_balance);
831 
832  // TODO: W/O due to a FW bug of power_line_frequency control on Windows OS
833  //set_color_power_line_frequency(p.color_power_line_frequency);
834  }
835 
837  {
839 
840  return product_line != "D500";
841  }
842 
843  std::vector<uint8_t> ds_advanced_mode_base::send_receive(const std::vector<uint8_t>& input) const
844  {
845  auto res = _hw_monitor->send(input);
846  if (res.empty())
847  {
848  throw std::runtime_error("Advanced mode write failed!");
849  }
850  return res;
851  }
852 
854  {
855  return (c0 << 24) | (c1 << 16) | (c2 << 8) | c3;
856  }
857 
858  std::vector<uint8_t> ds_advanced_mode_base::assert_no_error(ds::fw_cmd opcode, const std::vector<uint8_t>& results)
859  {
860  if (results.size() < sizeof(uint32_t)) throw std::runtime_error("Incomplete operation result!");
861  auto opCodeAsUint32 = pack(results[3], results[2], results[1], results[0]);
862  if (opCodeAsUint32 != static_cast<uint32_t>(opcode))
863  {
864  std::stringstream ss;
865  ss << "Operation failed with error code=" << static_cast<int>(opCodeAsUint32);
866  throw std::runtime_error(ss.str());
867  }
868  std::vector<uint8_t> result;
869  result.resize(results.size() - sizeof(uint32_t));
870  std::copy(results.data() + sizeof(uint32_t),
871  results.data() + results.size(), result.data());
872  return result;
873  }
874 
876  uint32_t p1,
877  uint32_t p2,
878  uint32_t p3,
879  uint32_t p4,
880  std::vector<uint8_t> data) const
881  {
882  std::vector<uint8_t> raw_data;
883  auto cmd_op_code = static_cast<uint32_t>(opcode);
884 
885  const uint16_t pre_header_data = 0xcdab;
886  raw_data.resize(HW_MONITOR_BUFFER_SIZE);
887  auto write_ptr = raw_data.data();
888  auto header_size = 4;
889 
890  size_t cur_index = 2;
891  *reinterpret_cast<uint16_t *>(write_ptr + cur_index) = pre_header_data;
892  cur_index += sizeof(uint16_t);
893  *reinterpret_cast<unsigned int *>(write_ptr + cur_index) = cmd_op_code;
894  cur_index += sizeof(unsigned int);
895 
896  // Parameters
897  *reinterpret_cast<unsigned*>(write_ptr + cur_index) = p1;
898  cur_index += sizeof(unsigned);
899  *reinterpret_cast<unsigned*>(write_ptr + cur_index) = p2;
900  cur_index += sizeof(unsigned);
901  *reinterpret_cast<unsigned*>(write_ptr + cur_index) = p3;
902  cur_index += sizeof(unsigned);
903  *reinterpret_cast<unsigned*>(write_ptr + cur_index) = p4;
904  cur_index += sizeof(unsigned);
905 
906  // Data
907  std::copy(data.begin(), data.end(), reinterpret_cast<uint8_t*>(write_ptr + cur_index));
908  cur_index += data.size();
909 
910  *reinterpret_cast<uint16_t*>(raw_data.data()) = static_cast<uint16_t>(cur_index - header_size);// Length doesn't include hdr.
911  raw_data.resize(cur_index);
912  return raw_data;
913  }
914 
916  synthetic_sensor& ep, const option_range& opt_range)
917  : option_base(opt_range),
918  _ep(ep),
919  _advanced(advanced),
920  _last_preset(RS2_RS400_VISUAL_PRESET_CUSTOM)
921  {
922  _ep.register_on_open([this](std::vector<platform::stream_profile> configurations) {
923  std::lock_guard<std::mutex> lock(_mtx);
924  auto uvc_sen = As<uvc_sensor, sensor_base>(_ep.get_raw_sensor());
926  _advanced.apply_preset(configurations, _last_preset, get_device_pid(*uvc_sen), get_firmware_version(*uvc_sen));
927  });
928  }
929 
931  {
932  return (static_cast<rs2_rs400_visual_preset>((int)x));
933  }
934 
936  {
937  std::lock_guard<std::mutex> lock(_mtx);
938  if (!is_valid(value))
940  << "set(advanced_mode_preset_option) failed! Given value " << value
941  << " is out of range." );
942 
943  if (!_advanced.is_enabled())
946  << "set(advanced_mode_preset_option) failed! Device is not in Advanced-Mode." );
947 
948  auto preset = to_preset(value);
950  {
952  return;
953  }
954 
955  auto uvc_sen = As<uvc_sensor, sensor_base>(_ep.get_raw_sensor());
956  auto configurations = uvc_sen->get_configuration();
957  _advanced.apply_preset(configurations, preset, get_device_pid(*uvc_sen), get_firmware_version(*uvc_sen));
959  _recording_function(*this);
960  }
961 
963  {
964  return static_cast<float>(_last_preset);
965  }
966 
968  {
969  return true;
970  }
971 
973  {
974  return "Advanced-Mode Preset";
975  }
976 
978  {
979  try {
981  }
982  catch (std::out_of_range)
983  {
986  << "advanced_mode_preset: get_value_description(...) failed! Description of value " << val
987  << " is not found." );
988  }
989  }
990 
992  {
993  auto str_pid = sensor.get_info(RS2_CAMERA_INFO_PRODUCT_ID);
994  uint16_t device_pid{};
995  std::stringstream ss;
996  ss << std::hex << str_pid;
997  ss >> device_pid;
998  return device_pid;
999  }
1000 
1002  {
1004  }
1005 }
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
remove-ir-pattern-feature.h
librealsense
Definition: algo.h:18
librealsense::laser_power_control::was_set
bool was_set
Definition: presets.h:12
STAEControl
Definition: rs_advanced_mode_command.h:105
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::advanced_mode_preset_option::is_enabled
bool is_enabled() const override
Definition: ds/advanced_mode/advanced_mode.cpp:967
librealsense::synthetic_sensor::unregister_option
virtual void unregister_option(rs2_option id)
Definition: sensor.cpp:489
librealsense::backlight_compensation_control::backlight_compensation
int backlight_compensation
Definition: presets.h:41
rsutils::version
Definition: version.h:20
librealsense::info_interface::get_info
virtual const std::string & get_info(rs2_camera_info info) const =0
librealsense::amplitude_factor_feature::ID
static const feature_id ID
Definition: amplitude-factor-feature.h:15
librealsense::ds_advanced_mode_base::set_all_rgb
void set_all_rgb(const preset &p)
Definition: ds/advanced_mode/advanced_mode.cpp:811
librealsense::invalid_value_exception
Definition: librealsense-exception.h:114
librealsense::sensor_base::get_device
device_interface & get_device() override
Definition: sensor.cpp:265
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::ds::RS457_PID
const uint16_t RS457_PID
Definition: d400-private.h:39
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
RS2_OPTION_ENABLE_AUTO_EXPOSURE
@ RS2_OPTION_ENABLE_AUTO_EXPOSURE
Definition: rs_option.h:38
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
RS2_OPTION_CONTRAST
@ RS2_OPTION_CONTRAST
Definition: rs_option.h:30
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::ds::UAMG
@ UAMG
Definition: ds-private.h:104
uint16_t
unsigned short uint16_t
Definition: stdint.h:79
RS2_RS400_VISUAL_PRESET_CUSTOM
@ RS2_RS400_VISUAL_PRESET_CUSTOM
Definition: rs_option.h:198
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
librealsense::white_balance_control::white_balance
float white_balance
Definition: presets.h:83
test-librs-device-properties.sensor
sensor
Definition: test-librs-device-properties.py:40
librealsense::synthetic_sensor::get_raw_sensor
const std::shared_ptr< raw_sensor_base > & get_raw_sensor() const
Definition: sensor.h:243
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::RS415_PID
const uint16_t RS415_PID
Definition: d400-private.h:18
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::brightness_control::was_set
bool was_set
Definition: presets.h:48
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
RS2_RS400_VISUAL_PRESET_HIGH_DENSITY
@ RS2_RS400_VISUAL_PRESET_HIGH_DENSITY
Definition: rs_option.h:202
librealsense::option_base::_recording_function
std::function< void(const option &)> _recording_function
Definition: option.h:105
librealsense::high_density
void high_density(preset &p)
Definition: presets.cpp:587
STRsm
Definition: rs_advanced_mode_command.h:28
librealsense::d500_color_sensor
Definition: d500-color.h:60
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
librealsense::default_400
void default_400(preset &p)
Definition: presets.cpp:8
librealsense::ds_advanced_mode_base::_block_message
std::string _block_message
Definition: advanced_mode.h:211
librealsense::default_420
void default_420(preset &p)
Definition: presets.cpp:297
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::contrast_control::contrast
float contrast
Definition: presets.h:53
RS2_OPTION_BACKLIGHT_COMPENSATION
@ RS2_OPTION_BACKLIGHT_COMPENSATION
Definition: rs_option.h:28
STAFactor::amplitude
float amplitude
Definition: rs_advanced_mode_command.h:127
librealsense::advanced_mode_preset_option::_last_preset
rs2_rs400_visual_preset _last_preset
Definition: advanced_mode.h:285
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::gain_control::gain
float gain
Definition: presets.h:35
librealsense::sharpness_control
Definition: presets.h:75
mode
GLenum mode
Definition: glad/glad/glad.h:1385
librealsense::d400_color_sensor
Definition: d400-color.h:62
STHdad
Definition: rs_advanced_mode_command.h:82
librealsense::hand_gesture
void hand_gesture(preset &p)
Definition: presets.cpp:683
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::ds::RS455_PID
const uint16_t RS455_PID
Definition: d400-private.h:38
librealsense::uvc_sensor
Definition: uvc-sensor.h:13
librealsense::ds_advanced_mode_base::_color_sensor
rsutils::lazy< synthetic_sensor * > _color_sensor
Definition: advanced_mode.h:206
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::hue_control::was_set
bool was_set
Definition: presets.h:66
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
from.h
librealsense::wrong_api_call_sequence_exception
Definition: librealsense-exception.h:124
librealsense::ds::RS460_PID
const uint16_t RS460_PID
Definition: d400-private.h:30
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::gain_control::was_set
bool was_set
Definition: presets.h:36
librealsense::synthetic_sensor::register_option
virtual void register_option(rs2_option id, std::shared_ptr< option > option)
Definition: sensor.cpp:438
RS2_OPTION_WHITE_BALANCE
@ RS2_OPTION_WHITE_BALANCE
Definition: rs_option.h:37
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::laser_power_control::laser_power
float laser_power
Definition: presets.h:11
librealsense::ds_advanced_mode_base::set_color_exposure
void set_color_exposure(const exposure_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:580
RS2_CAMERA_INFO_PRODUCT_ID
@ RS2_CAMERA_INFO_PRODUCT_ID
Definition: rs_sensor.h:30
librealsense::synthetic_sensor::get_preset_max_value
virtual float get_preset_max_value() const
Definition: sensor.cpp:654
RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN
@ RS2_RS400_VISUAL_PRESET_REMOVE_IR_PATTERN
Definition: rs_option.h:204
RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY
@ RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY
Definition: rs_option.h:203
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
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::send_receive
std::vector< uint8_t > send_receive(const std::vector< uint8_t > &input) const
Definition: ds/advanced_mode/advanced_mode.cpp:843
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::exposure_control::was_set
bool was_set
Definition: presets.h:24
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::default_450_high_res
void default_450_high_res(preset &p)
Definition: presets.cpp:448
librealsense::option_range
Definition: option-interface.h:14
val
GLuint GLfloat * val
Definition: glad/glad/glad.h:3411
rs2_rs400_visual_preset_to_string
const char * rs2_rs400_visual_preset_to_string(rs2_rs400_visual_preset preset)
Definition: rs_advanced_mode.cpp:46
RS2_OPTION_GAIN
@ RS2_OPTION_GAIN
Definition: rs_option.h:32
RS2_RS400_VISUAL_PRESET_HAND
@ RS2_RS400_VISUAL_PRESET_HAND
Definition: rs_option.h:200
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::ds_advanced_mode_base::unblock
void unblock()
Definition: ds/advanced_mode/advanced_mode.cpp:703
librealsense::depth_sensor
Definition: depth-sensor.h:9
librealsense::advanced_mode_preset_option::_advanced
ds_advanced_mode_base & _advanced
Definition: advanced_mode.h:284
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::RS420_PID
const uint16_t RS420_PID
Definition: d400-private.h:25
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
librealsense::option_base::is_valid
bool is_valid(float value) const
Definition: option.cpp:16
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
RS2_CAMERA_INFO_FIRMWARE_VERSION
@ RS2_CAMERA_INFO_FIRMWARE_VERSION
Definition: rs_sensor.h:25
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::RS410_PID
const uint16_t RS410_PID
Definition: d400-private.h:17
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_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::high_accuracy
void high_accuracy(preset &p)
Definition: presets.cpp:539
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
d400-color.h
RS2_OPTION_HUE
@ RS2_OPTION_HUE
Definition: rs_option.h:34
value
GLfloat value
Definition: glad/glad/glad.h:2099
i
int i
Definition: rs-pcl-color.cpp:54
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
high_resolution
@ high_resolution
Definition: src/types.h:181
librealsense::ds::RS435_RGB_PID
const uint16_t RS435_RGB_PID
Definition: d400-private.h:31
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::sensor_base::register_on_open
void register_on_open(on_open callback)
Definition: sensor.h:77
RS2_OPTION_SATURATION
@ RS2_OPTION_SATURATION
Definition: rs_option.h:35
d500-color.h
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::sharpness_control::was_set
bool was_set
Definition: presets.h:78
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::saturation_control::was_set
bool was_set
Definition: presets.h:72
librealsense::generate_json
std::vector< uint8_t > generate_json(const device_interface &dev, const preset &in_preset)
Definition: json_loader.hpp:453
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::default_405u
void default_405u(preset &p)
Definition: presets.cpp:75
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::power_line_frequency_control::power_line_frequency
int power_line_frequency
Definition: presets.h:95
librealsense::default_405
void default_405(preset &p)
Definition: presets.cpp:144
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::exposure_control::exposure
float exposure
Definition: presets.h:23
librealsense::contrast_control::was_set
bool was_set
Definition: presets.h:54
librealsense::firmware_version
rsutils::version firmware_version
Definition: src/firmware-version.h:11
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::RS435I_PID
const uint16_t RS435I_PID
Definition: d400-private.h:33
librealsense::ds::RS405U_PID
const uint16_t RS405U_PID
Definition: d400-private.h:32
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
test-projection-from-recording.dev
dev
Definition: test-projection-from-recording.py:17
librealsense::gamma_control
Definition: presets.h:57
test-shorten-json.ss
string ss
Definition: test-shorten-json.py:119
rs2_option
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls,...
Definition: rs_option.h:26
librealsense::laser_state_control::laser_state
int laser_state
Definition: presets.h:17
librealsense::options_container::get_option
option & get_option(rs2_option id) override
Definition: options-container.h:32
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
rsutils::string::hexdump
Definition: hexdump.h:24
librealsense::ds_advanced_mode_base::get_color_gain
void get_color_gain(gain_control *ptr) const
Definition: ds/advanced_mode/advanced_mode.cpp:381
RS2_OPTION_EXPOSURE
@ RS2_OPTION_EXPOSURE
Definition: rs_option.h:31
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::has_features_interface::supports_feature
virtual bool supports_feature(feature_id id, std::shared_ptr< feature_interface > *=nullptr)
Definition: has-features-interface.h:19
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
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::gamma_control::gamma
float gamma
Definition: presets.h:59
hexdump.h
librealsense::auto_exposure_control::auto_exposure
int auto_exposure
Definition: presets.h:29
librealsense::ds_advanced_mode_base::should_set_rgb_preset
bool should_set_rgb_preset() const
Definition: ds/advanced_mode/advanced_mode.cpp:836
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::auto_white_balance_control::was_set
bool was_set
Definition: presets.h:90
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
amplitude-factor-feature.h
RS2_OPTION_LASER_POWER
@ RS2_OPTION_LASER_POWER
Definition: rs_option.h:41
RS2_OPTION_POWER_LINE_FREQUENCY
@ RS2_OPTION_POWER_LINE_FREQUENCY
Definition: rs_option.h:50
librealsense::saturation_control::saturation
float saturation
Definition: presets.h:71
librealsense::ds_advanced_mode_base::set
void set(const T &strct, EtAdvancedModeRegGroup cmd) const
Definition: advanced_mode.h:222
librealsense::d460_remove_ir
void d460_remove_ir(preset &p)
Definition: presets.cpp:747
librealsense::advanced_mode_preset_option::_mtx
std::mutex _mtx
Definition: advanced_mode.h:282
RS2_OPTION_GAMMA
@ RS2_OPTION_GAMMA
Definition: rs_option.h:33
librealsense::ds_advanced_mode_base::set_color_correction
void set_color_correction(const STColorCorrection &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:501
librealsense::auto_white_balance_control::auto_white_balance
int auto_white_balance
Definition: presets.h:89
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
RS2_OPTION_BRIGHTNESS
@ RS2_OPTION_BRIGHTNESS
Definition: rs_option.h:29
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::laser_state_control::was_set
bool was_set
Definition: presets.h:18
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_DEFAULT
@ RS2_RS400_VISUAL_PRESET_DEFAULT
Definition: rs_option.h:199
librealsense::power_line_frequency_control::was_set
bool was_set
Definition: presets.h:96
librealsense::ds::RS405_PID
const uint16_t RS405_PID
Definition: d400-private.h:37
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::option::set
virtual void set(float value)=0
librealsense::backlight_compensation_control::was_set
bool was_set
Definition: presets.h:42
librealsense::ds_advanced_mode_base::set_hdad
void set_hdad(const STHdad &val) override
Definition: ds/advanced_mode/advanced_mode.cpp:495
rsutils::string::from
Definition: from.h:19
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
RS2_OPTION_VISUAL_PRESET
@ RS2_OPTION_VISUAL_PRESET
Definition: rs_option.h:40
p
double p[GRIDW][GRIDH]
Definition: wave.c:109
librealsense::ds::HWRST
@ HWRST
Definition: ds-private.h:98
medium_resolution
@ medium_resolution
Definition: src/types.h:180
STRauSupportVectorControl
Definition: rs_advanced_mode_command.h:36
RS2_OPTION_EMITTER_ENABLED
@ RS2_OPTION_EMITTER_ENABLED
Definition: rs_option.h:46
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::sensor_base::get_info
const std::string & get_info(rs2_camera_info info) const override
Definition: sensor.cpp:81
librealsense::d415_remove_ir
void d415_remove_ir(preset &p)
Definition: presets.cpp:731
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::auto_white_balance_control
Definition: presets.h:87
RS2_OPTION_SHARPNESS
@ RS2_OPTION_SHARPNESS
Definition: rs_option.h:36
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
json_loader.hpp
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::default_450_mid_low_res
void default_450_mid_low_res(preset &p)
Definition: presets.cpp:454
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
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
rs2::textual_icons::lock
static const textual_icon lock
Definition: device-model.h:186
librealsense::ds::RS430_PID
const uint16_t RS430_PID
Definition: d400-private.h:19
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
librealsense::default_430
void default_430(preset &p)
Definition: presets.cpp:364
librealsense::white_balance_control::was_set
bool was_set
Definition: presets.h:84
librealsense::sharpness_control::sharpness
float sharpness
Definition: presets.h:77
librealsense::ds_advanced_mode_base::set_color_gamma
void set_color_gamma(const gamma_control &val)
Definition: ds/advanced_mode/advanced_mode.cpp:634
test-color_frame_frops.product_line
product_line
Definition: test-color_frame_frops.py:22
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
res_type
res_type
Definition: src/types.h:178
librealsense::option::query
virtual float query() const =0
librealsense::remove_ir_pattern_feature::ID
static const feature_id ID
Definition: remove-ir-pattern-feature.h:15
RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY
@ RS2_RS400_VISUAL_PRESET_HIGH_ACCURACY
Definition: rs_option.h:201
test-depth.result
result
Definition: test-depth.py:183
librealsense::ds::RS400_PID
const uint16_t RS400_PID
Definition: d400-private.h:16
STRauColorThresholdsControl
Definition: rs_advanced_mode_command.h:57
librealsense::ds::RS430I_PID
const uint16_t RS430I_PID
Definition: d400-private.h:35
s
GLdouble s
Definition: glad/glad/glad.h:2441
librealsense::gamma_control::was_set
bool was_set
Definition: presets.h:60
librealsense::mid_density
void mid_density(preset &p)
Definition: presets.cpp:635
get_res_type
res_type get_res_type(uint32_t width, uint32_t height)
Definition: src/types.h:184
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
RS2_CAMERA_INFO_PRODUCT_LINE
@ RS2_CAMERA_INFO_PRODUCT_LINE
Definition: rs_sensor.h:33
librealsense::ds::EN_ADV
@ EN_ADV
Definition: ds-private.h:103
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
librealsense::hue_control::hue
float hue
Definition: presets.h:65
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
low_resolution
@ low_resolution
Definition: src/types.h:179
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
advanced_mode.h
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
librealsense::default_410
void default_410(preset &p)
Definition: presets.cpp:215
librealsense::update_structs
void update_structs(const device_interface &dev, const std::string &content, preset &in_preset)
Definition: json_loader.hpp:475
librealsense::auto_exposure_control::was_set
bool was_set
Definition: presets.h:30
librealsense::brightness_control::brightness
float brightness
Definition: presets.h:47
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
RS2_OPTION_ENABLE_AUTO_WHITE_BALANCE
@ RS2_OPTION_ENABLE_AUTO_WHITE_BALANCE
Definition: rs_option.h:39


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