Skip to content

Commit 760c78a

Browse files
committed
Max Pro increases the IR long exposure enable configuration.
1 parent 9eedea5 commit 760c78a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

orbbec_camera/include/orbbec_camera/ob_camera_node.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ class OBCameraNode {
405405
bool enable_soft_filter_ = true;
406406
bool enable_color_auto_exposure_ = true;
407407
bool enable_ir_auto_exposure_ = true;
408+
bool enable_ir_long_exposure_ = false;
408409
bool enable_ldp_ = true;
409410
int soft_filter_max_diff_ = -1;
410411
int soft_filter_speckle_size_ = -1;

orbbec_camera/launch/dabai_max_pro.launch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def generate_launch_description():
5151
DeclareLaunchArgument('ir_qos', default_value='default'),
5252
DeclareLaunchArgument('ir_camera_info_qos', default_value='default'),
5353
DeclareLaunchArgument('enable_ir_auto_exposure', default_value='true'),
54+
DeclareLaunchArgument('enable_ir_long_exposure', default_value='false'),
5455
DeclareLaunchArgument('publish_tf', default_value='true'),
5556
DeclareLaunchArgument('tf_publish_rate', default_value='10.0'),
5657
DeclareLaunchArgument('ir_info_url', default_value=''),

orbbec_camera/launch/gemini_uw.launch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def generate_launch_description():
5151
DeclareLaunchArgument('ir_qos', default_value='default'),
5252
DeclareLaunchArgument('ir_camera_info_qos', default_value='default'),
5353
DeclareLaunchArgument('enable_ir_auto_exposure', default_value='true'),
54+
DeclareLaunchArgument('enable_ir_long_exposure', default_value='false'),
5455
DeclareLaunchArgument('publish_tf', default_value='true'),
5556
DeclareLaunchArgument('tf_publish_rate', default_value='10.0'),
5657
DeclareLaunchArgument('ir_info_url', default_value=''),

orbbec_camera/src/ob_camera_node.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ void OBCameraNode::setupDevices() {
205205
device_->setBoolProperty(OB_PROP_IR_AUTO_EXPOSURE_BOOL, enable_ir_auto_exposure_);
206206
}
207207

208+
if (device_->isPropertySupported(OB_PROP_IR_LONG_EXPOSURE_BOOL, OB_PERMISSION_WRITE)) {
209+
device_->setBoolProperty(OB_PROP_IR_LONG_EXPOSURE_BOOL, enable_ir_long_exposure_);
210+
}
211+
208212
if (device_->isPropertySupported(OB_PROP_DEPTH_MAX_DIFF_INT, OB_PERMISSION_WRITE)) {
209213
auto default_soft_filter_max_diff = device_->getIntProperty(OB_PROP_DEPTH_MAX_DIFF_INT);
210214
if (soft_filter_max_diff_ != -1 && default_soft_filter_max_diff != soft_filter_max_diff_) {
@@ -579,6 +583,7 @@ void OBCameraNode::getParameters() {
579583
setAndGetNodeParameter(enable_frame_sync_, "enable_frame_sync", false);
580584
setAndGetNodeParameter(enable_color_auto_exposure_, "enable_color_auto_exposure", true);
581585
setAndGetNodeParameter(enable_ir_auto_exposure_, "enable_ir_auto_exposure", true);
586+
setAndGetNodeParameter(enable_ir_long_exposure_, "enable_ir_long_exposure", true);
582587
setAndGetNodeParameter<std::string>(depth_work_mode_, "depth_work_mode", "");
583588
setAndGetNodeParameter<std::string>(sync_mode_str_, "sync_mode", "close");
584589
setAndGetNodeParameter(depth_delay_us_, "depth_delay_us", 0);

0 commit comments

Comments
 (0)