From e57ae2a4a108d2da27ee95fbd1d49ea0b29d9d79 Mon Sep 17 00:00:00 2001 From: Joe Dong Date: Thu, 28 Nov 2024 15:50:55 +0800 Subject: [PATCH] fixed switch ldp --- orbbec_camera/src/ob_camera_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbbec_camera/src/ob_camera_node.cpp b/orbbec_camera/src/ob_camera_node.cpp index 49a2dda..90a154c 100644 --- a/orbbec_camera/src/ob_camera_node.cpp +++ b/orbbec_camera/src/ob_camera_node.cpp @@ -211,7 +211,7 @@ void OBCameraNode::setupDevices() { std::string d2d_mode = is_hardware_d2d ? "HW D2D" : "SW D2D"; RCLCPP_INFO_STREAM(logger_, "Depth process is " << d2d_mode); } - if (device_->isPropertySupported(OB_PROP_LDP_BOOL, OB_PERMISSION_READ_WRITE)) { + if (device_->isPropertySupported(OB_PROP_LDP_BOOL, OB_PERMISSION_WRITE)) { RCLCPP_INFO_STREAM(logger_, "Setting LDP to " << (enable_ldp_ ? "ON" : "OFF")); TRY_TO_SET_PROPERTY(setBoolProperty, OB_PROP_LDP_BOOL, enable_ldp_); }