fix get camera info

This commit is contained in:
Joe Dong
2023-02-28 17:04:01 +08:00
parent 30fa058f24
commit 1b4c741edc
+1 -1
View File
@@ -557,7 +557,7 @@ void OBCameraNode::onNewFrameCallback(const std::shared_ptr<ob::Frame>& frame,
camera_param_ = pipeline_->getCameraParam();
} else if (!camera_param_ && stream_index == COLOR) {
camera_param_ = getColorCameraParam();
} else if (!camera_param_) {
} else if (!camera_param_ && (stream_index == DEPTH || stream_index == INFRA0)) {
camera_param_ = getDepthCameraParam();
}
auto& intrinsic =