Modify improperly named variables

This commit is contained in:
lixiaobin
2024-01-02 10:14:37 +08:00
parent fad98a230c
commit 6a56bb1d66
+4 -4
View File
@@ -133,8 +133,8 @@ void OBCameraNode::setupDevices() {
auto info = device_->getDeviceInfo();
if (enable_hardware_d2d_ && info->pid() == GEMINI2_PID) {
device_->setBoolProperty(OB_PROP_DISPARITY_TO_DEPTH_BOOL, true);
bool isDISPARITY = device_->getBoolProperty(OB_PROP_DISPARITY_TO_DEPTH_BOOL);
if(isDISPARITY == false) {
bool isHWD2D = device_->getBoolProperty(OB_PROP_DISPARITY_TO_DEPTH_BOOL);
if(isHWD2D == false) {
RCLCPP_INFO_STREAM(logger_, "Depth process is soft D2D.");
}
else {
@@ -161,8 +161,8 @@ void OBCameraNode::setupDevices() {
device_->setIntProperty(OB_PROP_DEPTH_PRECISION_LEVEL_INT, depth_precision_);
}
int32_t PRECISION_LEVEL = device_->getIntProperty(OB_PROP_DEPTH_PRECISION_LEVEL_INT);
RCLCPP_INFO_STREAM(logger_, "Depth precision level:" << PRECISION_LEVEL);
int32_t precisionLevel = device_->getIntProperty(OB_PROP_DEPTH_PRECISION_LEVEL_INT);
RCLCPP_INFO_STREAM(logger_, "Depth precision level:" << precisionLevel);
}
for (const auto &stream_index : IMAGE_STREAMS) {