mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
Fixing the command to control the data stream crash issue.
This commit is contained in:
@@ -306,7 +306,9 @@ void OBCameraNode::startStreams() {
|
|||||||
throw std::runtime_error("Failed to start pipeline");
|
throw std::runtime_error("Failed to start pipeline");
|
||||||
}
|
}
|
||||||
if (enable_stream_[COLOR]) {
|
if (enable_stream_[COLOR]) {
|
||||||
colorFrameThread_ = std::make_shared<std::thread>([this]() { onNewColorFrameCallback(); });
|
if (colorFrameThread_) {
|
||||||
|
colorFrameThread_ = std::make_shared<std::thread>([this]() { onNewColorFrameCallback(); });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (enable_frame_sync_) {
|
if (enable_frame_sync_) {
|
||||||
pipeline_->enableFrameSync();
|
pipeline_->enableFrameSync();
|
||||||
|
|||||||
Reference in New Issue
Block a user