mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
fixed ORB_SLAM preproc breaking gui conditionals (#1445)
This commit is contained in:
committed by
GitHub
parent
ddaf2f5271
commit
618e839999
@@ -4892,10 +4892,13 @@ void PreferencesDialog::setParameter(const std::string & key, const std::string
|
||||
{
|
||||
if(valueInt==2 && combo->objectName().toStdString().compare(Parameters::kOptimizerStrategy()) == 0)
|
||||
{
|
||||
if(
|
||||
#ifndef RTABMAP_ORB_SLAM
|
||||
if(Optimizer::isAvailable(Optimizer::kTypeG2O))
|
||||
Optimizer::isAvailable(Optimizer::kTypeG2O)
|
||||
#else
|
||||
true
|
||||
#endif
|
||||
{
|
||||
){
|
||||
UWARN("Trying to set \"%s\" to GTSAM but RTAB-Map isn't built "
|
||||
"with GTSAM. Falling back to g2o.",
|
||||
combo->objectName().toStdString().c_str());
|
||||
|
||||
Reference in New Issue
Block a user