mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-10 22:49:51 +08:00
Fix the naming error issue in the color function.
This commit is contained in:
@@ -279,7 +279,7 @@ class OBCameraNode {
|
|||||||
void onNewFrameCallback(const std::shared_ptr<ob::Frame>& frame,
|
void onNewFrameCallback(const std::shared_ptr<ob::Frame>& frame,
|
||||||
const stream_index_pair& stream_index);
|
const stream_index_pair& stream_index);
|
||||||
|
|
||||||
void noNewColorFrameCallback();
|
void onNewColorFrameCallback();
|
||||||
|
|
||||||
void saveImageToFile(const stream_index_pair& stream_index, const cv::Mat& image,
|
void saveImageToFile(const stream_index_pair& stream_index, const cv::Mat& image,
|
||||||
const sensor_msgs::msg::Image::SharedPtr& image_msg);
|
const sensor_msgs::msg::Image::SharedPtr& image_msg);
|
||||||
|
|||||||
@@ -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()) {
|
while (enable_stream_[COLOR] && rclcpp::ok() && is_running_.load()) {
|
||||||
std::unique_lock<std::mutex> lock(colorFrameMtx_);
|
std::unique_lock<std::mutex> lock(colorFrameMtx_);
|
||||||
colorFrameCV_.wait(lock, [this]() { return !colorFrameQueue_.empty() || !(is_running_.load()); });
|
colorFrameCV_.wait(lock, [this]() { return !colorFrameQueue_.empty() || !(is_running_.load()); });
|
||||||
|
|||||||
Reference in New Issue
Block a user