mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-10 22:49:51 +08:00
chore: spacial case point cloud handle for dabai max
This commit is contained in:
@@ -128,5 +128,6 @@ const int32_t GEMINI_335LG_PID = 0x080B; // Gemini 336Lg
|
|||||||
const int32_t GEMINI_336LG_PID = 0x080D;
|
const int32_t GEMINI_336LG_PID = 0x080D;
|
||||||
const int32_t GEMINI_335LE_PID = 0x080E; // Gemini 335Le
|
const int32_t GEMINI_335LE_PID = 0x080E; // Gemini 335Le
|
||||||
const int32_t GEMINI_336LE_PID = 0x0810; // Gemini 335Le
|
const int32_t GEMINI_336LE_PID = 0x0810; // Gemini 335Le
|
||||||
|
const int32_t DABAI_MAX_PID = 0x069a; // dabai max
|
||||||
|
|
||||||
} // namespace orbbec_camera
|
} // namespace orbbec_camera
|
||||||
|
|||||||
@@ -1366,7 +1366,10 @@ void OBCameraNode::publishDepthPointCloud(const std::shared_ptr<ob::FrameSet> &f
|
|||||||
}
|
}
|
||||||
CHECK_NOTNULL(pipeline_);
|
CHECK_NOTNULL(pipeline_);
|
||||||
auto camera_params = pipeline_->getCameraParam();
|
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;
|
camera_params.depthIntrinsic = camera_params.rgbIntrinsic;
|
||||||
}
|
}
|
||||||
depth_point_cloud_filter_.setCameraParam(camera_params);
|
depth_point_cloud_filter_.setCameraParam(camera_params);
|
||||||
|
|||||||
Reference in New Issue
Block a user