Optimize frame processing sequence in onNewColorFrameCallback to reduce color topic latency

This commit is contained in:
xiexun
2025-09-02 17:06:59 +08:00
parent 10474bcb07
commit 78c4d68fb1
+1 -1
View File
@@ -2805,8 +2805,8 @@ void OBCameraNode::onNewColorFrameCallback() {
}
std::shared_ptr<ob::FrameSet> frameSet = color_frame_queue_.front();
is_color_frame_decoded_ = decodeColorFrameToBuffer(frameSet->colorFrame(), rgb_buffer_);
publishPointCloud(frameSet);
onNewFrameCallback(frameSet->colorFrame(), COLOR);
publishPointCloud(frameSet);
color_frame_queue_.pop();
}