mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-08 13:57:46 +08:00
Modify improperly named variables
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user