mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Fixed Freenect2 calibration default rgb/depth/switched config not working
This commit is contained in:
@@ -5104,7 +5104,7 @@ void PreferencesDialog::calibrate()
|
||||
return;
|
||||
}
|
||||
|
||||
bool freenect2 = this->getSourceType() == kSrcFreenect2;
|
||||
bool freenect2 = driver == kSrcFreenect2;
|
||||
_calibrationDialog->setStereoMode(this->getSourceType() != kSrcRGB, freenect2?"rgb":"left", freenect2?"depth":"right"); // RGB+Depth or left+right
|
||||
_calibrationDialog->setSwitchedImages(freenect2);
|
||||
_calibrationDialog->setSavingDirectory(this->getCameraInfoDir());
|
||||
|
||||
Reference in New Issue
Block a user