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();
46 QString cv_version = CV_VERSION;
47 #if CV_MAJOR_VERSION < 3 48 #ifdef RTABMAP_NONFREE 49 _ui->label_opencv_license->setText(
"Not Commercial [With nonfree module]");
51 _ui->label_opencv_license->setText(
"BSD [Without nonfree module]");
53 #elif defined(HAVE_OPENCV_XFEATURES2D) 54 #ifdef RTABMAP_NONFREE 55 _ui->label_opencv_license->setText(
"Not Commercial [With xfeatures2d and nonfree modules]");
57 #if CV_MAJOR_VERSION < 4 || (CV_MAJOR_VERSION==4 && CV_MINOR_VERSION<5) 58 _ui->label_opencv_license->setText(
"BSD [With xfeatures2d module]");
60 _ui->label_opencv_license->setText(
"Apache 3 [With xfeatures2d module]");
64 #if CV_MAJOR_VERSION < 4 || (CV_MAJOR_VERSION==4 && CV_MINOR_VERSION<5) 65 _ui->label_opencv_license->setText(
"BSD [Without xfeatures2d and nonfree modules]");
67 _ui->label_opencv_license->setText(
"Apache 3 [Without xfeatures2d and nonfree modules]");
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);
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);
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);
163 #ifdef RTABMAP_POINTMATCHER 164 _ui->label_libpointmatcher->setText(
"Yes");
165 _ui->label_libpointmatcher_license->setEnabled(
true);
167 _ui->label_libpointmatcher->setText(
"No");
168 _ui->label_libpointmatcher_license->setEnabled(
false);
171 #ifdef RTABMAP_CCCORELIB 172 _ui->label_cccorelib->setText(
"Yes");
173 _ui->label_cccorelib_license->setEnabled(
true);
175 _ui->label_cccorelib->setText(
"No");
176 _ui->label_cccorelib_license->setEnabled(
false);
180 _ui->label_fovis->setText(
"Yes");
181 _ui->label_fovis_license->setEnabled(
true);
183 _ui->label_fovis->setText(
"No");
184 _ui->label_fovis_license->setEnabled(
false);
187 _ui->label_viso2->setText(
"Yes");
188 _ui->label_viso2_license->setEnabled(
true);
190 _ui->label_viso2->setText(
"No");
191 _ui->label_viso2_license->setEnabled(
false);
194 _ui->label_dvo->setText(
"Yes");
195 _ui->label_dvo_license->setEnabled(
true);
197 _ui->label_dvo->setText(
"No");
198 _ui->label_dvo_license->setEnabled(
false);
200 #ifdef RTABMAP_ORB_SLAM 201 #if RTABMAP_ORB_SLAM == 3 202 _ui->label_orbslam_title->setText(
"With ORB SLAM3 :");
203 #elif RTABMAP_ORB_SLAM == 2 204 _ui->label_orbslam_title->setText(
"With ORB SLAM2 :");
206 _ui->label_orbslam->setText(
"Yes");
207 _ui->label_orbslam_license->setEnabled(
true);
209 _ui->label_orbslam->setText(
"No");
210 _ui->label_orbslam_license->setEnabled(
false);
214 _ui->label_okvis->setText(
"Yes");
215 _ui->label_okvis_license->setEnabled(
true);
217 _ui->label_okvis->setText(
"No");
218 _ui->label_okvis_license->setEnabled(
false);
222 _ui->label_loam->setText(
"Yes");
223 _ui->label_loam_license->setEnabled(
true);
225 _ui->label_loam->setText(
"No");
226 _ui->label_loam_license->setEnabled(
false);
229 #ifdef RTABMAP_MSCKF_VIO 230 _ui->label_msckf->setText(
"Yes");
231 _ui->label_msckf_license->setEnabled(
true);
233 _ui->label_msckf->setText(
"No");
234 _ui->label_msckf_license->setEnabled(
false);
238 _ui->label_vins_fusion->setText(
"Yes");
239 _ui->label_vins_fusion_license->setEnabled(
true);
241 _ui->label_vins_fusion->setText(
"No");
242 _ui->label_vins_fusion_license->setEnabled(
false);
245 #ifdef RTABMAP_OPENVINS 246 _ui->label_openvins->setText(
"Yes");
247 _ui->label_openvins_license->setEnabled(
true);
249 _ui->label_openvins->setText(
"No");
250 _ui->label_openvins_license->setEnabled(
false);
static std::string getVersion()
AboutDialog(QWidget *parent=0)
static bool isAvailable(Optimizer::Type type)