mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-10 06:29:50 +08:00
Merge remote-tracking branch 'origin/fix/runtime-image-registration-mode' into v2/develop
This commit is contained in:
@@ -903,6 +903,8 @@ void OBCameraNode::setImageRegistrationModeCallback(
|
||||
|
||||
auto rollback_after_error = [&](const std::string& error_message) {
|
||||
try {
|
||||
stopColorFrameThreads();
|
||||
clearColorFrameQueues();
|
||||
restore_old_mode();
|
||||
if (was_running && !pipeline_started_.load()) {
|
||||
startStreams();
|
||||
@@ -924,6 +926,8 @@ void OBCameraNode::setImageRegistrationModeCallback(
|
||||
if (was_running) {
|
||||
stopStreams();
|
||||
}
|
||||
stopColorFrameThreads();
|
||||
clearColorFrameQueues();
|
||||
|
||||
apply_image_registration_mode(mode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user