33 #include "ui_aboutDialog.h" 34 #include <opencv2/core/version.hpp> 35 #include <pcl/pcl_config.h> 36 #include <vtkVersion.h> 43 _ui =
new Ui_aboutDialog();
47 version.append(
" [DEMO]");
49 QString cv_version = CV_VERSION;
50 #if CV_MAJOR_VERSION < 3 51 #ifdef RTABMAP_NONFREE 52 cv_version.append(
" [With nonfree]");
53 _ui->label_opencv_license->setText(
"Not Commercial");
55 cv_version.append(
" [Without nonfree]");
56 _ui->label_opencv_license->setText(
"BSD");
58 #elif defined(HAVE_OPENCV_XFEATURES2D) 59 #ifdef RTABMAP_NONFREE 60 cv_version.append(
" [With xfeatures2d, nonfree]");
61 _ui->label_opencv_license->setText(
"Not Commercial");
63 cv_version.append(
" [With xfeatures2d]");
64 _ui->label_opencv_license->setText(
"BSD");
67 cv_version.append(
" [Without xfeatures2d and nonfree]");
68 _ui->label_opencv_license->setText(
"BSD");
70 _ui->label_version->setText(version);
71 _ui->label_opencv_version->setText(cv_version);
72 _ui->label_pcl_version->setText(PCL_VERSION_PRETTY);
73 _ui->label_vtk_version->setText(vtkVersion::GetVTKVersion());
74 _ui->label_qt_version->setText(qVersion());
75 #ifdef RTABMAP_ORB_OCTREE 76 _ui->label_orboctree->setText(
"Yes");
77 _ui->label_orboctree_license->setEnabled(
true);
79 _ui->label_orboctree->setText(
"No");
80 _ui->label_orboctree_license->setEnabled(
false);
82 #ifdef RTABMAP_SUPERPOINT_TORCH 83 _ui->label_sptorch->setText(
"Yes");
84 _ui->label_sptorch_license->setEnabled(
true);
86 _ui->label_sptorch->setText(
"No");
87 _ui->label_sptorch_license->setEnabled(
false);
89 #ifdef RTABMAP_PYMATCHER 90 _ui->label_pymatcher->setText(
"Yes");
91 _ui->label_pymatcher_license->setEnabled(
true);
93 _ui->label_pymatcher->setText(
"No");
94 _ui->label_pymatcher_license->setEnabled(
false);
97 _ui->label_fastcv->setText(
"Yes");
98 _ui->label_fastcv_license->setEnabled(
true);
100 _ui->label_fastcv->setText(
"No");
101 _ui->label_fastcv_license->setEnabled(
false);
103 #ifdef RTABMAP_OCTOMAP 104 _ui->label_octomap->setText(
"Yes");
105 _ui->label_octomap_license->setEnabled(
true);
107 _ui->label_octomap->setText(
"No");
108 _ui->label_octomap_license->setEnabled(
false);
110 #ifdef RTABMAP_CPUTSDF 111 _ui->label_cputsdf->setText(
"Yes");
112 _ui->label_cputsdf_license->setEnabled(
true);
114 _ui->label_cputsdf->setText(
"No");
115 _ui->label_cputsdf_license->setEnabled(
false);
117 #ifdef RTABMAP_OPENCHISEL 118 _ui->label_openchisel->setText(
"Yes");
120 _ui->label_openchisel->setText(
"No");
122 #ifdef RTABMAP_ALICE_VISION 123 _ui->label_aliceVision->setText(
"Yes");
124 _ui->label_aliceVision_license->setEnabled(
true);
126 _ui->label_aliceVision->setText(
"No");
127 _ui->label_aliceVision_license->setEnabled(
false);
159 #ifdef RTABMAP_POINTMATCHER 160 _ui->label_libpointmatcher->setText(
"Yes");
161 _ui->label_libpointmatcher_license->setEnabled(
true);
163 _ui->label_libpointmatcher->setText(
"No");
164 _ui->label_libpointmatcher_license->setEnabled(
false);
168 _ui->label_fovis->setText(
"Yes");
169 _ui->label_fovis_license->setEnabled(
true);
171 _ui->label_fovis->setText(
"No");
172 _ui->label_fovis_license->setEnabled(
false);
175 _ui->label_viso2->setText(
"Yes");
176 _ui->label_viso2_license->setEnabled(
true);
178 _ui->label_viso2->setText(
"No");
179 _ui->label_viso2_license->setEnabled(
false);
182 _ui->label_dvo->setText(
"Yes");
183 _ui->label_dvo_license->setEnabled(
true);
185 _ui->label_dvo->setText(
"No");
186 _ui->label_dvo_license->setEnabled(
false);
188 #ifdef RTABMAP_ORB_SLAM2 189 _ui->label_orbslam2->setText(
"Yes");
190 _ui->label_orbslam2_license->setEnabled(
true);
192 _ui->label_orbslam2->setText(
"No");
193 _ui->label_orbslam2_license->setEnabled(
false);
197 _ui->label_okvis->setText(
"Yes");
198 _ui->label_okvis_license->setEnabled(
true);
200 _ui->label_okvis->setText(
"No");
201 _ui->label_okvis_license->setEnabled(
false);
205 _ui->label_loam->setText(
"Yes");
206 _ui->label_loam_license->setEnabled(
true);
208 _ui->label_loam->setText(
"No");
209 _ui->label_loam_license->setEnabled(
false);
212 #ifdef RTABMAP_MSCKF_VIO 213 _ui->label_msckf->setText(
"Yes");
214 _ui->label_msckf_license->setEnabled(
true);
216 _ui->label_msckf->setText(
"No");
217 _ui->label_msckf_license->setEnabled(
false);
static std::string getVersion()
AboutDialog(QWidget *parent=0)
static bool isAvailable(Optimizer::Type type)