Fix for previous commit e4cb59b74d (otherwise imu are ignored if globalTimeSync is off)

This commit is contained in:
matlabbe
2020-11-22 12:38:21 -05:00
parent e4cb59b74d
commit bdc7be40b4

View File

@@ -447,8 +447,11 @@ void CameraRealSense2::getPoseAndIMU(
gyro[1] = iterC->second[1]; gyro[1] = iterC->second[1];
gyro[2] = iterC->second[2]; gyro[2] = iterC->second[2];
} }
imuMutex_.unlock(); else
return; {
imuMutex_.unlock();
return;
}
} }
} }
imuMutex_.unlock(); imuMutex_.unlock();