d400-active.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2016 Intel Corporation. All Rights Reserved.
3 
4 #include <mutex>
5 #include <chrono>
6 #include <vector>
7 #include <iterator>
8 #include <cstddef>
9 
10 #include "device.h"
11 #include "image.h"
12 #include "metadata-parser.h"
13 
14 #include "d400-active.h"
15 #include "d400-private.h"
16 #include "d400-options.h"
17 #include "d400-info.h"
18 #include "ds/ds-timestamp.h"
19 
20 namespace librealsense
21 {
22  d400_active::d400_active( std::shared_ptr< const d400_info > const & dev_info )
23  : device(dev_info), d400_device(dev_info)
24  {
25  using namespace ds;
26 
27  //Projector's capacity is established based on actual HW capabilities
28  _ds_active_common = std::make_shared<ds_active_common>(get_raw_depth_sensor(), get_depth_sensor(), this,
30 
31  _ds_active_common->register_options();
32 
33  //PROJECTOR TEMPERATURE OPTION
34  auto pid = this->_pid;
35  auto& depth_ep = get_depth_sensor();
36 
37  if( pid == ds::RS457_PID )
38  {
39  depth_ep.register_option( RS2_OPTION_PROJECTOR_TEMPERATURE,
40  std::make_shared< projector_temperature_option_mipi >(
43  }
44  else
45  {
46  depth_ep.register_option( RS2_OPTION_PROJECTOR_TEMPERATURE,
47  std::make_shared< asic_and_projector_temperature_options >( get_raw_depth_sensor(),
49  }
50  }
51 }
librealsense
Definition: algo.h:18
d400-private.h
librealsense::ds::RS457_PID
const uint16_t RS457_PID
Definition: d400-private.h:39
librealsense::d400_device::get_raw_depth_sensor
std::shared_ptr< uvc_sensor > get_raw_depth_sensor()
Definition: d400-device.h:42
device.h
librealsense::d400_device::_hw_monitor
std::shared_ptr< hw_monitor > _hw_monitor
Definition: d400-device.h:94
librealsense::d400_device::get_depth_sensor
synthetic_sensor & get_depth_sensor()
Definition: d400-device.h:37
librealsense::d400_active::_ds_active_common
std::shared_ptr< ds_active_common > _ds_active_common
Definition: d400-active.h:17
test-d405-calibration-stream.pid
pid
Definition: test-d405-calibration-stream.py:12
librealsense::d400_device::_fw_version
firmware_version _fw_version
Definition: d400-device.h:95
librealsense::d400_device::_device_capabilities
ds::ds_caps _device_capabilities
Definition: d400-device.h:97
d400-options.h
d400-info.h
image.h
librealsense::d400_active::d400_active
d400_active(std::shared_ptr< const d400_info > const &)
Definition: d400-active.cpp:22
librealsense::backend_device::_pid
uint16_t _pid
Definition: backend-device.h:37
test-fps.ds
ds
Definition: test-fps.py:77
d400-active.h
RS2_OPTION_PROJECTOR_TEMPERATURE
@ RS2_OPTION_PROJECTOR_TEMPERATURE
Definition: rs_option.h:53
librealsense::device
Definition: device.h:35
ds-timestamp.h
metadata-parser.h
librealsense::d400_device
Definition: d400-device.h:26


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