Fix the naming error issue in the color function.

This commit is contained in:
lixiaobin
2023-11-06 14:01:41 +08:00
parent 6a7cebe544
commit ca3ad3fbbb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -853,7 +853,7 @@ void OBCameraNode::onNewFrameSetCallback(const std::shared_ptr<ob::FrameSet> &fr
}
}
void OBCameraNode::noNewColorFrameCallback() {
void OBCameraNode::onNewColorFrameCallback() {
while (enable_stream_[COLOR] && rclcpp::ok() && is_running_.load()) {
std::unique_lock<std::mutex> lock(colorFrameMtx_);
colorFrameCV_.wait(lock, [this]() { return !colorFrameQueue_.empty() || !(is_running_.load()); });