chore: Handle special case for Dabai Max point cloud

In the OBCameraNode file, a special case is added to handle the point cloud for the Dabai Max camera. When the camera PID is Dabai Max, the color parameters are used instead of the depth parameters for intrinsic and distortion calculations.
This commit is contained in:
Joe Dong
2024-09-09 17:53:32 +08:00
parent ae8df6e904
commit 26ee0d676d
+5
View File
@@ -1899,6 +1899,11 @@ void OBCameraNode::onNewFrameCallback(const std::shared_ptr<ob::Frame> &frame,
: camera_params.depthIntrinsic;
distortion = stream_index.first == OB_STREAM_COLOR ? camera_params.rgbDistortion
: camera_params.depthDistortion;
if(pid == DABAI_MAX_PID){
// use color param
intrinsic = camera_params.rgbIntrinsic;
distortion = camera_params.rgbDistortion;
}
}
std::string frame_id = optical_frame_id_[stream_index];
if (depth_registration_ && stream_index == DEPTH) {