Skip to content

Commit af39410

Browse files
committed
chore: Add LDP switch
1 parent 9f98474 commit af39410

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

orbbec_camera/src/ob_camera_node.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ void OBCameraNode::setupDevices() {
164164
std::string d2d_mode = is_hardware_d2d ? "HW D2D" : "SW D2D";
165165
RCLCPP_INFO_STREAM(logger_, "Depth process is " << d2d_mode);
166166
}
167+
if (device_->isPropertySupported(OB_PROP_LDP_BOOL, OB_PERMISSION_READ_WRITE)) {
168+
device_->setBoolProperty(OB_PROP_LDP_BOOL, enable_ldp_);
169+
}
167170
if (device_->isPropertySupported(OB_PROP_LASER_CONTROL_INT, OB_PERMISSION_READ_WRITE)) {
168171
device_->setIntProperty(OB_PROP_LASER_CONTROL_INT, enable_laser_);
169172
}

0 commit comments

Comments
 (0)