chore: spacial case point cloud handle for dabai max

This commit is contained in:
Joe Dong
2024-09-09 14:25:21 +08:00
parent 3cd3a7fdd3
commit ae8df6e904
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -1366,7 +1366,10 @@ void OBCameraNode::publishDepthPointCloud(const std::shared_ptr<ob::FrameSet> &f
}
CHECK_NOTNULL(pipeline_);
auto camera_params = pipeline_->getCameraParam();
if (depth_registration_) {
auto device_info = device_->getDeviceInfo();
CHECK_NOTNULL(device_info.get());
auto pid = device_info->pid();
if (depth_registration_ || pid == DABAI_MAX_PID) {
camera_params.depthIntrinsic = camera_params.rgbIntrinsic;
}
depth_point_cloud_filter_.setCameraParam(camera_params);