mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-09-12 03:00:20 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user