auto-exposure-roi-feature.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2023 Intel Corporation. All Rights Reserved.
3 
4 
7 #include <src/ds/ds-private.h>
8 #include <src/sensor.h>
9 
10 
11 namespace librealsense {
12 
13 
14 /* static */ const feature_id auto_exposure_roi_feature::ID = "Auto exposure ROI feature";
15 
17  std::shared_ptr< hw_monitor > hwm,
18  bool rgb )
19 {
20  roi_sensor_interface * roi_sensor = dynamic_cast< roi_sensor_interface * >( &sensor );
21  if( ! roi_sensor )
22  throw std::runtime_error( "Sensor is not a roi_sensor_interface. Can't support auto_exposure_roi_feature" );
23 
25  roi_sensor->set_roi_method( std::make_shared< ds_auto_exposure_roi_method >( *hwm, cmd ) );
26 }
27 
29 {
30  return ID;
31 }
32 
33 
34 } // namespace librealsense
librealsense
Definition: algo.h:18
librealsense::roi_sensor_interface::set_roi_method
virtual void set_roi_method(std::shared_ptr< region_of_interest_method > roi_method)=0
test-fw-update.cmd
list cmd
Definition: test-fw-update.py:141
librealsense::ds::SETAEROI
@ SETAEROI
Definition: ds-private.h:106
test-librs-device-properties.sensor
sensor
Definition: test-librs-device-properties.py:40
ds-private.h
librealsense::roi_sensor_interface
Definition: roi.h:29
librealsense::auto_exposure_roi_feature::auto_exposure_roi_feature
auto_exposure_roi_feature(synthetic_sensor &sensor, std::shared_ptr< hw_monitor > hwm, bool rgb=false)
Definition: auto-exposure-roi-feature.cpp:16
sensor.h
ds-device-common.h
librealsense::ds::SETRGBAEROI
@ SETRGBAEROI
Definition: ds-private.h:115
librealsense::synthetic_sensor
Definition: sensor.h:208
librealsense::auto_exposure_roi_feature::ID
static const feature_id ID
Definition: auto-exposure-roi-feature.h:20
librealsense::ds::fw_cmd
fw_cmd
Definition: ds-private.h:83
auto-exposure-roi-feature.h
librealsense::feature_id
std::string feature_id
Definition: feature-interface.h:11
librealsense::auto_exposure_roi_feature::get_id
feature_id get_id() const override
Definition: auto-exposure-roi-feature.cpp:28


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Mon Apr 22 2024 02:12:55